Menu items executed one after another from the first to the last.
On the form there is a menu button with 3 menu items. Menu item has code on their's OnPush() trigger. Menu items have filds ShortCutKey, Action and RunObject empty.
I select the first Menu item, after execution finished, program starts the second menu item and after that the third.
The same happened when I select the second menu item. After execution program starts the third menu item.
How can I prevent executing the second and the third menu item?
Thank's for answer.
Navision 4.00 SP2.
Martin
0
Answers
This sounds like very stange behaviour - what cal code are you using to call the forms.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
1. menu item: 2. menu item: Thank's for quick replay
Martin
I suspect that you problem is the report selection table as opposed to the code. I suspect that there is multiple line for the sales invoice and the call to the SalesInvHeader.PrintRecords(TRUE); will print all reports specified.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Martin
i've had the same idea of daveT
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Solution:
Sales & Marketing/Order Processing/Setup/Report Selecion - Sales
For invoice I had 3 choices in this setup. So program executed all of them one after another. I cleared two of them and problem is solved.
it is part of the key, and if a report has 1,2,3 (three lines) the respective reports (Report ID field) will be run one after the other...It's not a bug, it's a feature
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html