How to identify if list Page is open as Dropdown?
vaxo_jj
Member Posts: 54
Hi All,
Is there any way to identify if list page is open as normal list or as a Dropdown?
Example: I've different type of vendors (identified by Vendor Type field). Dropdown page indicated on vendor table can be only one. I want to see in normal Vendor List page only those vendors which have e.g. Type=Vendor, but when I click Buy-from Vendor No. on Purchase Invoice - I want to see in Dropdown all vendors. If I set filter on Vendor List page - in both cases it will be filtered.
Is there any way to distinguish between them?
Is there any way to identify if list page is open as normal list or as a Dropdown?
Example: I've different type of vendors (identified by Vendor Type field). Dropdown page indicated on vendor table can be only one. I want to see in normal Vendor List page only those vendors which have e.g. Type=Vendor, but when I click Buy-from Vendor No. on Purchase Invoice - I want to see in Dropdown all vendors. If I set filter on Vendor List page - in both cases it will be filtered.
Is there any way to distinguish between them?
0
Answers
-
Hi there vaxo_jj
If I understand you well, you need this on DrillDown trigger on your field:DrillVendors - OnValidate() VendorRec.SETRANGE(Type, Type::Vendor); VendorPage.SETTABLEVIEW(VendorRec); VendorPage.RUN
VendorRec Record Vendor
VendorPage Page Vendor List
Regards
0 -
Hi aceX,
That's not I exactly need, because if you put code in DrillDown trigger - normal functionality of drilling down (showing smaller list page directly under the field) is not available any-more. I want to keep this functionality.0 -
Hi,
The functionality you are asking for is built-in and it is based on conditional/filtered relations
For example, you have "Buy-from Vendor No." and "Pay-To Vendor No" fields both related to table 23 Vendor. If you change relation on "Buy-from Vendor No." to include filter enabling only vendors having field "Vendor Type" set to Vendor your lookup page will be automatically pre-filtered when you lookup vendor from "Buy-from Vendor No." , and will have no filters applied when you lookup a vendor from "Pay-To Vendor No.".
Changing relation in fields on a case-by-case basis would be the easiest solution I'd think.
SlawekSlawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
When a page is dropped down it will run the Page-OnInit but not the Page-OnOpenPage as is the case when the page is fully opened.0
-
Hmm.. Debugger says someting different... It says that both OnInit and OnOpenPage are fired one after another when you do a lookup. Or am I missing someting?Duikmeester wrote: »When a page is dropped down it will run the Page-OnInit but not the Page-OnOpenPage as is the case when the page is fully opened.
Slawek
Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;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


