- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise Software
- >
- Re: Using Inputs To Set Other Inputs in Morpheus
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 08:35 AM
04-07-2022 08:35 AM
Using Inputs To Set Other Inputs in Morpheus
An interesting question came up with how to use one input to define multiple other inputs. It was a little more complex than I initially thought, but there were a couple of solutions to the problem.
One was to define many values in the first option list dataset:
production,stable|1.4
dev,develop|2.0
To get one of the subvalues, use something like this to split on the |:
customOptions.clustername.tokenize('|')[0]
Depending on the complexity and number of values you need, you may want to define separate inputs for the other values. Since that is a longer topic requiring screenshots, I posted it to my blog here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 08:43 AM
04-07-2022 08:43 AM
Re: Using Inputs To Set Other Inputs in Morpheus
Nice! I use this trick all of the time for things like selecting a layout. Sometimes I want the layout id, code, and version so I can map 1 selection to multiple locations within the Service Catalog spec. Tokenize delimiting on a ‘|’ allows me to do this. (I even do the same with dependent/waterfalling drop downs!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 09:08 AM
04-07-2022 09:08 AM
Re: Using Inputs To Set Other Inputs in Morpheus
I love this trick. Like @cbunge I use it whenever I need to handle multiple values from a single input.