Hi All,
I have a problem with CFL. CFL is bounded to a column in Matrix. When I click on CFL, choose form list window open where I can select a record. After the record is inserted into the matrix, when I click the CFL again, it disappears.
Here is the code for CFL event
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim CFLEvent As SAPbouiCOM.IChooseFromListEvent = pVal
Dim CFL_Id As String
CFL_Id = CFLEvent.ChooseFromListUID
oForm = SBO_Application.Forms.Item(FormUID)
Dim oCFL As SAPbouiCOM.ChooseFromList
oCFL = oForm.ChooseFromLists.Item(CFL_Id)
Dim val As String
If CFLEvent.BeforeAction = True Then
Dim oDT As SAPbouiCOM.DataTable
oDT = CFLEvent.SelectedObjects
If Not (oDT Is Nothing) Then
val = oDT.GetValue(0, 0)
'oForm = SBO_Application.Forms.Item("tngMas")
'oColumn = oColumns.Item("trnrId")
'oColumn = oDT.GetValue(0, 0)
End If
If pVal.ItemUID = "trnrId" Then
oForm.DataSources.DBDataSources.Item("@EAHCM_TGM2").ValueEx = val
End If
oForm = SBO_Application.Forms.Item("tngMas")
oColumn = oColumns.Item("trnrId")
oColumn.DataBind.SetBound(True, "@EAHCM_TGM2", "U_empId")
End If
Help me out to solve this problem.
Regards,
Preethi