<?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 Re: Catalog Field for Multiple Cloud vCenter in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251294#M4468</link>
    <description>&lt;P&gt;I just using “cloud” type for this field. and when i use check the element as your advice before, i tried to change the cloud list in form catalog to VCSA2 and reverse to VCSA1, but in network tabs, only price was generated new one, for cloud, there’s nothing changed.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149758i42CF1DAA7B776F24/image-size/large?v=v2&amp;amp;px=2000" role="button" title="f10e821afefd0b853e2b3e000319404becf0f614.png" alt="f10e821afefd0b853e2b3e000319404becf0f614.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 10:10:53 GMT</pubDate>
    <dc:creator>anonn</dc:creator>
    <dc:date>2024-12-11T10:10:53Z</dc:date>
    <item>
      <title>Catalog Field for Multiple Cloud vCenter</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251293#M4467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have multiple vcenter integrated to morpheus, and i made a catalog form so user able to choose which vcenter that they want to placed the instance. Also i have different policy name for each vcenter, let say if VM deployed to VCSA1 then hostname/vmname should be named with prefix VC1xxx, and if VM goes to VCSA2, then hostname/vmname should be named with prefix VC2xxx.&lt;/P&gt;
&lt;P&gt;VCSA1 cloud ID is 12, and VCSA2 cloud ID is 15, so i made the catalog condition for hostname and vmname as this below code.&lt;/P&gt;
&lt;P&gt;“name”: “&amp;lt;%=if (customOptions.cloudname == 12 ){‘VC1’} else {‘VC2’}%&amp;gt;&amp;lt;%=customOptions.hostname.toUpperCase()%&amp;gt;”,&lt;BR /&gt;
“hostName”: “&amp;lt;%=if (customOptions.cloudname == 12 ){‘VC1’} else {‘VC2’}%&amp;gt;&amp;lt;%=customOptions.hostname.toUpperCase()%&amp;gt;”,&lt;/P&gt;
&lt;P&gt;In form catalog, field for cloud option have 2 lists in dropdown/select list, VCSA1 and VCSA2. When i go to this catalog is VCSA1, and submitted it, it was works as name format expected that use VC1xxx, also if i choose VCSA2, it was works as expected too using VC2xxx,&lt;BR /&gt;
BUT when i choose VCSA2, then going back to choose VCSA1, the name still using VC2 which is used by VCSA2, it supposed to using VC1xxx.&lt;/P&gt;
&lt;P&gt;Please help if there something i missed to make it happen&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 07:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251293#M4467</guid>
      <dc:creator>anonn</dc:creator>
      <dc:date>2024-12-10T07:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog Field for Multiple Cloud vCenter</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251294#M4468</link>
      <description>&lt;P&gt;I just using “cloud” type for this field. and when i use check the element as your advice before, i tried to change the cloud list in form catalog to VCSA2 and reverse to VCSA1, but in network tabs, only price was generated new one, for cloud, there’s nothing changed.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149758i42CF1DAA7B776F24/image-size/large?v=v2&amp;amp;px=2000" role="button" title="f10e821afefd0b853e2b3e000319404becf0f614.png" alt="f10e821afefd0b853e2b3e000319404becf0f614.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 10:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251294#M4468</guid>
      <dc:creator>anonn</dc:creator>
      <dc:date>2024-12-11T10:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Catalog Field for Multiple Cloud vCenter</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251295#M4469</link>
      <description>&lt;P&gt;If you inspect the page in chrome, when on the network tab you should see a ‘price’ object when making changes assuming pricing is on.  Select that and then choose payload.  Inspect the payload to see if the value is actu ally changing.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150266iDAA927C00DBC630E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="6bf8a3b88353c9f0cc3bc3f2f836c06057a13bc8.png" alt="6bf8a3b88353c9f0cc3bc3f2f836c06057a13bc8.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Also, do you have a ‘select’ option in your list? or only the 2 values?  You may need to evaluate your variables like:&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;customOptions?.cloudname&lt;/CODE&gt;  the &lt;CODE style="background : #f0f1f2;"&gt;?&lt;/CODE&gt; tells groovy to only evaluate if the value exists.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 13:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/catalog-field-for-multiple-cloud-vcenter/m-p/7251295#M4469</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2024-12-10T13:22:16Z</dc:date>
    </item>
  </channel>
</rss>

