cancel
Showing results for 
Search instead for 
Did you mean: 

Choose From list in Matrix UDF

Former Member
0 Kudos

i create a UDF in Sales Order Row, I want to assign choose From list in the Matrix for the UDF once user click on tab button.

How can i assign the Choose from list for the UDF column?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Samantha,

U try this,

When u load the field u declare the Choose from list before that u assign the CFL .

PO_Frm.DataSources.UserDataSources.Add("DS_code", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)

oCol = oCols.Add("TextCode", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oCol.DataBind.SetBound(True, "", "DS_code")

oCol.TitleObject.Caption = "Text Code"

oCol.Width = 150

oCol.ChooseFromListUID = "CFL1"

oCol.ChooseFromListAlias = "TextCode"

oCol.Editable = True

If this answer is helpful give me points,

Thanks & Regards,

Anitha

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

open ur form in screen painter.

select collection click new give choose from list id,object type and save then

matrix colum(what ur want)give ur choosefrom list ID..

Thanks...

Chiyan

Former Member
0 Kudos

Hi,

Try this code for adding CFL.

SAPbouiCOM.ChooseFromListCollection oCFLs = null;

SAPbouiCOM.Conditions oCons = null;

SAPbouiCOM.Condition oCon = null;

oCFLs = oForm.ChooseFromLists;

SAPbouiCOM.ChooseFromList oCFL = null;

SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;

oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );

oCFLCreationParams.MultiSelection = false;

oCFLCreationParams.ObjectType = "object id ";

oCFLCreationParams.UniqueID = "CFL1";

oCFL = oCFLs.Add( oCFLCreationParams );

oColumn.ChooseFromListUID = "CFL1";

//where oColumn is the instance of that column.

Hope u will get help....

Thanks and Regards,

Lalit