Form Control Methods in D365
[ExtensionOf(formstr(CustFreeInvoice))]
public final class CustFreeInvoice_Form_Extension
{
void init()
{
FormRun formRun = this;
FormCheckBoxControl ReleaseOrderOnCreditLimit = formRun.design().controlName(formControlStr(CustFreeInvoice,ReleaseOrderOnCreditLimit));
FormDataSource CustInvoiceTable_DS = formRun.dataSource(formDataSourceStr(CustFreeInvoice,CustInvoiceTable));
next init();
/*
Other way to get control name
formRun.design().controlName('TaxVATNum'),
formRun.design().controlName('VATNum'),
formRun.design().controlName('NumCheckCtrl'),
formRun.design().controlName('ViesCheckCtrl'),
*/
ReleaseOrderOnCreditLimit.visible(false);
}
}
[ExtensionOf(formstr(CustFreeInvoice))]
public final class CustFreeInvoice_Form_Extension
{
void init()
{
FormRun formRun = this;
FormCheckBoxControl ReleaseOrderOnCreditLimit = formRun.design().controlName(formControlStr(CustFreeInvoice,ReleaseOrderOnCreditLimit));
FormDataSource CustInvoiceTable_DS = formRun.dataSource(formDataSourceStr(CustFreeInvoice,CustInvoiceTable));
next init();
/*
Other way to get control name
formRun.design().controlName('TaxVATNum'),
formRun.design().controlName('VATNum'),
formRun.design().controlName('NumCheckCtrl'),
formRun.design().controlName('ViesCheckCtrl'),
*/
ReleaseOrderOnCreditLimit.visible(false);
}
}
No comments:
Post a Comment