Hi Andrew,
I got the following lookup function under the ItemId. It is calling
super(_formControl, _filterStr);
can you please help me how to modify it. So I can get the ItemName column in lookup.
I think we need to override this method.
public void lookup(FormControl _formControl, str _filterStr)
{
Args args;
FormRun formRun;
// info("dkdkd");
if (EcoResProductParameters::find().pcLookupMethod == PCLookupMethod::Configurable)
{
args = new Args(formStr(PCProductLookup));
//args.caller(element);
//formRun = classfactory.formRunClass(args);
//formRun.init();
//this.performFormLookup(formRun, _formControl);
}
else if (PBAParameters::find().LookupMethod == PBALookupMethod::Configurable)
{
args = new Args(formStr(PBAItemIdLookup));
/*args.caller(element);
args.record(salesLine);
args.parm(_filterStr);
formRun = classfactory.formRunClass(args);
formRun.init();
this.performFormLookup(formRun, _formControl);*/
}
else
{
super(_formControl, _filterStr);
}
}