I built a new search button and FINALLY got that to work as desired however, when I deploy it to the PO Requisition functionality via new customization it works fine BUT there is code associated with the std search which enables 4 fields within that UI panel group. Using my new search button doesn’t automatically set those fields to enabled. If you save after search the std logic opens those fields but that is a bit clunky. Sooooooo I figure all I need to do is add a line for each field to set extended properties but alas no-go - the fields do not open up. No compile error and no change of outcome. Any ideas/help out there?? I tried to set the ReadOnly as well as the Enabled and both together but nothing changes on the UI panel. Here’s the code I’ve set up:
private void DIIbtnSupplier_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
object selected = ProcessCaller.InvokeAdapterMethod(oTrans.EpiBaseForm,"QuickSearchAdapter", "ShowQuickSearchForm", new object[]
{oTrans.EpiBaseForm, "QS_PPointActive", false, new DataTable()});
if (selected != null)
{
string Supplier = selected.ToString().Split(';')[0];
string PurPoint = selected.ToString().Split(';')[1];
var edvReqDetail = ((EpiDataView)(this.oTrans.EpiDataViews["ReqDetail"]));
if(edvReqDetail.Row >= 0)
{
edvReqDetail.dataView[edvReqDetail.Row]["VendorID"] = Supplier;
edvReqDetail.dataView[edvReqDetail.Row]["PurPoint"] = PurPoint;
edvReqDetail.dataView.Table.Columns["CurrencyCode"].ExtendedProperties["ReadOnly"] = false;
edvReqDetail.dataView.Table.Columns["CurrencyCode"].ExtendedProperties["Enabled"] = true;
edvReqDetail.dataView.Table.Columns["MfgNum"].ExtendedProperties["Enabled"] = true;
edvReqDetail.dataView.Table.Columns["MfgPartNum"].ExtendedProperties["Enabled"] = true;
edvReqDetail.dataView.Table.Columns["VenPartNum"].ExtendedProperties["Enabled"] = true;
edvReqDetail.dataView.Table.Columns["DocUnitCost"].ExtendedProperties["Enabled"] = true;
//EpiMessageBox.Show("Should fill!! " + Supplier + " " + PurPoint);
}
//EpiMessageBox.Show("it works!! " + Supplier + " " + PurPoint);
}
}
}