Skip to Content
0

How to get cell from ChooseFromList in SAP?

Nov 15, 2017 at 07:52 AM

27

avatar image
Former Member

HI, I want to get any data from ChoosefromList in SAP. I drag ChooseFromList and DT from toolbox and join them to my Matrix which was added by me from ToolBox. In running time choosefromlist appears but when I select any data it doesn't add to my Matrix. How can I solve it? Thank you

img1.png (14.1 kB)
img3.png (20.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

ANKIT CHAUHAN
Nov 15, 2017 at 09:57 AM
0

Hi,

You need to write the CHOOSE_FROM_LIST Event for the same as below:

SAPbouiCOM.ChooseFromListEvent cflevent = (SAPbouiCOM.ChooseFromListEvent)pVal;
SAPbouiCOM.ChooseFromList oCFLEvento = default(SAPbouiCOM.ChooseFromList);
string strUid = cflevent.ChooseFromListUID;
oCFLEvento = this.m_SBO_Form.ChooseFromLists.Item(strUid);
SAPbouiCOM.DataTable oDataTable = cflevent.SelectedObjects;
SAPbobsCOM.Recordset oRecSet = (SAPbobsCOM.Recordset)SBO_Company.GetBusinessObject(BoObjectTypes.BoRecordset);


if (oDataTable == null)
{
    m_SBO_Form.Freeze(false);
    return;
}
for (i = 0; i <= oDataTable.Rows.Count - 1; i++)
{
    string ItemCode = oDataTable.GetValue("ItemCode", i).ToString();
}

Kind regards,

ANKIT CHAUHAN

SAP SME Support

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 15, 2017 at 11:38 AM
0

Friend Thank you very much I will check now

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 15, 2017 at 11:43 AM
0

Friend I am sorry what is it?

this.m_SBO_Form
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi,

m_SBO_Form is the form that is being referenced or the form on which you want to perform an action. For you it can be anything like oForm, SBO_Form etc.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0