Skip to Content
author's profile photo Former Member
Former Member

Behaivor linking CFL to a customized System form

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



    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)
            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)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 22, 2007 at 08:31 AM

    Do I understand right that the form is in update mode after you have chosen an item in the CFL?

    ...did you set the <i>AffectsFormMode</i> property of the <i>Grid</i> to False?

    ...if not - any change in the Grid will be interpreted as a change that requires an update of the data in the DB...



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Did you ever figure out a solution to having a choose from list with the same object type as the form you're using it in? I'm having the need for that same logic and am running into the same issue as you.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.