Hi to all, I need a little help to find, if possible, how to configure a RunFormLink property to use 2 conditions in OR.
I've tried to define both condition using the wizard and the default operator seems to be AND
Is it possible to specify an OR operator in this property.
I need to create a button in a Form to open another Form with several filters pre-configured, and two of these filters are in an OR condition
Thank you in advance for your feedback.
Best regards
Fabrizio
0
Answers
you can't do this with RunFormLink, unless it's a constant filter, like "Invoice|Credit Memo". The other way(s) to do this:
- Set the filters on the record before calling the form (only runmodal) , or with settableview() (also for run, but you need a named variable of the form)
- If you have a complex form, and the filters are not only on the source table: create a SetParameters() function in the form, and call the named variable with MyForm.run after calling MyForm.SetParameters().
with best regards
Jens
Thank you again for your precious feedback.
Best regards
Fabrizio