cancel
Showing results for 
Search instead for 
Did you mean: 

problem with navigation (BrowseBy)

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member185682
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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?

former_member185682
Active Contributor

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

Former Member
0 Kudos

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

former_member185682
Active Contributor
0 Kudos

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

former_member185682
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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