on 07-09-2019 11:13 AM
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!
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();
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.