<?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: Macro to select a specific Cycle group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643330#M447335</link>
    <description>&lt;P&gt;No sorry those is not the solution, becouse if i wrote:&lt;/P&gt;&lt;P&gt;set vars = gp.FieldDefs&lt;BR /&gt;for i = 0 to vars.Count-1&lt;BR /&gt;set fld = vars(i)&lt;BR /&gt;if fld.Name="GROUPELEMENT" then&lt;BR /&gt;msgbox("field " &amp;amp; i+1 &amp;amp; " is " &amp;amp; fld.Name)&lt;BR /&gt;group.Cycle i+1&lt;BR /&gt;end if&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;it not work, becouse the group.Cycle &amp;lt;number&amp;gt; is not the ID of the group element so if i put number 5 for example in group.Cycle, i will have not GROUPELEMENT but always different group element&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 16:49:33 GMT</pubDate>
    <dc:creator>danosoft</dc:creator>
    <dc:date>2019-11-05T16:49:33Z</dc:date>
    <item>
      <title>Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643059#M447317</link>
      <description>&lt;P&gt;i use this expression for select a specific cycle group in a macro&lt;/P&gt;&lt;P&gt;Set group = ActiveDocument.GetGroup("group")&lt;/P&gt;&lt;P&gt;group.Cycle 3&lt;/P&gt;&lt;P&gt;is ok, but i want to select my cycle with name not with the idorder, is possible?&lt;/P&gt;&lt;P&gt;i need that becouse if i select for id, never return the same cycle it depend from what cycle is selected in the moment&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643059#M447317</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2019-11-05T11:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643262#M447327</link>
      <description>&lt;P&gt;I think the following features from the APIGuide.qvw will be useful to develop an appropriate matching-logic:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png"&gt;&lt;img src="https://community.qlik.com/skins/images/2866EA3F95B8B6AB12692AACED00302F/responsive_peak/images/image_not_found.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;especially those one:&lt;/P&gt;&lt;P&gt;rem show fields of first group in document&lt;BR /&gt;groups = ActiveDocument.GetGroups&lt;BR /&gt;set gp = groups(0).GetProperties&lt;BR /&gt;set vars = gp.FieldDefs&lt;BR /&gt;for i = 0 to vars.Count-1&lt;BR /&gt;set fld = vars(i)&lt;BR /&gt;msgbox("field " &amp;amp; i+1 &amp;amp; " is " &amp;amp; fld.Name)&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643262#M447327</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-11-05T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643304#M447331</link>
      <description>&lt;P&gt;Thanks you but it is not a solution, not resolve&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643304#M447331</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2019-11-05T16:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643324#M447333</link>
      <description>&lt;P&gt;You need to build the solution yourself. With the above mentioned loop it's possible to read either the index and the name of the group-fields - means picking the wanted name from there returns the index and this could be used to switch between the cyclic-fields again. Just try not directly to toggle between the fields else use msgbox to return the names and indexes to see that your logic worked and apply it then to your final macro.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643324#M447333</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-11-05T16:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643330#M447335</link>
      <description>&lt;P&gt;No sorry those is not the solution, becouse if i wrote:&lt;/P&gt;&lt;P&gt;set vars = gp.FieldDefs&lt;BR /&gt;for i = 0 to vars.Count-1&lt;BR /&gt;set fld = vars(i)&lt;BR /&gt;if fld.Name="GROUPELEMENT" then&lt;BR /&gt;msgbox("field " &amp;amp; i+1 &amp;amp; " is " &amp;amp; fld.Name)&lt;BR /&gt;group.Cycle i+1&lt;BR /&gt;end if&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;it not work, becouse the group.Cycle &amp;lt;number&amp;gt; is not the ID of the group element so if i put number 5 for example in group.Cycle, i will have not GROUPELEMENT but always different group element&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643330#M447335</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2019-11-05T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643564#M447367</link>
      <description>&lt;P&gt;Yes, just looked in the APIGuide and it's not the group-index else the number of cycling-steps:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png"&gt;&lt;img src="https://community.qlik.com/skins/images/2866EA3F95B8B6AB12692AACED00302F/responsive_peak/images/image_not_found.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 08:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643564#M447367</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-11-06T08:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643870#M447388</link>
      <description>&lt;P&gt;Yes as i said.... so how can i solve the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1643870#M447388</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2019-11-06T16:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1644240#M447407</link>
      <description>&lt;P&gt;I think the difference between the index of the active field and your wanted field should deliver the number of cyclic-steps. The above mentioned loop returned the (static) index and there you could pick the index from your wanted field and with:&lt;/P&gt;&lt;P&gt;groups=ActiveDocument.GetGroups&lt;BR /&gt;set fld = groups(0).GetActiveField&lt;/P&gt;&lt;P&gt;you get the active field and you could again pick this index-value - and the difference should be your value (you may also consider a possible forward- and a backward-logic - means the calculation might be different if the index from the wanted field is higher or lower as from the active field).&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 12:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1644240#M447407</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-11-07T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select a specific Cycle group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1644406#M447429</link>
      <description>&lt;P&gt;Thank you, but i see the fld.name always change the values. By the way i change the solution in this mode:&lt;/P&gt;&lt;P&gt;set group = ActiveDocument.GetGroup("GROUPNAME")&lt;BR /&gt;set gp = group.GetProperties&lt;/P&gt;&lt;P&gt;do while activedocument.evaluate("=GetCurrentField([GROUPNAME])") &amp;lt;&amp;gt; "NAME_FIELD"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group.Cycle 1&lt;BR /&gt;loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 16:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-select-a-specific-Cycle-group/m-p/1644406#M447429</guid>
      <dc:creator>danosoft</dc:creator>
      <dc:date>2019-11-07T16:10:08Z</dc:date>
    </item>
  </channel>
</rss>

