Filter Function

Hayan
Member Posts: 110
Dear All,
Anybody can help on what is the function that gets called when you do a filter on the Filter Box in any list in NAV Client? I mean i am trying to write a code that is triggered when a user do a filter in the list page but i am not getting where is this function?
appreciate your help.
Best
HAYAN
Anybody can help on what is the function that gets called when you do a filter on the Filter Box in any list in NAV Client? I mean i am trying to write a code that is triggered when a user do a filter in the list page but i am not getting where is this function?
appreciate your help.
Best
HAYAN
0
Answers
-
Hayan, Hi. Not sure what you mean. Are you getting a user to confirm a filter and then you want to apply it to a table? If so, use a text global and then assign this using SETRANGE to a filter. Neil0
-
Hi Hayan,
it's not possible to access the filterbox in the upper right from a code-perspective.My blog - https://www.HannesHolst.com/0 -
@neilgf , Nup i think @HannesHolst understood me, i need to make a notification when a user searches for a customer and he didnt find it, the system will suggest creating this customer using a template, any body has passed into such an idea like this? if yes how did u manage to do it?
Best
HAYAN0 -
Hayan,
That's not the normal approach in how to work with NAV.
Normally, when you filter for a customer and the result is 0, the user should be able to push "New" on Customer-list.
But, I know requests from clients
You could do something like this in OnAfterGetRecord:IF (Rec.GETFILTERS <> '') AND (ISEMPTY) AND (NOT AlreadySuggested) THEN BEGIN // show template suggestion here AlreadySuggested := TRUE; END;
I've inserted "AlreadySuggested" to avoid a loop in case the user doesn't want to create a customer using a template.
Nevertheless, try to convince your client to stick to the standard approach.
Cheers,My blog - https://www.HannesHolst.com/0 -
@HannesHolst HAHAHAH yes exactly, Some client as much as you try to convince them, they will not follow, they are just like this.
Thank you for your advice, i will try to manage with the Above code.
Best
HAYAN0
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