Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature for cascading select list from options provider #80

Closed
gschueler opened this issue Jun 23, 2012 · 4 comments
Closed

feature for cascading select list from options provider #80

gschueler opened this issue Jun 23, 2012 · 4 comments
Assignees
Milestone

Comments

@gschueler
Copy link
Member

In the case of a large result set from an options provider, it would be helpful to organize the json in a way that rundeck could present dynamic cascading select lists.

original LH ticket

Original Creator: Michael Gibson

@gschueler
Copy link
Member Author

(by Michael Gibson at 2011-07-15T13:44:55-07:00)

was able to work around this by embedding some hacky javascript into the option's description field which gets executed when the run page loads.

@gschueler
Copy link
Member Author

(by Alex-SF at 2011-07-15T13:59:51-07:00)

Hi Michael, would you mind uploading an example?

@gschueler
Copy link
Member Author

(by Michael Gibson at 2011-07-15T15:57:57-07:00)

An example use case for this would be in the case of a GIT repo options provider where you want to dynamically select between different projects and their associated tags.
I am attaching an example job with some very ugly javascript in the "project" option.
In my case, project is tied to remote options provider which returns a listing of projects in our GIT repo.
The tag option is tied to a remote options provider which returns a listing of all the tags for all of the projects in the repo.

Both of these are very long lists and I want to display only the tags of the project option.
I am setting the onchange event of the project option select list to reload then trim the tags select list to match the currently selected project.

@gschueler
Copy link
Member Author

(by Noah Campbell at 2011-07-15T16:19:24-07:00)

Nice use of that description tag :)

-Noah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant