add multi-valued options
Reported by Greg Schueler | February 28th, 2011 @ 02:34 PM | in Rundeck 1.2
Add options that can support multiple selections. The new option definitions should include a way to define the delimiter character, and when multiple values are selected in the GUI.
e.g.:
<option name="test" multivalued="true" delimiter="+" values="a,b,c"/>
The user could select multiple values in the GUI, then the job is executed with these args:
-test a+b+c
Comments and changes to this ticket
-
Helms November 12th, 2024 @ 07:43 AM
To support multiple selections in a GUI with customizable delimiters, you could structure your options with attributes for multivalued, delimiter, and values as you've shown. Here’s how this could work in practice:
Define Option Attributes: Each option includes:
name: the name of the option.
multivalued: set to true if multiple selections are allowed.
delimiter: the character to separate multiple values.
values: the list of available values separated by commas (or another suitable delimiter for initialization).
Example:xml
Copy code
GUI Selection Process: In the GUI, users can select multiple values (for instance, through checkboxes or multi-select dropdowns).Job Execution with Multiple Arguments: When the job runs, the selected values are combined with the specified delimiter.
Suppose a user selects a, c, and e in the GUI.
The resulting argument passed to the job would be:
bash
Copy code
-test a+c+e Example XML for Various Options: Here’s how you could define multiple options with different delimiters:xml
Copy code
If a user selects feature1 and feature3 for features and modeA and modeC for modes, the executed job arguments would look like:diff
Copy code
-features feature1,feature3 -modes modeA;modeC This approach provides flexibility for multi-selection and ensures values are passed in the desired format.
Visit for more information: https://animesuges.mom/ -
abianagler November 16th, 2024 @ 12:59 AM
The game’s basic format typically involves choosing 4-digit numbers (though some variations allow for fewer digits) Link Alternatif Togel.
-
Andrew11 November 20th, 2024 @ 07:27 AM
GUI Selection Process
When users interact with the GUI:If multivalued="true", they can select multiple values using elements like checkboxes or multi-select dropdowns.
Their selections are stored and displayed visually.
For example:For features, a user selects: feature1 and feature3.
For modes, a user selects: modeA and modeC.
3. Combine Selections with Delimiters
When the job is executed, the selected options are combined using their respective delimiters:Features: feature1 and feature3 are joined with , → feature1,feature3.
Modes: modeA and modeC are joined with ; → modeA;modeC.
Resulting Command:bash
Copy code
-features feature1,feature3 -modes modeA;modeC 4. Job Execution
This structured approach ensures:Consistency: The format aligns with predefined requirements.
Flexibility: Each option can use its own delimiter to suit different use cases.
Advantages of This Approach
Customizable Delimiters: Different options can have delimiters suited to specific needs (e.g., ,, ;, +).
Ease of Parsing: Clear formatting makes it easy for scripts or programs to parse inputs.
User-Friendly GUI: The process is intuitive for users, especially with visual aids like dropdowns or checkboxes.
Visit for more information: https://aniwatch.top/
This design is scalable and can easily adapt to more complex requirements, such as conditional dependencies or additional metadata for each option. -
Aniwave November 20th, 2024 @ 11:07 PM
To create a new option configuration that supports multiple selections in the GUI and uses a custom delimiter, you can define it like this:
xml
Copy code
Explanation:
name="your_option_name": The name of the option that will be used when passing arguments to the job.
multivalued="true": This enables support for selecting multiple values.
delimiter="+": The character used to separate the selected values when passed to the job. You can customize this to any delimiter, e.g., ,, |, or : as needed.
values="value1,value2,value3,value4": A comma-separated list of values that will appear as options in the GUI.
Example Execution: https://aniwave.com.pl/
If the user selects value1, value2, and value3 in the GUI, the job will execute with the argument: -
Monkey951 November 21st, 2024 @ 11:02 PM
Informative articles that will capture your attention with detailed research and easy-to-understand explanations of even the most complex concepts. https://nonlen.com
-
Legendtoto November 22nd, 2024 @ 01:11 AM
Kini bermain Slot Pulsa 1000 sangat mudah dengan hadirnya layanan slot deposit 1000 pulsa all provider online 24jam, anda bisa menikmati semua mesin slot yang tersedia dengan mengunjungi link deposit 1000 pulsa telkomsel xl indosat tri tanpa potongan.
-
Novak November 28th, 2024 @ 12:10 AM
To support multiple selections in a GUI with customizable delimiters, you could structure your options with attributes for multivalued, delimiter, and values as you've shown. Here’s how this could work in practice:
Define Option Attributes: Each option includes:
name: the name of the option.
multivalued: set to true if multiple selections are allowed.
delimiter: the character to separate multiple values.
values: the list of available values separated by commas (or another suitable delimiter for initialization).
Example:xml
Copy code: https://zoroxtv.mom/ -
drianadee November 28th, 2024 @ 04:05 AM
Enroll easily in multiple courses with the College of Contract Management's online program from home or work. Choose from a variety of options to enhance your future and increase job opportunities.
https://www.theccm.co.uk/ -
world4vehicle November 28th, 2024 @ 08:23 AM
Discover a world where passion for vehicles meets expert insights! At World4Vehicle (https://world4vehical.com/), we are dedicated to bringing you the latest trends, in-depth reviews, and helpful guides for all things automotive. Whether you're a car enthusiast, a motorcycle aficionado, or simply exploring your next dream ride, you'll find everything you need right here.
Join us as we journey through innovation, style, and performance—empowering you to make the best choices for the road ahead. World4Vehicle: Your trusted destination for all things on wheels!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Attachments
Referenced by
- 220 add multi-valued options (from [0efa33f95d1f78205ebd499cc9da88f96cba4ceb]) Initial...
- 220 add multi-valued options (from [8db6fb27fa5b55a3c25b56e66aa852b4d8fcb827]) Update ...