<?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: Short-list the available ENUM values based on the selection of an ENUM value in previous steps in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14177#M2860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything you cannot answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======= Meanwhile, I had to replace "EQUALS" with "=" to make the logic work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'cifs' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "File_Storage_Windows"&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'nfs' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "File_Storage_UNIX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR '${Platform}' = "File_Storage_ESX_Virtualization"&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'iscsi' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "Block_Storage"&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fcp' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "Block_Storage"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 04:14:11 GMT</pubDate>
    <dc:creator>mmodi</dc:creator>
    <dc:date>2013-09-30T04:14:11Z</dc:date>
    <item>
      <title>Short-list the available ENUM values based on the selection of an ENUM value in previous steps</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14163#M2854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to short-list the available ENUM values based on the selection of an ENUM value in previous steps ?&lt;/P&gt;&lt;P&gt;Note that this is just simple logic, not relying on the cm_storage database or any other technical components....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : List Available Protocols based on the platform type which then further allows selecting the protocol to be storage as the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======== Variable Name : &lt;SPAN style="text-decoration: underline;"&gt;Platform&lt;/SPAN&gt;, Type : &lt;SPAN style="text-decoration: underline;"&gt;ENUM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;File_Storage_Windows&lt;/LI&gt;&lt;LI&gt;File_Storage_UNIX&lt;/LI&gt;&lt;LI&gt;File_Storage_Virtualization&lt;/LI&gt;&lt;LI&gt;Block_Storage&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======== Variable Name : &lt;SPAN style="text-decoration: underline;"&gt;PrimaryProtocol&lt;/SPAN&gt;, Type : &lt;SPAN style="text-decoration: underline;"&gt;ENUM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cifs&lt;/LI&gt;&lt;LI&gt;nfs&lt;/LI&gt;&lt;LI&gt;iscsi&lt;/LI&gt;&lt;LI&gt;fcp&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:53:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14163#M2854</guid>
      <dc:creator>mmodi</dc:creator>
      <dc:date>2025-06-05T05:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Short-list the available ENUM values based on the selection of an ENUM value in previous steps</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14168#M2856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Modi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use an SQL Query to generate a query result based on the input of another variable, to make it a dynamic enum of sorts. You'll need to select from a table but there is an in-built temporary table in MySQL and Oracle for this purpose called 'dual'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example that would enable cifs/iscsi for *Windows services, iscsi/nfs/fcp for *ESX and iscsi/nfs for *nix (Linux/Unix). You could use equals if you wand an exact match. Just add another OR to the line to create more services that are enabled for each protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select 'cifs' as protocol from dual WHERE '${service}' LIKE "%Windows" union&lt;/P&gt;&lt;P&gt;select 'iscsi' as protocol from dual WHERE '${service}' LIKE "%Windows" OR '${service}' LIKE "%ESX" OR '${service}' LIKE "%nix" union&lt;/P&gt;&lt;P&gt;select 'nfs' as protocol from dual WHERE '${service}' LIKE "%ESX" OR '${service}' LIKE "%nix" union&lt;/P&gt;&lt;P&gt;select 'fcp' as protocol from dual WHERE '${service}' LIKE "%ESX" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or for the specific example above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select 'cifs' as protocol from dual WHERE '${Platform}' EQUALS "File_Storage_Windows" union&lt;/P&gt;&lt;P&gt;select 'nfs' as protocol from dual WHERE '${Platform}' EQUALS "File_Storage_UNIX" OR '${Platform}' EQUALS "File_Storage_Virtualization" union&lt;/P&gt;&lt;P&gt;select 'iscsi' as protocol from dual WHERE '${Platform}' EQUALS "Block_Storage" union&lt;/P&gt;&lt;P&gt;select 'fcp' as protocol from dual WHERE '${Platform}' EQUALS "Block_Storage" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be better to use technology-specific names, as ESX virtualization would present data stores differently to Hyper-V virtualization for instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michael Goddard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 02:55:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14168#M2856</guid>
      <dc:creator>mgoddard</dc:creator>
      <dc:date>2013-09-30T02:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Short-list the available ENUM values based on the selection of an ENUM value in previous steps</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14177#M2860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything you cannot answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======= Meanwhile, I had to replace "EQUALS" with "=" to make the logic work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'cifs' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "File_Storage_Windows"&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'nfs' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "File_Storage_UNIX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR '${Platform}' = "File_Storage_ESX_Virtualization"&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'iscsi' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "Block_Storage"&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fcp' as protocol&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '${Platform}' = "Block_Storage"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 04:14:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Short-list-the-available-ENUM-values-based-on-the-selection-of-an-ENUM-value-in/m-p/14177#M2860</guid>
      <dc:creator>mmodi</dc:creator>
      <dc:date>2013-09-30T04:14:11Z</dc:date>
    </item>
  </channel>
</rss>

