void Fld1_1_Lookup()
{SysTableLookup sysTableLookup;
Query query = new Query();
QueryBuildDataSource qbds;
;
control = dialog.formRun().controlCallingMethod();
sysTableLookup =SysTableLookup::newParameters(tableNum(LedgerJournalTrans), control);
sysTableLookup.addLookupfield(fieldNum(LedgerJournalTrans, RecId));
sysTableLookup.addLookupfield(fieldNum(LedgerJournalTrans, JournalNum));
sysTableLookup.addLookupfield(fieldNum(LedgerJournalTrans, AccountType));
sysTableLookup.addLookupfield(fieldNum(LedgerJournalTrans, AccountNum));
sysTableLookup.addLookupfield(fieldNum(LedgerJournalTrans, txt));
qbds = query.addDataSource(tableNum(LedgerJournalTrans));
//isterseniz range ekleyebilirsiniz
//qbds.addRange(fieldNum(LedgerJournalTrans,TransDate)).value(queryValue(dialogTransDate.value()));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();}