I am trying to update the Price List Parts Business Object and I used the wizard but I am getting an error on this line:
Ice.Lib.Searches.DataSetMode dsMode = ((Ice.Lib.Searches.DataSetMode)(edvGS_Price_Lists_All_BAQ.dataView[edvGS_Price_Lists_All_BAQ.Row][“PriceLst_ListCode”]));
private void CallPriceLstPartsAdapterGetCurrentDataSetMethod()
{
try
{
// Declare and Initialize EpiDataView Variables
EpiDataView edvGS_Price_Lists_All_BAQ = ((EpiDataView)(this.oTrans.EpiDataViews["GS_Price_Lists_All_BAQ"]));
// Check if valid EpiDataView Row(s) are selected
if ((edvGS_Price_Lists_All_BAQ.Row < 0))
{
return;
}
MessageBox.Show("Price List Parts 1");
// Declare and create an instance of the Adapter.
PriceLstPartsAdapter adapterPriceLstParts = new PriceLstPartsAdapter(this.oTrans);
adapterPriceLstParts.BOConnect();
MessageBox.Show("Price List Parts 0");
// Declare and Initialize Variables
// TODO: You may need to replace the default initialization with valid values as required for the BL method call.
Ice.Lib.Searches.DataSetMode dsMode = ((Ice.Lib.Searches.DataSetMode)(edvGS_Price_Lists_All_BAQ.dataView[edvGS_Price_Lists_All_BAQ.Row]["PriceLst_ListCode"]));
MessageBox.Show("Price List Parts 1");
// Call Adapter method
System.Data.DataSet dsPriceLstParts = adapterPriceLstParts.GetCurrentDataSet(dsMode);
MessageBox.Show("Price List Parts 2");
adapterPriceLstParts.PriceLstPartsData.PriceLstParts[0]["GS_ColorsIncluded_c"] = 2;//Convert.ToInt32(tbBasecolorsunits.Text);
MessageBox.Show("Price List Parts 3");
adapterPriceLstParts.Update();
// Cleanup Adapter Reference
adapterPriceLstParts.Dispose();
} catch (System.Exception ex)
{
ExceptionBox.Show(ex);
}
}