public void lookup()

{

    query = new Query();

    sysTableLookup = SysTableLookup::newParameters(tableNum(smmBusRelTable), this);

    qbds = query.addDataSource(tablenum(smmBusRelTable));

   // qbds.addDataSource(tableNum(DirPartyTable));

    //qbds.relations(true);

 

    sysTableLookup.parmQuery(query);   

    sysTableLookup.addLookupField(fieldNum(smmBusRelTable, Busrelaccount));

    //sysTableLookup.addLookupfield(fieldNum(DirPartyTable, Name));

     sysTableLookup.performFormLookup();

}

Advertisements