Subform on the request form of a report

nismo2006nismo2006 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.

Comments

  • garakgarak Member Posts: 3,263
    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);
    

    Regards
    Do you make it right, it works too!
  • nismo2006nismo2006 Member Posts: 22
    garak,

    Pure genius. Worked great, I really appreciate it. Have a good one. =D>
  • garakgarak Member Posts: 3,263
    No problem, god to know that it worked (have it not tested before 8) :D )

    So, welcome .....

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.