Processing only report return value

poverocane
Member Posts: 32
Hi all and thanks in advance...
Is it possible to retrieve the return value from a processing-only report?
That is, is it possible to know if the user push the "OK" button or the "Cancel" button after report running?
Hope being clear...
Thanks...
poverocane
Is it possible to retrieve the return value from a processing-only report?
That is, is it possible to know if the user push the "OK" button or the "Cancel" button after report running?
Hope being clear...
Thanks...
poverocane
Fantasy is more important than knowledge.
A. Einstein
A. Einstein
0
Comments
-
Hi poverocane,
Here is an option for you:
Create a log table with:
User (code20),
Date Run (datetime),
Report No (integer),
Result Value (up to you),
OK (boolean)
You should write to the log table on two triggers:
F9 on on a blank line in the dataitem view of the report in order to find the triggers "Report - OnInitReport()" and "Report - OnPostReport()"
OnInitReport:
Insert a new line, filling in the user,date,report no and leave OK as false
OnPostReport:
Modify the same line, set your result value and set OK as true.
If the report runs up to OnPostReport, it must mean that the user have hit OK. Be carefull though, if your report hits an error during processing, it will look as if the user never clicked OK.
I'm sure some of the others will come up with more elegant solutions.
Hope this helps,
Gustav0 -
Thanks a lot, Gustav...
Yours is a very intelligent solution...
poverocaneFantasy is more important than knowledge.
A. Einstein0
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