Skip to Content
0
Former Member
Jul 30, 2009 at 11:33 AM

CFL value not picking

26 Views

Hello,

Experts

Im selecting Lastname of emp from employee-CFL

I have a form with a matrix that metrix contains emp-CFL once i choose any data from CFL it is not getting copied into w r to

matix cell

i did CFL event like this

Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                    Dim sboForm As SAPbouiCOM.Form
                    Dim oDBs_Head As SAPbouiCOM.DBDataSource
                    sboForm = objMain.objApplication.Forms.Item(FormUID)
                    oDBs_Head = sboForm.DataSources.DBDataSources.Item("@VEDA_PRN_OBSR_DLN")
                    Dim oCFL As SAPbouiCOM.ChooseFromList
                    Dim CFLEvent As SAPbouiCOM.IChooseFromListEvent = pVal
                    Dim CFL_Id As String
                    CFL_Id = CFLEvent.ChooseFromListUID
                    oCFL = sboForm.ChooseFromLists.Item(CFL_Id)
                    Dim oDT As SAPbouiCOM.DataTable
                    oDT = CFLEvent.SelectedObjects
                    If Not (oDT Is Nothing) And pVal.BeforeAction = False Then
                        If oCFL.UniqueID = "EMP" Then
                            oDBs_Head.SetValue("U_OName", 0, oDT.GetValue(0, 0)) or  oDBs_Head.SetValue("U_OName", 0,oDT.GetValue(lastName, 0)) 

                        End If
                    End If

This window will open only when click on row. this form is like popup window.

By

Firos.C