Wednesday, June 11, 2025

Enable / Disable form control through COC

 [ExtensionOf(formStr(FormName))]

final class FormName_Extension

{

    /// <summary>

    /// control visibility of SETIndicator flag based on Company parameters

    /// </summary>

    public void init()

    {

        next init();


        FormStringControl   SETIndicator = this.design().controlName(formControlStr(FormName, TableName_SETIndicator));

      

      

        if(SETIndicator  && curExt() ==  'YourCompany')

        {

            SETIndicator .visible(True);

        }

        else

        {

            SETIndicator .visible(false);

        }

    }

}


Happy DAXing ... :)

Enable / Disable form control through COC

 [ExtensionOf(formStr(FormName))] final class FormName_Extension {     /// <summary>     /// control visibility of SETIndicator flag b...