Subform on the request form of a report

nismo2006
Member Posts: 22
Hey everyone,
I am trying to place a subform on the request form of a report.
It is a basic list form that has some simple code in the OnOpenForm trigger of the called form.
When I run it from the designer, the form displays and all the data is correct.
However, when I run it from the Navigation Pane or Object Designer, it does not trigger the code and it does not show up on the request form at all. It is just a placeholder of where the form should be. I even commented out all code just to see if it would display at all, but no luck. It is almost like it is skipping the opening of the form when not run through designer.
I was not sure if there is a function that I can call to make this show or something I was missing.
I appreciate the help in advance.
I am trying to place a subform on the request form of a report.
It is a basic list form that has some simple code in the OnOpenForm trigger of the called form.
When I run it from the designer, the form displays and all the data is correct.
However, when I run it from the Navigation Pane or Object Designer, it does not trigger the code and it does not show up on the request form at all. It is just a placeholder of where the form should be. I even commented out all code just to see if it would display at all, but no luck. It is almost like it is skipping the opening of the form when not run through designer.
I was not sure if there is a function that I can call to make this show or something I was missing.
I appreciate the help in advance.
0
Comments
-
Give your SubForm a Name (Properties of the Subform Control) like SubFormOnReqForm.
Then go to Reqest Form and open the C/AL Editor.
Go to XYZ - OnOpenForm() and write the following:RequestOptionsForm.SubFormOnReqForm.VISIBLE(TRUE);
RegardsDo you make it right, it works too!0 -
garak,
Pure genius. Worked great, I really appreciate it. Have a good one. =D>0 -
No problem, god to know that it worked (have it not tested before 8)
)
So, welcome .....
RegardsDo you make it right, it works too!0
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