Skip to Content
0
Former Member
Jun 22, 2007 at 06:29 AM

Behaivor linking CFL to a customized System form

20 Views

I try to link a column into a new grid added in a System Form trougth a CFL.

The form is tne number 150 and the collumn is type 4.

But when I select a item in the CFL sorted for the collumn the information for the forms is updated all, independently to de behaivor modeled by code.

I think <u>thas is a bug</u>, but anyone say how to resolve it ?

Thanks in advance

-


THE CODE POSTED HERE----


    Private Sub AddChooseFromListRecambios()
        Dim oEditCol As SAPbouiCOM.EditTextColumn = Nothing
        Dim oGrid As SAPbouiCOM.Grid = Nothing
        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection = Nothing
        Dim oCFL As SAPbouiCOM.ChooseFromList = Nothing
        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams = Nothing

        oGrid = oTmpForm.Items.Item("gridRec").Specific
        oEditCol = oGrid.Columns.Item(COLS_RECAMBIOS.ITEM_CODE_REC)
        Try
            oTmpForm.DataSources.UserDataSources.Add("ICRDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
        Catch ex As Exception

        End Try
           oCFLs = oTmpForm.ChooseFromLists

            oCFLCreationParams = oAplicacion.SBOapp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
            oCFLCreationParams.MultiSelection = False
            oCFLCreationParams.ObjectType = "4"
            oCFLCreationParams.UniqueID = "xCFL12"
            oCFL = oCFLs.Add(oCFLCreationParams)