cannot modify a command while checkbox is checked

mib_123mib_123 Member Posts: 2
Hi,
i am a new navision student. The question is:

I have a form,if the the checkbox is true then a particular command button should be not visible.

else the command button should be visible.

would u be able to show me the approapriate code for this task.

thanks

Comments

  • nilesh20nilesh20 Member Posts: 14
    Hello,

    You need to write code on Check Box's OnPush Trigger that:

    CurrForm.CommandBox.VISIBLE(not Checkbox);

    Try it.
    Thanks,
    Nilesh Panchal
    MS Dynamics Techno-Functional Consultant,
    Dhyey Consulting Service Pvt. Ltd.
    npanchal@dhyey.com
  • matttraxmatttrax Member Posts: 2,309
    Better yet, in the OnPush trigger of the button you can add

    IF NOT CheckBox THEN
    ERROR('Checkbox must be checked to proceed')

    That way the user isn't left wondering where the button went. And a user without training knows what to do to get the button to work with some prompting.
Sign In or Register to comment.