How to filter correctly

Johannes_Nielsen
Member Posts: 206
Hi all
Running NAV 5.0 on SQL
Regarding Table 5065 "Interaction Entry Log"
Theres are entries of Interactions, which have an Template Code assigned. The Template Code is part of a Template Group.
We have a Template Group named "SYSTEM" which has several Template Code members.
I need in list Form 5076 "Interaction Log Entries" - to filter out ALL members of the SYSTEM Group except One specific Template Code.
:oops: I can't figure out how to do this.. :oops:
SETFILTER/RANGE operates solely on one specifik Field at a time.
Will I have to list all the members of the Group which I want to Filter out - except the One I want to show?
Maybe filter the table twice and join the results in a temporary table?
Any inputs are appreaciated
Running NAV 5.0 on SQL
Regarding Table 5065 "Interaction Entry Log"
Theres are entries of Interactions, which have an Template Code assigned. The Template Code is part of a Template Group.
We have a Template Group named "SYSTEM" which has several Template Code members.
I need in list Form 5076 "Interaction Log Entries" - to filter out ALL members of the SYSTEM Group except One specific Template Code.
:oops: I can't figure out how to do this.. :oops:
SETFILTER/RANGE operates solely on one specifik Field at a time.
Will I have to list all the members of the Group which I want to Filter out - except the One I want to show?
Maybe filter the table twice and join the results in a temporary table?
Any inputs are appreaciated
Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-841
Johannes Sebastian
MB7-840,MB7-841
0
Answers
-
Hi,
Maybe you could create your filter dynamically...
Something like :TemplateCode.SETFILTER("Template Group","System"); TemplateCode.FINDFIRST; REPEAT IF TemplateCode.Code <> "UnwantedCode" THEN FilterTextVar = TemplateCode.Code + '|' UNTIL TemplateCode.NEXT = 0 InteractionEntries.SETFILTER("Template Code",FilterTextVar);
Or if it is used everywhere you can also add the Field "Template Group" in your table as a lookup flowfield and use standard table filter in your form. (Group = "System" AND Code <> "UnwantedOne")
Hope this help,
dkone.0 -
Hello dkone
Thank you so much for your suggestions, I will try them out tomorrow! :thumbsup:Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-8410
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