Skip to Content
0

problem with navigation (BrowseBy)

Feb 08, 2017 at 12:23 PM

104

avatar image
Former Member

Hi all.

i use navigatian(oForm.DataBrowser.BrowseBy = "DocNum") for user table and user form by number(DocNum).

in my document i have duplicate number.

for ex.

but when I use navigation in SAP B1 client, it ignores the duplicate documents

Does anyone have a thread of ideas on this?

screenshot-1.png (1.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

DIEGO LOTHER Feb 08, 2017 at 03:32 PM
0

Hi Pavel,

Try to put an editText binded with the docEntry and set this edittext with visible property as false, then use this new EditText in the BrowserBy.

Hope it helps.

Kind Regards,

Diego Lother

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Diego.

Unfortunately not suitable, the numbering will be inconsistent.

must be

240 69

242 70

248 70

243 71

246 71

249 71

245 72

250 72

screenshot-1.png (3.3 kB)
0
avatar image
Former Member Feb 13, 2017 at 03:53 AM
0

Any ideas, how can i use navigation with two fields or other solution?

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi Pavel,

Unfortunately, I believe that is no way in the standard method to achieve your goal.

But you can do your own navigation.

1. Enable the navigation buttons.

2. Listen the menu event, and do your logic when the user click on navigation buttons.

Hope it helps.

Kind Regards,

Diego Lother

0
Former Member
DIEGO LOTHER

Hi Diego.

1) i use UDO and navigation button already enabled =)

2) in this case , I'll have to write all the logic for data load on the form?

0

Hi Pavel,

I think something like this on menu event for this form.

switch (pVal.MenuUID)
{
	case "1288":
		this.move(Navegacao.Next);
		BubbleEvent = false;
		break;
	case "1289":
		this.move(Navegacao.Previous);
		BubbleEvent = false;
		break;
	case "1290":
		this.move(Navegacao.First);
		BubbleEvent = false;
		break;
	case "1291":
		this.move(Navegacao.Last);
		BubbleEvent = false;
		break;
}

In the move method implement your logic.

I set BubbleEvent to false to prevent the SAP Action, because I will handle the navigation.

Hope it helps.

Kind Regards,

Diego Lother

1
Former Member
DIEGO LOTHER

sorrry, i don't understand. What is the object Navegacao?

0

Hi Pavel,

This is just a sample. Navegacao in my code is an Enum that provide in what direction i will move my register. But it's not necessary, or you can create your own enum. Remember you need implement the move method, is not a standard method of SDK.

Kind Regards,

Diego Lother

0