Modify Columns in Search for E9

In E10, I can use this object to modify the visible columns in an E10 search:

EpiSearchBase adapterSearchForm = oTrans_adapter.SearchForm;

However in E9, the Property “SearchForm” does not exist. Is there another option?
This is for Inspection Processing so a QuickSearch will not be easy (possible?).

I see the prop SearchForm in my E9 702A… what is your oTrans_adapter

I see in E9 the EpiBaseAdapter does not have it… but if you cast it, then it should be avail.

Try something like:

EpiSearchBase adapterSearchForm = ((Epicor.Mfg.UI.Adapters.InspProcessingAdapter)oTrans_adapter).SearchForm;

Another way that could work is

EpiSearchBase adapterSearchForm = ((Epicor.Mfg.UI.Adapters.InspProcessingAdapter)this.oTrans.PrimaryAdapter).SearchForm;

I had to add the Assembly Reference, but this line worked:

EpiSearchBase adapterSearchForm = ((Epicor.Mfg.UI.Adapters.InspProcessingAdapter)oTrans_inspAdapter).SearchForm;
1 Like