Menu items executed one after another

MaliM
Member Posts: 11
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
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
-
Hi Martin,
This sounds like very stange behaviour - what cal code are you using to call the forms.0 -
Hi, Dave
1. menu item:CurrForm.SETSELECTIONFILTER(SalesInvHeader); SalesInvHeader.PrintRecords(TRUE);
2. menu item:CurrForm.SETSELECTIONFILTER(SalesInvHeader); REPORT.RUN(13024546,TRUE,TRUE,SalesInvHeader);
Thank's for quick replay
Martin0 -
Hi 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.0 -
I just install client once more. It works fine
Martin0 -
Reinstall client wasn't solved the problem. After reinstall I tested the wrong company :? . The problem was only in one company.
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.0 -
did you noticed that tiny field named "sequence" in report selection table?
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 feature0 -
Yes I did. Anyway thank's for explanation.0
-
Thanks for the update - I was starting to doubt myself0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions