Dropdown select highest value

Hello

I have a dropdown of numeric values like this:

1
2
3
4
5

How can I read the available values and select the highest number available?

Regards
Soren

Hi @SorenB

try this solution

Regards,
Gowtham K

Hello @Gowtham_K115

I need a specific solution for numeric values.
I have seen the post you reference, but this is another use case where the user has to select a specific string value.
The procedure should be simpler for numeric values, I am just unsure how to procede.

Regards
Soren

@SorenB

try this way

Indicate your dropdown use the find children activity, create output variable pass into loop, inside use the get attribute activity pass the currenitem into get attribute element property.

image

image

Find the sample flow

Dropdown.zip (2.5 KB)

Regards,
Gowtham K

Unfortunately I did not have success in using your example.

I ended up with a selector that selects “option-0” which always seem to have the highest value in the dropdown for this specific use case.

Hi @SorenB ,

You can try the following solution:
Step1: Create a list
Step2: use find children activity to store the collection of uiElement
Step3: use for each activity and get attribute to get the aaname of uiElement collections
Step4: Use “Append item to list” activity to store all the aaname items
Step5: outside of the loop, try - AttributeList.max(function(x) cint(x))
Please let me know if it works.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.