[ExtensionOf(formStr(DirPartyQuickCreateForm))]
final public class SFA_DirPartyQuickCreateForm_DlvMode_Extension
{
public void init()
{
next init();
if(fbds.table() == tableNum(smmBusRelTable))
{
// dirPartyEntityDataSource = _formRun.dataSource(formDataSourceStr(DirPartyQuickCreateForm, DirPartyEntity)) as FormDataSource;
dirPartyEntity_ds.object(fieldNum(smmBusRelTable,DlvMode)).registerOverrideMethod(methodStr(FormDataObject, lookup), methodStr(SFA_DirPartyQuickCreateForm_DlvMode_Extension, myLookupMethod), this);
}
}
public void myLookupMethod(FormStringControl _fsc)
{
SysTableLookup tableLookup = SysTableLookup::newParameters(tableNum(SFA_SalesAgreementDlvMode),_fsc);
tableLookup.addLookupField(fieldNum(SFA_SalesAgreementDlvMode,Name));
tableLookup.addLookupField(fieldNum(SFA_SalesAgreementDlvMode,Description));
tableLookup.performFormLookup();
}
}
[ExtensionOf(formStr(DirPartyQuickCreateForm))]
final public class SFA_DirPartyQuickCreateForm_DlvMode_Extension
{
public void init()
{
next init();
if(fbds.table() == tableNum(smmBusRelTable))
{
fbds.fieldId(fieldNum(smmBusRelTable,DlvMode)).registerOverrideMethod(methodStr(FormDataSource, lookup), methodStr(SFA_DirPartyQuickCreateForm_DlvMode_Extension, myLookupMethod), this);
}
}
public void myLookupMethod(FormStringControl _fsc)
{
SysTableLookup tableLookup = SysTableLookup::newParameters(tableNum(SFA_SalesAgreementDlvMode),_fsc);
tableLookup.addLookupField(fieldNum(SFA_SalesAgreementDlvMode,Name));
tableLookup.addLookupField(fieldNum(SFA_SalesAgreementDlvMode,Description));
tableLookup.performFormLookup();
}
}
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156