<?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 Cycle a Group that contains an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306798#M113323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it`s returning the expression definition instead of the name you gave to it.&lt;/P&gt;&lt;P&gt;You can use some msgbox( gp.GetActiveField.Name) to check what is going on... &lt;/P&gt;&lt;P&gt;I suggest you create another field on the script if it is possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2011 18:22:39 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-06-21T18:22:39Z</dc:date>
    <item>
      <title>Cycle a Group that contains an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306797#M113322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been using some vb code similar to below to cycle through my cycle group, however after adding an expression it now blows up on the GetActvieField.Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a suggested work around? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub set_group_field&lt;BR /&gt; set gp = ActiveDocument.GetGroup("GroupName")&lt;BR /&gt; do while gp.GetActiveField.Name &amp;lt;&amp;gt; "FieldName"&lt;BR /&gt; gp.Cycle 1&lt;BR /&gt; loop&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 18:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306797#M113322</guid>
      <dc:creator>joefeyas</dc:creator>
      <dc:date>2011-06-21T18:15:35Z</dc:date>
    </item>
    <item>
      <title>Cycle a Group that contains an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306798#M113323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it`s returning the expression definition instead of the name you gave to it.&lt;/P&gt;&lt;P&gt;You can use some msgbox( gp.GetActiveField.Name) to check what is going on... &lt;/P&gt;&lt;P&gt;I suggest you create another field on the script if it is possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 18:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306798#M113323</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-21T18:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cycle a Group that contains an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306799#M113324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Erich - I tired that but unfortunately the error is being thrown on the&lt;STRONG&gt; gp.Activefield.Name &lt;/STRONG&gt;reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 21:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306799#M113324</guid>
      <dc:creator>joefeyas</dc:creator>
      <dc:date>2011-06-21T21:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cycle a Group that contains an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306800#M113325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;I tried different macros... &lt;/P&gt;&lt;P&gt;this expression should work for you: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do while activedocument.evaluate("=GetCurrentField([GroupName])") &amp;lt;&amp;gt; "FIELDNAME"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the possible results with: &lt;/P&gt;&lt;P&gt;msgbox ( activedocument.evaluate("=GetCurrentField([GroupName])"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference will be that for a calculated dimension, the currentfield will return the whole expression... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps this time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 01:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306800#M113325</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-22T01:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cycle a Group that contains an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306801#M113326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; That worked perfectly, thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 15:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-a-Group-that-contains-an-expression/m-p/306801#M113326</guid>
      <dc:creator>joefeyas</dc:creator>
      <dc:date>2011-06-22T15:37:48Z</dc:date>
    </item>
  </channel>
</rss>

