I have inserted this method:
private void SearchOnProdGrupAdapterShowDialog()
{
// Wizard Generated Search Method
// You will need to call this method from another method in custom code
// For example, [Form]_Load or [Button]_Click
bool recSelected;
string whereClause = string.Empty;
System.Data.DataSet dsProdGrupAdapter = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, "ProdGrupAdapter", out recSelected, true, whereClause);
if (recSelected)
{
System.Data.DataRow adapterRow = dsProdGrupAdapter.Tables[0].Rows[0];
// Map Search Fields to Application Fields
EpiDataView edvMain = ((EpiDataView)(this.oTrans.EpiDataViews["Main"]));
System.Data.DataRow edvMainRow = edvMain.CurrentDataRow;
if ((edvMainRow != null))
{
edvMainRow.BeginEdit();
edvMainRow["Group"] = adapterRow["ProdCode"];
edvMainRow.EndEdit();
}
}
}
What code do i need to run this when a button is clicked?