控件的Lookup
控件的Lookup
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(prodTable),this);
Query query = new Query();
QueryBuildDataSource qbds;
;
qbds = query.addDataSource(tablenum(ProdTable));
sysTableLookup.addLookupfield(fieldnum(prodTable,prodId));
sysTableLookup.addLookupfield(fieldnum(prodTable,Itemid));
if (SilverModelInfo_ItemId.text())
qbds.addRange(fieldnum(ProdTable,ItemId)).value(QueryValue(SilverModelInfo_ItemId.text()));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();