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!

Accepted Solutions (1)

Accepted Solutions (1)

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!!

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi Andrii Slyzhuk,

Set property "ChooseFromListAutoFill" to true and check whether you get the value or not?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos

Thanks for your advise, I set property "ChooseFromListAutoFill" to true, but list doesn`t return value to "it_Edit" field.
What does property "ChooseFromListAutoFill" mean?

And do I have any way to solve this issue?

beka
Participant
0 Kudos

Hello,

Is there any known limitation to ChooseFromListAutoFill? I am trying to make it work but edittext is not filled automatically.

Regards