<?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: Get container index and show/hide text object based on it in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102396#M891447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;Consider replacing the container entirely:&lt;/P&gt;&lt;P&gt;Instead of the container's chart selections, have three text objects, one for each object. When clicked, each will trigger a variable to a different value (e.g. 1, 2, 3).&lt;/P&gt;&lt;P&gt;For each chart, display it only if the variable is 1, 2, or 3 as appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach is a little more clunky to manage, but it is significantly more robust insofar as both layout options and the ability to change other settings when a specific object is selected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 16:30:08 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2016-08-29T16:30:08Z</dc:date>
    <item>
      <title>Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102390#M891439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a container with three line charts. Also I have a text object.&lt;/P&gt;&lt;P&gt;I am trying to hide/show text object when container index is 2 or 3, assuming that container index starts from 1. When container index is&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1, text object always remains hidden.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So from text object properties, in design tab, I want to set a condition to show/hide object based on container index but I do not know how to get container index.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I know it is possible to get container index using a macro, like explained here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;A href="https://community.qlik.com/thread/30250" target="_blank"&gt;Container Object,Selected Index Change&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but I do not want to use macros. I want to use a variable (ShowTextObject), that is, if container index is 2 or 3, the this variable is set to 1, otherwise (if container index is 1), this variable gets 0. So I show text object based on the following condition:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=ShowTextObject=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when container index changes, how to set variable ShowTextObject to 0 or 1 accordingly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102390#M891439</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102391#M891441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;but I do not know how to get container index.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can't without using a macro. Try doing without the container and show/hide the objects (those you now have in a container) using variables and actions as&amp;nbsp; well as the text box. You could even create an inline table with one field that you can use in a listbox as a kind of menu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2016 14:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102391#M891441</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-28T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102392#M891443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to set the variable on line chart selection? I cannot see any place to set an action on chart selection. I am using QlikView 11. So if it was possible I would set the variable to 0 or 1 depending on the chart selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2016 14:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102392#M891443</guid>
      <dc:creator />
      <dc:date>2016-08-28T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102393#M891444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, objects do not have an OnActivate event trigger. What you can do instead is use another kind of trigger to show/hide both the chart and the text box. That can be a field trigger or a variable trigger. Or an action assigned to a button or text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2016 15:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102393#M891444</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-28T15:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102394#M891445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but I need to hide/show only the text object if two of three charts are selected...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2016 17:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102394#M891445</guid>
      <dc:creator />
      <dc:date>2016-08-28T17:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102395#M891446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then enable the text box not just for one chart, but for the two or three charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102395#M891446</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-29T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get container index and show/hide text object based on it</title>
      <link>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102396#M891447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;Consider replacing the container entirely:&lt;/P&gt;&lt;P&gt;Instead of the container's chart selections, have three text objects, one for each object. When clicked, each will trigger a variable to a different value (e.g. 1, 2, 3).&lt;/P&gt;&lt;P&gt;For each chart, display it only if the variable is 1, 2, or 3 as appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach is a little more clunky to manage, but it is significantly more robust insofar as both layout options and the ability to change other settings when a specific object is selected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-container-index-and-show-hide-text-object-based-on-it/m-p/1102396#M891447</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2016-08-29T16:30:08Z</dc:date>
    </item>
  </channel>
</rss>

