Skip to Content
0
Former Member
May 09, 2014 at 06:29 AM

While trying to select an item from another form , choose item is not displayed in the main form

34 Views

Hi,

While trying to select an item from another form , choose item is not displayed in the main form.

The following event is not triggered, due to this it is not able to choose the item from another form

oItem = oForm.Items.Item("txtsearch")

txtsearch = oItem.Specific

txtsearch.DataBind.SetBound(True, "", "BP")

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then

Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent

oCFLEvento = pVal

Dim sCFL_ID As String

sCFL_ID = oCFLEvento.ChooseFromListUID

Dim oForm As SAPbouiCOM.Form

oForm = SBO_Application.Forms.Item(FormUID)

Dim oCFL As SAPbouiCOM.ChooseFromList

oCFL = oForm.ChooseFromLists.Item(sCFL_ID)

If oCFLEvento.BeforeAction = False Then

Dim oDataTable As SAPbouiCOM.DataTable

oDataTable = oCFLEvento.SelectedObjects

Dim val As String

Try

val = oDataTable.GetValue(0, 0)

Catch ex As Exception

End Try

If (pVal.ItemUID = "20") Then

oForm.DataSources.UserDataSources.Item("BP").ValueEx = val

End If

End If

Please advice on this

Thanks,

Satish.

Attachments

error-chose.PNG (25.6 kB)