accessing the navigation
Michel Taal
I have a question if its possible to access the Toolbar in SAP, the one where you can navigate to next record / previous record / first record / last record.I made a new form and would like to use these things for my application. If possible can you give a small example how to access it.
Thanks in advance!
Michael Egloff
Hello Michel,the toolbar can be used like a normal menu (has a menu id (you can see it when you have activated the 'system information')).
Please be aware that you have to activate the navigation for your form like this:
unknown
Dear Michael,I've tried to enable the Record Navigation menu using C# code:
//
SwissAddonFramework.UI.Components.MenuItem o_mn;
o_mn = SwissAddonFramework.UI.Components.MenuItem.GetFromUID("1287");
o_mn.Enabled = true;
The problem is that when I execute the code from within newly created form, I get the following exception:
Menu - Can not enable a disabled system menu. 66000-79.
My question is: how I can enable it then?
Thank you in advance for your help.
unknown
I've just read:http://ecohub.sdn.sap.com/irj/scn/go/portal/prtroot/com.sap.km.cm.docs/library/businessone/_sap-busineessone-sdk-version-2004/SAP%20Business%20One%20SDK%20Required%20Changes%20for%202004.doc
The point 7 of Changes in the UI API says:
System menu that is disable can not be activated (in former version add-on could activate a system menu that was disable by SAP Business One).
Is there any way to circumvent it?
Creating a User Menu for the record navigation seems for me a bit too redundant if not awkward... :-?
Manuel Marhold
Hi..try the Menu-object of the form-object
unknown
Thank you for your fast reply.I have tried EnableMenu method already,
// enables DeleteRow on the ContextMenu
SwissAddonFramework.UI.Components.Form o_f1 = null;
o_f1.EnableMenu("1293", true);
...but it seems this trick works only with Context Menu's like Paste/DeleteRow etc. But not with the Navigation buttons.
Anyway, please Manuel do not break your head on this one. I have some idea, I will share it with you all later, as I have to carry on with some other tasks now...
0
Please sign in to leave a comment.
Comments
0 comments