Text or Code to behave like a filter
engsiong75
Member Posts: 143
Hi
I was trying to design a text field in a new table to behave like the filter.
1) It must have a lookup form.
2) When the user selects the data from the Lookup form, it must automatically flow to the field.
3) If I enter a & or a |, I must be able to select another row.
Ex. XXX|YYY
I am able to get the first 2 things working but I am constantly frustrated by the 3 option. I find that I cannot enter more than 1 selection from a text field with a lookup form. Does anybody have an idea how to fix this?
Thanks
Eng Siong
I was trying to design a text field in a new table to behave like the filter.
1) It must have a lookup form.
2) When the user selects the data from the Lookup form, it must automatically flow to the field.
3) If I enter a & or a |, I must be able to select another row.
Ex. XXX|YYY
I am able to get the first 2 things working but I am constantly frustrated by the 3 option. I find that I cannot enter more than 1 selection from a text field with a lookup form. Does anybody have an idea how to fix this?
Thanks
Eng Siong
0
Comments
-
i think 3 step can be done at the time of filtering(reports etc)
but we cannot enter values into table like a|b
correct me if i am wrong.0 -
Something like:
txtFilter as text1024
In the OnLookup-trigger on txtFilter, put this code:IF FORM.RUNMODAL(0,recYourTable) = ACTION::LOOKUPOK THEN BEGIN Text := Text + recYourTable."The Field"; EXIT(TRUE); END; EXIT(FALSE);
PS: "Text" is the parameter of the function.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thank folks for all your contribution. Crack the problem myself. There is a propery called ClearOnLookup in the Text fields in the Reports and Form. If it is set to No, it will not delete the previous entries.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
- 322 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

