Check Box Enable / Disable

Hi together,

at first : I code with navision since 1 day, so i think my question is a beginner problem :wink:
As well im from Germany, so my english is not the best.

My little proble : I have 2 Checkboxes on my Report. If Checkbox 1 was unchecked, Checkbox 2 must be disabled. I have try it with ENABLE and ACTIVE but nothing works.

I have use the search function in the board but nothing found.

And if my grammar is incorrect, correct me so i improve my english.

Greetz CBT

Hi,

Welcome!

I guess you mean 2 checkboxes on the request form. Fill in Name (Checkbox2) in the properties for checkbox2.

In OnValidate (C/AL code / F9) of checkbox1 (bln1) put the following code):

if bln1 = false then
RequestOptionsForm.Checkbox2.ENABLED(FALSE)
else
RequestOptionsForm.Checkbox2.ENABLED(TRUE);

By the way; you’ll find lots of information on this site how to learn navision! Good luck!

hi where can I find the onvalidate? I working on Report 120 and wanted to make the checkbox there to be checked by default. how do i do that? Thanks in Advance.

Just view the C/AL Code behind your check box. You’ll find the OnValidate trigger there.

You may also want to read the Application Designer’s Guide which is shipped with the product CD. You’ll find many useful examples and tutorials there.