Solved Dynamic LookUpPage
FrAusDo
Member Posts: 3
Hi,
I have a problem.
I want to deposit in a tables field A a table ID and B open on the LookUp an Additional Field to the lookup table in the field A.
Is that possible?
Have I made myself clear?
An example. If the field A is a 18 to the lookup Page "Customer List" to be called,
If the field A is a 27 then it should be the Page "Item List".
Does anyone have a solution?
Greeting Frank
I have a problem.
I want to deposit in a tables field A a table ID and B open on the LookUp an Additional Field to the lookup table in the field A.
Is that possible?
Have I made myself clear?
An example. If the field A is a 18 to the lookup Page "Customer List" to be called,
If the field A is a 27 then it should be the Page "Item List".
Does anyone have a solution?
Greeting Frank
0
Comments
-
[Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
You can set that up as a conditional table relationship in the Table Designer, and NAV will automatically use that target table's lookup page.1
-
Hi Daniel,
Thanks, but that is not dynamic enough.
A field can have the IDs of all the tables. The Conditional list would be very long and must be replaced with new fields, if I understand you correctly.
Greeting Frank
I think you mean so, right ??
0 -
Yes that's it. If that doesn't work for you, can you explain what "not dynamic enough" means?0
-
Hi Frank,
You can use recordref and variant variable types to run default pages.
RecRef.OPEN(TableID);
VariantRec := RecRef;
PAGE.RUN(0,VariantRec);Ufuk Asci
Pargesoft0 -
Thanks a lot.
Greeting Frank
0 -
Hi.
I had the same wish and this solution works fine. But one more question: is it possible to get back the selected records from that page?
Thanks for any ideas
Thomas0 -
I think you cannot do this unless programming in page object. Selection is part of page events and you cannot access these events when you use page.run(modal) function. SelectionFilterManagement codeunit includes examples of generic access to selected rows but as you can already notice there, each seperate table has it's own function.Ufuk Asci
Pargesoft0
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
