I am invoking a custom search and then trying to set the vendorID equal to the result of the search.
public void InvokeCustomSearch() { object result = ProcessCaller.InvokeAdapterMethod(oTrans.EpiBaseForm, "QuickSearchAdapter", "ShowQuickSearchForm", new object[] {oTrans.EpiBaseForm, "DAG-POSUGG", false /* multi-select */, new DataTable() }); if (result == null) return; POSuggAdapter _adapter = (POSuggAdapter)csm.TransAdaptersHT["oTrans_adapter"]; _adapter.BOConnect(); try { _adapter.ChangeVendor(result.ToString()); }catch(Exception e) { MessageBox.Show(e.ToString()); } }
The error it throws says “no adjustments made” and I traced that error back to Erp.Proxy.BO, POSuggImpl.ChangeVendor.
The default search also invokes the ChangeVendor so what am I missing that is not allowing this to work?
Do I have to change my adapter or maybe pass ChangeVendor more arguments?