Drop down list to select value on Custom Code Actions

Ranorex Studio, Spy, Recorder, and Driver.
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: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

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
2) Choose a module variable
bind_parameter_to_variable.png
Regards,
Johannes
You do not have the required permissions to view the files attached to this post.