<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using Inputs To Set Other Inputs in Morpheus in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251017#M4191</link>
    <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;One was to define many values in the first option list dataset:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;production,stable|1.4
dev,develop|2.0
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To get one of the subvalues, use something like this to split on the &lt;CODE style="background : #f0f1f2;"&gt;|&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;customOptions.clustername.tokenize('|')[0]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;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 &lt;A href="https://blog.2bitcoder.net/using-an-input-option-to-set-other-options-in-morpheus/"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 15:35:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2022-04-07T15:35:13Z</dc:date>
    <item>
      <title>Using Inputs To Set Other Inputs in Morpheus</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251017#M4191</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;One was to define many values in the first option list dataset:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;production,stable|1.4
dev,develop|2.0
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To get one of the subvalues, use something like this to split on the &lt;CODE style="background : #f0f1f2;"&gt;|&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;customOptions.clustername.tokenize('|')[0]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;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 &lt;A href="https://blog.2bitcoder.net/using-an-input-option-to-set-other-options-in-morpheus/"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251017#M4191</guid>
      <dc:creator />
      <dc:date>2022-04-07T15:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Inputs To Set Other Inputs in Morpheus</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251018#M4192</link>
      <description>&lt;P&gt;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!)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251018#M4192</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-04-07T15:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Inputs To Set Other Inputs in Morpheus</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251019#M4193</link>
      <description>&lt;P&gt;I love this trick. Like &lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt; I use it whenever I need to handle multiple values from a single input.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/using-inputs-to-set-other-inputs-in-morpheus/m-p/7251019#M4193</guid>
      <dc:creator />
      <dc:date>2022-04-07T16:08:17Z</dc:date>
    </item>
  </channel>
</rss>

