<?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 How to create a cyclic dynamic listbox linked to a chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472884#M176587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try to explain my problem and research thus far as clearly and concisely as possible.&amp;nbsp; I'm sorry in advance for how complicated this sounds:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields, we'll call them 'Company' and 'ConnectedCompanies'.&amp;nbsp; I have a listbox and a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have to create a listbox that dynamically populates with the possible values of the field 'ConnectedCompanies' when a value in the field 'Company' is selected (with no grey values for 'ConnectedCompanies').&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;In addition&lt;/STRONG&gt;, if someone were to click on a value in the 'ConnectedCompanies' listbox, that value should replace the selected value in the 'Company' field and that newly selected Company's 'ConnectedCompanies' should populate the listbox.&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;'CompanyA' is selected and is connected to 'Company B, Company C, Company D' (populated in the 'ConnectedCompanies' listbox).&lt;/LI&gt;&lt;LI&gt;Someone selects 'CompanyB' in the 'ConnectedCompanies' listbox.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;What should happen is that&amp;nbsp; 'CompanyB' should replace 'CompanyA' in the 'Company' field, and then the listbox should dynamically change to show CompanyB's 'ConnectedCompanies'.&amp;nbsp; The selection for 'ConnectedCompanies' should then be dropped.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;In addition&lt;/STRONG&gt;, the radar chart should also take these 'ConnectedCompanies' as it's dimension (which I assume will be as easy as just using 'ConnectedCompanies' as the dimension).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I believe this will require the use of macros&lt;/STRONG&gt; (such as GetPossibleValues), but I am not certain (if it does not I am extremely delighted).&amp;nbsp; I have little to no knowledge about macros at all really and a very limited knowledge about VBScript and JScript. I am not even sure how to call a macro after it has been created (I see that the trigger exists to 'Run Macro', but is the macro name the name given after the 'sub' routine is created?'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any and all help with this task is greatly appreciated!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have indeed been researching on the QV community about macros and have come up with the following links and guides so far.&amp;nbsp; Any others that are more thorough would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro Tutorial PDF and QVW:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/51099" title="http://community.qlik.com/thread/51099"&gt;http://community.qlik.com/thread/51099&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetPossibleValues question / answer:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/253985#253985" title="http://community.qlik.com/message/253985"&gt;http://community.qlik.com/message/253985&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and Happy New Year!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2012 20:40:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-31T20:40:47Z</dc:date>
    <item>
      <title>How to create a cyclic dynamic listbox linked to a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472884#M176587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try to explain my problem and research thus far as clearly and concisely as possible.&amp;nbsp; I'm sorry in advance for how complicated this sounds:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields, we'll call them 'Company' and 'ConnectedCompanies'.&amp;nbsp; I have a listbox and a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have to create a listbox that dynamically populates with the possible values of the field 'ConnectedCompanies' when a value in the field 'Company' is selected (with no grey values for 'ConnectedCompanies').&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;In addition&lt;/STRONG&gt;, if someone were to click on a value in the 'ConnectedCompanies' listbox, that value should replace the selected value in the 'Company' field and that newly selected Company's 'ConnectedCompanies' should populate the listbox.&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;'CompanyA' is selected and is connected to 'Company B, Company C, Company D' (populated in the 'ConnectedCompanies' listbox).&lt;/LI&gt;&lt;LI&gt;Someone selects 'CompanyB' in the 'ConnectedCompanies' listbox.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;What should happen is that&amp;nbsp; 'CompanyB' should replace 'CompanyA' in the 'Company' field, and then the listbox should dynamically change to show CompanyB's 'ConnectedCompanies'.&amp;nbsp; The selection for 'ConnectedCompanies' should then be dropped.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;In addition&lt;/STRONG&gt;, the radar chart should also take these 'ConnectedCompanies' as it's dimension (which I assume will be as easy as just using 'ConnectedCompanies' as the dimension).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I believe this will require the use of macros&lt;/STRONG&gt; (such as GetPossibleValues), but I am not certain (if it does not I am extremely delighted).&amp;nbsp; I have little to no knowledge about macros at all really and a very limited knowledge about VBScript and JScript. I am not even sure how to call a macro after it has been created (I see that the trigger exists to 'Run Macro', but is the macro name the name given after the 'sub' routine is created?'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any and all help with this task is greatly appreciated!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have indeed been researching on the QV community about macros and have come up with the following links and guides so far.&amp;nbsp; Any others that are more thorough would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro Tutorial PDF and QVW:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/51099" title="http://community.qlik.com/thread/51099"&gt;http://community.qlik.com/thread/51099&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetPossibleValues question / answer:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/253985#253985" title="http://community.qlik.com/message/253985"&gt;http://community.qlik.com/message/253985&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and Happy New Year!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 20:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472884#M176587</guid>
      <dc:creator />
      <dc:date>2012-12-31T20:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a cyclic dynamic listbox linked to a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472885#M176588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw. The listbox for Connected Companies uses an expression aggr(ConnectedCompany,ConnectedCompany). The field OnSelect trigger for ConnectedCompany selects the value in Company and clear the selections in ConnectedCompany. If you select more than two companies in ConnectedCompany then the selections in both fields are cleared. For your radar chart you can simply use the ConnectedCompanies dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 11:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472885#M176588</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-01T11:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a cyclic dynamic listbox linked to a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472886#M176589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp; Gysbert -- Your guildines were 100% correct, the problem was a mismatch in my client's data.&amp;nbsp; Thank you so much for your help, please disregard the below message.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------&lt;BR /&gt;I am not sure if the correct QVW is attached in your post &lt;STRONG&gt;(see screenshot)&lt;/STRONG&gt;.&amp;nbsp; If you still have the example, would you be able to attach it so I may reference?&amp;nbsp; If this is the correct example, would you be able to explain it a bit more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="28051" alt="Untitled.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/28051_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the guidelines in your post, I tried the aggr function and it worked great.&amp;nbsp; I am however having trouble with the OnSelect trigger as I am not sure I have the right syntax.&amp;nbsp; It is not finding the selection in the 'Company' field.&amp;nbsp; I have tried using 'only' and 'match' but I do not believe I am using them correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help so far, any more is greatly appreciated, Gysbert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 16:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-cyclic-dynamic-listbox-linked-to-a-chart/m-p/472886#M176589</guid>
      <dc:creator />
      <dc:date>2013-01-01T16:12:49Z</dc:date>
    </item>
  </channel>
</rss>

