Previous Topic: ca_pam_addValuesInSelectStore(_id, values)Next Topic: ca_pam_createSelectStore(nameArray, valueArray)


ca_pam_clearSelectStore(_id)

Clears all options from the Select field.

Input Parameters
_id (string)

Specifies the unique identifier of the Select field to clear.

Return Value

None.

Example

This example clears all of the existing options in the City field on Form1. This can be used to reinitialize the select field and populate fresh options using the ca_pam_addValuesInSelectStore().

ca_pam_clearSelectStore(Form1.City)

You can also find this function in the out-of-the-box content in CA Process Automation.

  1. On the Home page, click Browse Out-of-the-Box Content.
  2. Navigate to the User Interaction Forms folder, then 06 Populate Dropdown DB: Populate Dropdown from DB.