To return the value of a CFL and try moving to an Edit Box with the error 'Form - Bad Value'
Anyone have a suggestion?
Code:
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST && !pVal.Before_Action)
{
oForm = SBO_Application.Forms.Item(pVal.FormUID);
oForm.Select();
IChooseFromListEvent ichoose = (IChooseFromListEvent)pVal;
if (ichoose.ChooseFromListUID == "CFL_52")
{
oEdit = (EditText)oForm.Items.Item("Item_4").Specific;
oEdit.Value = ichoose.SelectedObjects.GetValue("ItmsGrpNam", 0).ToString();
}
}