Drop down list to select value on Custom Code Actions

Ranorex Spy, Recorder, and Studio.
tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Drop down list to select value on Custom Code Actions

Post by tvu » Tue Nov 10, 2015 11:27 pm

Is there a way to create a drop down menu with select-able predefined values for Custom Code action?

This feature is already there when you drag a Repo Item into a recording and select an available action. The attribute column normally has a drop down menu where you can select a value.

Thanks.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Drop down list to select value on Custom Code Actions

Post by Support Team » Thu Nov 12, 2015 9:47 am

Hello tvu,

Unfortunately, there is no way to create a list of predefined values for specific arguments.

In general, there are two ways to pass parameters to User Code Actions:

1) Pass a static value to the user code method
static_value.png
static_value.png (3.09 KiB) Viewed 878 times
2) Choose a module variable
bind_parameter_to_variable.png
bind_parameter_to_variable.png (3.42 KiB) Viewed 878 times
Regards,
Johannes
.
Image