cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn`t ChooseFromList retrieve value?

0 Kudos

Hello!

I hope to get your advice to solve my issue with "ChooseFromList"

in "Edit" item

on the Form without "ObjectType".

I have to choose one of "Item Group" from the list, and execute a query to fulfill "Grid" on Form for fast create Purchase Order. But when I stick ChooseFromList with Object Type = 52 and open this list in UI after chosen item group my field "Edit" item remain empty

Thanks!

View Entire Topic
former_member595093
Participant

I'm use this code:

private void Button1_ChooseFromListAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)
{
    if (pVal.ActionSuccess)
    {
        SAPbouiCOM.SBOChooseFromListEventArg cfl = ((SAPbouiCOM.SBOChooseFromListEventArg)(pVal));
        if (cfl.SelectedObjects == null)
        {
            return;
        }
        else
        {
            (this.UIAPIRawForm as SAPbouiCOM.Form)
                  .DataSources.UserDataSources.Item("SYS_2").Value
                         = cfl.SelectedObjects.GetValue("ItmsGrpCod", 0).ToString();
        }
    }
}
0 Kudos

Thank you very much!!