Hi All,
I have written a codeunit function (fnOrder) which takes Sales Header Id and Type as in parameter and gives result as var (out).
I have created a munu item at our Sales Order Form and assigned the menu runobject to that code unit. Now I want to call my code unit's function along with the parameters.
My blocking point is i am not able to send the input and output parameters along from this Menu Designer's Runobject.
Please advice.
Arindam
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I think another way is there. I can go to the code unit of that particular menu item and write the calling code.
I did some R&D and use these steps :
1. I created a menu item and selected a RunObject (which is the same code unit which i have developed).
2. Now selected the MenuItem if I clicked on the 'C/AL Code (F9)', then I was able to go to the code unit where I could write my desired calling code for the menu item.
3. Compiled and Run.
I hope this way we can solve the problem.
Looking forward to your views.
If you are on form and on the menuitem, and you press F9, you are in code of the form, not of the codeunit... #-o
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I meant to say, Go to Menu item, then select the particulat menu where you want to write code. Then go to the code window of that particular menu (not any code unit). There you can write the code which you want to execute on menu click at run time.
By 'C/AL Code (F9)' I mean the last button at upper menu bar of Navision along with Tools, Properties etc.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for your input once again.