Question about OR condition on RunFormLink property

fabrizioc
Member Posts: 31
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
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
-
Hi Fabrizio,
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
Jens0 -
Thank you for your answer Jens, sorry I'm new with navision, could you provide me a small example or something similar?
Thank you again for your precious feedback.
Best regards
Fabrizio0
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