Keep a Check box selected

sarabi98sarabi98 Member Posts: 13
I have created a report using Navision 4.0. For the Report I have a request form which lets the user choose to Show certain details. I figured out how to keep the check box true (checked) each time the report is run without compilation. However, the check box gets unchecked when I compile the report.

I assume that this can be done in the Reports C/AL code section for the trigger OnPreReport().
Does anyone know how to set it so that the checkbox is always selected even after I compile the report?

Thanks in Advance.

NP

Comments

  • ara3nara3n Member Posts: 9,257
    Design the report. go to request form. go to C/AL code. Add the following to the on openform trigger.

    MyCheckbox := true;




    Mycheckbox is the variable for the source expression.of the check box.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • sarabi98sarabi98 Member Posts: 13
    Rashed,
    Thank you for your help. It works now. Check box remains selected by default.

    NP
  • ara3nara3n Member Posts: 9,257
    You are welcome. :)
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.