How to an option always appears non-market on run report

markyT
Member Posts: 120
Hello, I think this/s easy. I've a report with an option on request form. Each time that I mark the option it remains marked for the next time. Is there any way to this option always appears non-market on run report?.
Thank you.
Thank you.
0
Comments
-
Go into the designer
View->Request Form->f9
add code
on init or onopenform..(didn't test)
Myoption := Myoption::"Non-Market"; or whatever the option is called.0 -
You could also try turning off all the save options on the request form.0
-
DenSter wrote:You could also try turning off all the save options on the request form.
<- thats also possible, but markyT doen't forgett,if you have other controls on the req.form, where the user can define anything and this should be stored for the next run, these are also be reseted to the "default"Do you make it right, it works too!0 -
Thanks both for reply. Both options are ok; but in case: Myoption := Myoption::"Non-Market"; what function is "Not-Market", you mean True or false or so?.
Thanks for help.0 -
What Harry mean is:
1. Option Variable like "MyOptionVar" with Options " ,Option1,Option2"
2. On the RequestForm a textBox or RadioButtons with the SourceEXPr = MyOptionVar
3. OnInit() MyOptionVar := MyOp0tionVar::"";
So, the Option BLANK is ever the default.Do you make it right, it works too!0 -
Perfect!!, well, ni my case it's a boolean type, then I've put "no" and It runs perfectly, and it goes on OnOpenForm.
Thanks both for help.0 -
That trigger will work, but in my opinion a better place for this type of thing is the OnInitReport trigger. Make it a habit to always put variable initialization for reports in that trigger, and your objects will be cleaner and easier to maintain. Then use the OnPreReport to process variables from the request form. Use form triggers only for display code.0
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