ListSelectedItemsGet

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalString ListSelectedItemsGet(SalBoolean bReturnDbValues)

The ListSelectedItemsGet method returns an attribute string with all selected items in the format "<selected item><vs><selected item 2><vs>...".

Parameters

Name Description
SalBoolean bReturnDbValues Specify true to retrieve the database representation of the values, or false to retrieve the client representation.

Returns

The return value is an attribute string with all selected items in the format"<selected item 1><vs><selected item 2>...".

Comments

Developers can choose to retrieve either the client or database representation of the selected items by settings the bReturnDbValues parameter to true or false respectively.

The <vs> separator used is ASCII 31. In client code you can also use SalNumberToChar( CHAR_US ). In Server code, use Client_SYS.field_separator_.

Example

! Get all selected values and update db
Set sSelectedItems = lbEmployeeBenifits.ListSelectSelectedItemsGet( TRUE )
Call DbPLSQLBlock( c_hSql, c_sDbPrefix || 'Some_API.Set_Benefits( :i_hWndFrame.frmX.sSelectedItems )' )
C# code
// Update value in i_sMyValue variable
Ifs.Fnd.ApplicationForms.cListBox.i_sMyValue = this.ListSelectedItemsGet(true);