📚 SAP Business One SDK Help

SBOChooseFromListEventArg Object
See Also  Members  Example

Description

Contains information about the current choose from list event.

To access this object, cast the SBOItemEventArg object into this object.

Object Model


Example

C#Copy Code
        void oEdit_ChooseFromListAfter(Object sboObject, SAPbouiCOM.SBOItemEventArg pVal) 
        { 
            String val = null; 
  
            Try 
            { 
                SAPbouiCOM.ISBOChooseFromListEventArg chflarg = (SAPbouiCOM.ISBOChooseFromListEventArg)pVal; 
                String uidChose = chflarg.ChooseFromListUID; 
                System.Console.WriteLine("ChooseFromListUID:" + uidChose); 
  
                SAPbouiCOM.DataTable dt = chflarg.SelectedObjects; 
                val = System.Convert.ToString(dt.GetValue(0, 0)); 
            } 
            Catch (Exception ex) 
            { 
                System.Console.WriteLine(ex.Message); 
                Return; 
            } 
            System.Console.WriteLine("Selected: " + val); 
            //Throw New NotImplementedException(); 
        }

See Also