On Lookup of a form..
Fakerules
Member Posts: 50
When I look up on a form, I need to filter the values based on where I have looked up the form from..
i.e. different values for lookup from sales card and purchase card..
so can the form capture the id of the form it has been looked up from...
Thanks All
i.e. different values for lookup from sales card and purchase card..
so can the form capture the id of the form it has been looked up from...
Thanks All
0
Answers
-
Fakerules wrote:When I look up on a form, I need to filter the values based on where I have looked up the form from..
i.e. different values for lookup from sales card and purchase card..
so can the form capture the id of the form it has been looked up from...
Thanks All
hi ...
have you tried using "condition statements in ur codes"smile always
shona
That which you seek inside is that which you find outside0 -
If I understand you correctly :
try this.
YourTable.RESET;
YourTable.SETRANGE(Field [,FromValue] [.ToValue])
IF YourTable.FIND('-') THEN BEGIN
YourTable.FILTERGROUP(2);
CLEAR(YourForm);
YourForm.SETTABLEVIEW(YourTable);
YourForm.SETRECORD(YourTable);
YourForm.RUN;
END;Now or Never0 -
Hi,
This is diffrent tables so you dont have to catch form id or something to change filters, just change TableRelation property in tables. With same table forms like "sales order", "sales invoice" - add new condition to tablerelation base on type field0 -
Thanks everybody..
I am trying all your suggestions...
Will update you on the one that works..
keep helping.....0 -
JedrzejT wrote:Hi,
This is diffrent tables so you dont have to catch form id or something to change filters, just change TableRelation property in tables. With same table forms like "sales order", "sales invoice" - add new condition to tablerelation base on type field
Perfect Solution............
Done in seconds, thanks a million..0 -
Sorry Guys, only tried one solution and it works just fine....
Thanks all of you...
Problem Solved... :thumbsup:0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
