Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: ChooseList

$
0
0

Hi Sunny,

 

 

First of all you are making the mistake while filtering your CFL. You are using CFL for Employees while filtering it on the field CardType. I think this is not you want.

 

 

Secondly for your requirement you will have to write Choose From List Event so that you will be able to select name after selecting the Employee.

 

 

Use it as follows:

 

 

Dim cflevent As SAPbouiCOM.ChooseFromListEvent = pVal

                                    Dim oCFLEvento As SAPbouiCOM.ChooseFromList

                                    Dim strUid As String = cflevent.ChooseFromListUID

                                    oCFLEvento = Me.m_SBO_Form.ChooseFromLists.Item(strUid)

                                    Dim oDataTable As SAPbouiCOM.DataTable = cflevent.SelectedObjects

                                    Try

                                        If strUid = enCFL.cflItem Then

                                            Try

                                                oEdit = Me.FormItem("UID".Specific

                                                oEdit.Value = oDataTable.GetValue("empID", 0)

 

 

                                            Catch ex As Exception

                                            End Try

 

 

                                            oEdit = Me.FormItem("UID").Specific

                                            oEdit.Value = oDataTable.GetValue("firstName", 0)

                                        End If

                                    Catch ex As Exception

                                    Finally

                                        Me.m_SBO_Form.Freeze(False)

                                    End Try

 

 

 

Hope it helps.

 

 

Thanks & Regards

 

Ankit Chauhan


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>