cancel
Showing results for 
Search instead for 
Did you mean: 

UI: Use standar First/Previous/Next/Last buttons

Former Member
0 Kudos

Hi,

Is it possible to use the standar First/Previous/Next/Last buttons that are in the toolbar in my own created forms?

Same with New/Search buttons.

If so, how can I handle the click event?

Thanks in advance,

Ibai Peñ

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I haven't used those yet, but the print button on the same bar works. Like this:

SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)

If pVal.BeforeAction Then

Select Case pVal.MenuUID

Case PRINT '<= 520

For lngFormCount = 0 To SBO_Application.Forms.Count

'determine active form

If SBO_Application.Forms(lngFormCount).Selected Then

Select Case SBO_Application.Forms(lngFormCount).Type

Case ORDER_FORM 'order

Call HandleEvents_SBO_ORDERPrint(SBO_Application.Forms(lngFormCount).UniqueID)

Case ......

etc. etc.

I'm using this code to capture a print-button click, determine the window that is currently open and call my own code.

Note: ths code as displayed will not run. It is not complete, several declarations etc. are missing, but I'm guessing you can make them up for yourself easily.

Regards,

Jacques

Former Member
0 Kudos

Thanks, it has been very usefull to me.

I have found the codes for the buttons I need. But,

is there any enumeration for possible MenuUID values? Or any help file with these values?

Regards,

Ibai Peña

Message was edited by: Ibai Peña

Former Member
0 Kudos

Hi

I don't know if there is some documentation about that codes.

I solved the problem developing a little utility that shows in a grid all the properties of the pVal object for each kind of event (item, menu, app).

Think about it, it is really useful

The pval.MenuUid property in the MenuEvent routine shows what are you looking for, just push menu and toolbar buttons

Bye

Former Member
0 Kudos

Hi,

Can you tell me about standar First/Previous/Next/Last buttons ?

The scenario: I create a new form (sub menu into HR module), I want to use First/Previous/Next/Last oF system (SAP B1).

How can i do? Please give me a detail example?

Thank so much!