Method: postRun
/// <summary>
/// Implements the functionality that is supposed to execute after run.
/// </summary>
public void postRun()
{
this.sampleTableIdLookup();
}
Method: sampleTableIdLookup
/// <summary>
/// Creates a SampleTable id lookup.
/// </summary>
public void sampleTableIdLookup()
{
TableTmp tableTmp;
tableTmp.id = 1;
tableTmp.insert();
tableTmp.id = 2;
tableTmp.insert();
Query query = new Query();
query.adddatasource(tablenum(tableTmp));
query.datasourcetable(tablenum(tableTmp)).addselectionfield(fieldnum(tableTmp,ID));
tableTmp
);TableId multiSelectTableNum = tableNum(tableTmp);
container selectedFields = [multiSelectTableNum, fieldName2id(multiSelectTableNum, fieldStr(tableTmp, Id))];
SysLookupMultiSelectCtrl::constructWithQueryRun(this.dialog().dialogForm().formRun(), idField.control(), qr, false, selectedFields);
}