Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Item Name in Item lookup

$
0
0

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);

   }

}


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>