on 10-08-2007 10:13 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.