How to Disable ComboBox by Checkbox in AX 2012

Hi Guys,

I have a question about how to implement this code

I just wanna disable textbox by Checkbox, if check is true my textbox will disable.

anyone can help and share

Regards

Is the check box a bound or un bound control?
control.allowEdit(NoYes::No)

Try true , false instead of NoYes::No in you code ,

twhg.fieldsname.Allowedit(false);

Hi,

Try this code in ur checkbox’s modified method…

public boolean modified()
{
    boolean ret;

    if(CheckBox123.checked())
    {
    ComboBox123.allowEdit(false);
    }
    else
    {
    ComboBox123.allowEdit(true);
    }

    ret = super();

    return ret;
}