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.
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"
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.
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::"";
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.
Comments
View->Request Form->f9
add code
on init or onopenform..(didn't test)
Myoption := Myoption::"Non-Market"; or whatever the option is called.
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC
MVP - Business Apps
<- 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"
Thanks for help.
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.
Thanks both for help.
RIS Plus, LLC
MVP - Business Apps