Get Selected Item action with combo box
- Dernière mise à jour2020/04/17
Get Selected Item action with combo box
If the Get Selected Item action does not work in the Object Cloning command with the combo box, use the workarounds to perform the action.
Before you start
Before performing the workarounds, ensure that the application is opened in maximize mode.
Choose the workaround that best suits your application to perform the Get
Selected Item action.
Note: The following workarounds work for
certain types of the combo box.
Workaround 1: Using the Record option
To get a selected item from the combo box, perform the following steps:
- Use the Smart Recorder option to record the
capturing of the combo box. Note: When recording, ensure that you expand and collapse the combo box without clicking any item in the combo box, and then stop the recording.
- Edit the Search Criteria of the second command to clear the Name and the Parent properties and select the Index property.
- Get the Name using the Get Property option of the selected item in the combo box, store it in a variable, and display it using the message box.
Workaround 2: Using the Object Cloning command
To get a selected item from the combo box directly, perform the following steps:
- Select the item you want to get from the combo box and use the Object Cloningcommand to capture the selected item.
- Clear the Name and the Parent properties and select the Index property from the Search Criteria.
- Get the Name using the Get Property option of the selected item in the combo box, store it in a variable, and display it using the message box.