Hi i'm new to ax and learning new concepts. So I have a piece of code which i have to optimise it.
public void lookup()
{
Query query = new Query();
QueryBuildDataSource qbdsCustInvoiceJour;
QueryBuildRange qbr;
SysTableLookup sysTableLookup = sysTableLookup::newParameters(tableNum(CustInvoiceJour),this);
qbdsCustInvoiceJour = query.addDataSource(tableNum(CustInvoiceJour));
qbdsCustInvoiceJour.addRange(fieldNum(CustInvoiceJour,InvoiceAccount)).value(Customer.valueStr());
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour,InvoiceAccount));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour,CurrencyCode));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour,custgroup));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour,InvoiceId));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
Is there any way i can shorten the size of the code.
*This post is locked for comments