<?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: Row Loop variable in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97578#M17239</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you please try with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;getServerFromIQN(getValueAt($iqnList,iGroupIdx));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Abhi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2014 10:32:26 GMT</pubDate>
    <dc:creator>abhit</dc:creator>
    <dc:date>2014-11-25T10:32:26Z</dc:date>
    <item>
      <title>Row Loop variable</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97574#M17238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting with a list of IQNs&amp;nbsp;entered in CSV format from an input variable, iqnList,&amp;nbsp;to create multiple igroups based on the server name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example is:&amp;nbsp; iqn.1994-05.com.redhat:john, iqn.1994-05.com.redhat:joe, iqn.1994-05.com.redhat:bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a function, getServerFromIQN that takes the iqn name and just leaves the host name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a row loop for Number of Time with Number of Times equal to getSize($iqnList)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Variable Index is set to iGroupIdx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variable Name is iGroupName&lt;/P&gt;&lt;P&gt;Initial Value is getServerFromIQN(getValueAt($iqnList,1))&lt;/P&gt;&lt;P&gt;Expression is getServerFromIQN(getValueAt($iqnList,iGroupIdx+1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that if the the Expression is performed after the last item in my list and so there isn't an iGroupIdx+1 to look at and I get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I set the Expression to only evaluate if the size of the list is less than the iGroupIdx?&amp;nbsp; I tried an if/then, but got an error evaluating the expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is WFA 2.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:24:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97574#M17238</guid>
      <dc:creator>rogerhinson</dc:creator>
      <dc:date>2025-06-05T05:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Row Loop variable</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97578#M17239</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you please try with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;getServerFromIQN(getValueAt($iqnList,iGroupIdx));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Abhi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:32:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97578#M17239</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2014-11-25T10:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Row Loop variable</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97621#M17241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the +1, I don't get an error, but it loops through the first item twice.&amp;nbsp; I'm doing a NoOp to see if the igroup exists before creating it and end up with incorrect results when I remove the +1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need the expression, to not calculate on the last iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached the dar file to help out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:06:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97621#M17241</guid>
      <dc:creator>rogerhinson</dc:creator>
      <dc:date>2014-11-25T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Row Loop variable</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97721#M17251</link>
      <description>&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;Can you try&lt;/P&gt;&lt;P&gt;(iGroupIdx&amp;lt;= getSize($iqnList))?getServerFromIQN(getValueAt($iqnList,iGroupIdx+1)):0&lt;/P&gt;&lt;P&gt;in express column?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 08:31:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97721#M17251</guid>
      <dc:creator>karale</dc:creator>
      <dc:date>2014-11-27T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Row Loop variable</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97728#M17252</link>
      <description>&lt;P&gt;Thanks Karale,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's what I was looking for..&amp;nbsp; I need to make it just &amp;lt; instead of &amp;lt;=, but now it works just as I wanted..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 10:07:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Row-Loop-variable/m-p/97728#M17252</guid>
      <dc:creator>rogerhinson</dc:creator>
      <dc:date>2014-11-27T10:07:35Z</dc:date>
    </item>
  </channel>
</rss>

