Advertisement
onurunki

Untitled

Aug 15th, 2014
3,487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XPP 0.97 KB | None | 0 0
  1. public void lookup()
  2. {
  3.     SysTableLookup       sysTableLookup;
  4.     Query                query;
  5.     QueryBuildDataSource queryBuildDataSource;
  6.     QueryBuildRange      queryBuildRange;
  7.     itemId               itemId;
  8.     ;
  9.     sysTableLookup = SysTableLookup::newParameters(tableNum(SalesTable),this);  //bu form üzerinde olacağı için this
  10.     sysTableLookup.addLookupfield(fieldNum(SalesTable,SalesId));
  11.     sysTableLookup.addLookupfield(fieldnum(SalesTable,SalesName));
  12.     sysTableLookup.addLookupfield(fieldnum(SalesTable,DeliveryDate));
  13.  
  14.     query = new Query();
  15.     queryBuildDataSource = query.addDataSource(tablenum(SalesTable));
  16.     queryBuildRange= queryBuildDataSource.addRange(fieldnum(SalesTable,SalesName));
  17.     queryBuildRange.value('H*');
  18.     //queryBuildRange.value(strFmt("SalesName like '%1'", queryValue("H*")));
  19.     //queryBuildRange.value((queryValue("00004_036")));
  20.     sysTableLookup.parmQuery(query);
  21.     sysTableLookup.performFormLookup();
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement