To work with a control in X++, the AutoDeclaration must be set to YES. In the control, choose properties and set AutoDeclaration to YES.
Find the methods for a ComboBox in the form (Form, Designs, Design, ... Group, ComboBox(name), Methods). Right click Methods, Override Method, choose "SelectionChange".
public int selectionChange()
{
int ret;
ret = super();
if(ComboBoxOnForm.selection() == SalesType::Journal)
{
Button.enabled(false);
}
else
{
Button.enabled(true);
}
return ret;
}
HappyDaxing:)
Find the methods for a ComboBox in the form (Form, Designs, Design, ... Group, ComboBox(name), Methods). Right click Methods, Override Method, choose "SelectionChange".
public int selectionChange()
{
int ret;
ret = super();
if(ComboBoxOnForm.selection() == SalesType::Journal)
{
Button.enabled(false);
}
else
{
Button.enabled(true);
}
return ret;
}
HappyDaxing:)
No comments:
Post a Comment