cancel
Showing results for 
Search instead for 
Did you mean: 

CFL Popup not assigning value to edittext

Former Member
0 Kudos

Hi All

CFL Popup not assigning value to edittext and CFL popup screen is not getting closed automatically

1. I Have created a screen painter form and attached UDO for the same

2. i have added CFL For one of the edit textbox for itemcode using object type 4 with filter criteria as itemcode should start with word RM

3. Now when i click on CFL button for Edittext, popup comes up and when i click choose button,selected value does not get copied to associated Edittext (Proper Binding is there) and secondly popup (CFL form) dose not get closed.

Please help me to find out the problem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can checkout this thread first.

or use this below code, write the choose from list event for your form

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then

oForm = oSBOApplication.Forms.Item("IS_RES")

Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent

oCFLEvento = pVal

Dim sCFL_ID As String

sCFL_ID = oCFLEvento.ChooseFromListUID

Dim oCFL As SAPbouiCOM.ChooseFromList

oCFL = oForm.ChooseFromLists.Item(sCFL_ID)

If oCFLEvento.BeforeAction = False Then

Dim oDataTable As SAPbouiCOM.DataTable = oCFLEvento.SelectedObjects

Dim val As String

Try

With oForm.DataSources.DBDataSources.Item("@IS_RES") '@TABLE is the name of the DBDataSource the form's connect to

.SetValue("Code", .Offset, oDataTable.GetValue(0, 0)) 'U_txtGRNNo is the id of the field the EditText is connected to.

End With

Catch ex As Exception

End Try

End If

End If

Regards,

Noor

Answers (1)

Answers (1)

Former Member
0 Kudos

can yu show yur CFL code of item event