Tuesday, 16 July 2013

lookup method



Look up-

public void lookup()
{
    //super();
    Query               query;
    SysTableLookup      sysTableLookup;
    query = new Query();
    sysTableLookup = SysTableLookup::newParameters(tableNum(DirPerson), this);
    query.addDataSource(tableNum(DirPerson));

    sysTableLookup.addLookupfield(fieldNum(DirPerson, Name));
    sysTableLookup.addLookupfield(fieldNum(DirPerson, PartyNumber));
   // sysTableLookup.addLookupfield(fieldNum(LogisticsAddressCountryRegionNameView, ShortName));
   // sysTableLookup.setLabel(“@SYS7576″);
   // sysTableLookup.addLookupfield(fieldNum(LogisticsAddressCountryRegionNameView, AddrFormat));
    sysTableLookup.parmQuery(query);
   sysTableLookup.performFormLookup();

}

No comments:

Post a Comment