public void postBuild() { super(); // get references to dialog controls after creation typeField = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(DTPackingSlipNotInvoicedBatchContract, parmtype)); toField = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(DTPackingSlipNotInvoicedBatchContract, parmTo));
if(typeField.Value() == DTPackingSlipNotInvoiceType::SalesPerson)
{
toField.enabled(false);
}}
if(_selection.selection() == DTPackingSlipNotInvoiceType::SalesPerson)
final class DTPackingSlipNotInvoicedBatchUIBuilder extends SysOperationAutomaticUIBuilder
{
DialogField typeField;
DialogField toField;
public void postBuild()
{
super();
// get references to dialog controls after creation
typeField = this.bindInfo().getDialogField(this.dataContractObject(),
methodStr(DTPackingSlipNotInvoicedBatchContract, parmtype));
toField = this.bindInfo().getDialogField(this.dataContractObject(),
methodStr(DTPackingSlipNotInvoicedBatchContract, parmTo));
}
public void postRun()
{
super();
// register overrides for form control events
typeField.registerOverrideMethod(methodstr(FormComboBoxControl, modified),
methodstr(DTPackingSlipNotInvoicedBatchUIBuilder, modified), this);
}
public void modified(FormComboBoxControl _selection)
{
DTPackingSlipNotInvoicedBatchContract cTPackingSlipNotInvoicedBatchContract = this.dataContractObject() as DTPackingSlipNotInvoicedBatchContract;
if(_selection.selection() == DTPackingSlipNotInvoiceType::SalesPerson)
{
toField.visible(false);
}
}
}
public void modified(FormComboBoxControl _selection)
{
DTPackingSlipNotInvoicedBatchContract cTPackingSlipNotInvoicedBatchContract = this.dataContractObject() as DTPackingSlipNotInvoicedBatchContract;
if(_selection.selection() == DTPackingSlipNotInvoiceType::SalesPerson)
{
toField.enabled(false);
}
}
final class DTPackingSlipNotInvoicedBatchUIBuilder extends SysOperationAutomaticUIBuilder
{
DialogField typeField;
DialogField toField;
public void postBuild()
{
super();
// get references to dialog controls after creation
typeField = this.bindInfo().getDialogField(this.dataContractObject(),
methodStr(DTPackingSlipNotInvoicedBatchContract, parmtype));
toField = this.bindInfo().getDialogField(this.dataContractObject(),
methodStr(DTPackingSlipNotInvoicedBatchContract, parmTo));
}
public void postRun()
{
super();
// register overrides for form control events
typeField.registerOverrideMethod(methodstr(FormComboBoxControl, modified),
methodstr(DTPackingSlipNotInvoicedBatchUIBuilder, modified), this);
}
public boolean modified(FormComboBoxControl _selection)
{
boolean toField;
DTPackingSlipNotInvoicedBatchContract cTPackingSlipNotInvoicedBatchContract = this.dataContractObject() as DTPackingSlipNotInvoicedBatchContract;
if(_selection.selection() == DTPackingSlipNotInvoiceType::SalesPerson)
{
toField.visible(false);
}
return toField;
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156