Develop > Programming Guide > System Language reference > List: RAD functions > RAD function: multiselect.selection("fieldcontents")

RAD function: multiselect.selection("fieldcontents")

A RAD function that returns the contents of the field associated with the multiselection. Field contents are only returned if the associated column name is set using the Selection Field property in Forms Designer.

To set the associated column name using the Selection Field property in Forms Designer, follow these steps:

  1. Log on to HPE Service Manager as a System Administrator.
  2. Click Tailoring > Forms Designer.
  3. In the Form field, type the form name. For example, type probsummary.qbe.g and click Search. The form opens.
  4. Click Design to open design mode.
  5. Click the table object.
  6. In the Selection Field property, type the name of the column on the table (for example, type number).
  7. Click OK to see what the form will look like in the Windows client.
  8. Click OK to save your changes.

Function

multiselect.selection("fieldcontents")

Format

$info=multiselect.selection("fieldcontents")

Example

$x=multiselect.selection("fieldcontents")

After execution, the value of $x is set to the selected field contents. For example, {"IM10003", "IM10006", "IM10007", "IM10008", "IM10010", "IM10012"}.

Note Field contents are only returned if the associated column name is set using the Selection Field property in Forms Designer.