I've overwritten the lookup method on a field to customize and filter the results. However, I'm trying to have the DeliveryDate as a column and the text is bringing back the default text of "Date". I'd like for it to be more specific. How does one change the text in x++? Included before is my current code. Thanks!
public void lookup()
{
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(VendPackingSlipTrans),this);
Query query = New Query();
QueryBuildDataSource queryBuildDataSource = query.addDataSource(tableNum(VendPackingSlipTrans));
QueryBuildRange qbrTransId, qbrFullyMatched, qbrQty;
;
sysTableLookup.addLookupfield(fieldNum(VendPackingSlipTrans, PackingSlipId),true);
sysTableLookup.addLookupfield(fieldNum(VendPackingSlipTrans, DeliveryDate),false);
queryBuildDataSource.addSortField(fieldNum(VendPackingSlipTrans, PackingSlipId));
qbrTransId = queryBuildDataSource.addRange(fieldNum(VendPackingSlipTrans, InventTransId));
qbrFullyMatched = queryBuildDataSource.addRange(fieldNum(VendPackingSlipTrans, FullyMatched));
qbrQty = queryBuildDataSource.addRange(fieldNum(VendPackingSlipTrans, Qty));
qbrTransId.value(queryValue(POInvoiceIntegration.TradeInventTransId));
qbrFullyMatched.value(queryValue(NoYes::No));
qbrQty.value(queryValue(POInvoiceIntegration.PurchQty));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
//super();
}
*This post is locked for comments
I have the same question (0)