Part Functions not Available from Main Page?
bhalpin
Member Posts: 309
Hi.
I have created a page with the source-table Item. In that page I have created several Groups, and within each a Part with Subtype Page. So far this seems fairly parallel to forms and sub-forms.
The main page has controls for date filters, etc. that I need to transmit down to the sub parts/pages. In a form this was easy - you added a function to the sub-form and called it from the main form.
I tried the same here - added a function to the "sub-page", but back in the main page when i bring up the Symbol Menu, under CurPage -> Controls I see the Group and the Page - but when I drill down into Functions for the page there are none listed.
Can I not call a function in a sub-page like I could with a sub-form?
If not, is there another way to transmit information to the sub-page?
Thanks!
I have created a page with the source-table Item. In that page I have created several Groups, and within each a Part with Subtype Page. So far this seems fairly parallel to forms and sub-forms.
The main page has controls for date filters, etc. that I need to transmit down to the sub parts/pages. In a form this was easy - you added a function to the sub-form and called it from the main form.
I tried the same here - added a function to the "sub-page", but back in the main page when i bring up the Symbol Menu, under CurPage -> Controls I see the Group and the Page - but when I drill down into Functions for the page there are none listed.
Can I not call a function in a sub-page like I could with a sub-form?
If not, is there another way to transmit information to the sub-page?
Thanks!
0
Answers
-
I got it.
You have to create a variable of type Page with the subtype the (sub) page you want to configure. The functions of that page are then available through that variable.0 -
That approach will work, except when you specifically need to reference something from that particular instance of the sub page. There is a strange syntax (as of NAV 2009 R2) that you can use to access the exact sub page instance set in your main page (think pagepart in a factbox, where you need to set or access a variable or function that applies to the instance running within your main form).
CurrPage."NameOfSubPageInstance".FORM."FunctionName";
Note the call to .FORM (even though we are talking about a page).Jason Down
Senior Programmer/Analyst
Home Hardware Stores Limited
Stackoverflow Profile
Blog
Follow me on Twitter0
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
- 322 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