Problem with MARKEDONLY
alsol
Member Posts: 243
Hi there,
I have a problem wit the MARKEDONLY function:
On a form I mark some of the lines. Then I have a button on this form which runs a report.
On this report I have MARKEDONLY(TRUE); in the OnPreDataItem Trigger. But there is no output.
Does this mark only stay in as long as I am in that form? Or what did I wrong.
Regards
I have a problem wit the MARKEDONLY function:
On a form I mark some of the lines. Then I have a button on this form which runs a report.
On this report I have MARKEDONLY(TRUE); in the OnPreDataItem Trigger. But there is no output.
Does this mark only stay in as long as I am in that form? Or what did I wrong.
Regards
0
Comments
-
What function are you useing to call the report?
If you use somthing like thisCurrForm.SETSELECTIONFILTER(GLACC); REPORT.RUN(REPORT::"Chart of Accounts", true, false, glAcc);
It should work0 -
how do you run the report? can you put the code in here?
Basically you need to set the filter before running the report. The report should not have on perdataitem filter
here is an example of running the item list report from item list form
Rec.MARKEDONLY(true);
report.runmodal(10143,true,false,rec);
Rec.CLEARMARKS;0 -
Ok, that works perfect. Thank you!
I used report.RUN(...) and there it didn't.
What is the difference between RUNMODAL und RUN?
Regards0 -
The difference is explained somewhere on his form.
Modal means the rest of the code will wait for the report to finish.
It should work with both run and runmodal, the trick is to add the MARKEDONLY to the parameter of the report. (or SETSELECTIONFILTER)0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

