<?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: Reference to &amp;quot;this sheet&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603575#M223019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The length isn't the problem - It's the needing to edit it individually on each sheet that drives me nuts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 07:00:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-19T07:00:55Z</dc:date>
    <item>
      <title>Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603571#M223015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a way to reference the sheet whose properties I'm in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculated tab color as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetActiveSheetId()='Document\SH02',rgb(141,198,63),rgb(0,157,220))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm getting sick of manually switching the sheet ID ('Document\SH02') on every sheet to make the tab color work properly - I can't set it as the document default, use it in a theme, etc. because it has to be done manually as far as I can tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to reference "this sheet" so I could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetActiveSheetId()=GetThisSheetID(),rgb(141,198,63),rgb(0,157,220))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 00:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603571#M223015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-19T00:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603572#M223016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately there is no such a function available.&lt;/P&gt;&lt;P&gt;You can use little shorter version as..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch(GetActiveSheetId(),'*SH02'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RGB(141,198,63),RGB(0,157,220))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 00:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603572#M223016</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-19T00:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603573#M223017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps an OnActivateSheet trigger could set a variable to 1,2,3 as you change sheet, and then set the tab colour using the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 00:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603573#M223017</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-02-19T00:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603574#M223018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if(GetActiveSheetId()=GetThisSheetID(),rgb(141,198,63),rgb(0,157,220))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;That expression would always be true, wouldn't it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you always want a sheet to have a particular color, can you set that sheet's tab color to a fixed color?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 01:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603574#M223018</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-19T01:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603575#M223019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The length isn't the problem - It's the needing to edit it individually on each sheet that drives me nuts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603575#M223019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-19T07:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603576#M223020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, I'm envisioning the "GetThisSheetID" not as an active sheet id, but the id of the sheet whose properties it's entered in. So if I entered that expression on SH01, GetThisSheetID would always return SH01 in that instance and GetActiveSheetID would always be the active sheet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, wishful thinking. But, I'm a techie. When I do something that takes 10 seconds three times or more, I have to look for a way to automate it. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;A href="https://xkcd.com/1319/" title="https://xkcd.com/1319/"&gt;xkcd: Automation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603576#M223020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-19T07:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603577#M223021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if you were replying to my post. but my question was why use a conditional expression at all? I think I may be mis-understanding the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603577#M223021</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-19T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603578#M223022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The client has specified different colors for the active sheet tab and inactive sheet tabs. Hence, the conditional. However, copying it to all tabs or including it in the theme includes the current sheet's ID - Meaning that when the sheet I'm in the properties for when I do that is active, ALL the tabs change color. So, I have to go back to every sheet, go into the properties, colors, calculated color, and change the sheet ID to that sheet's ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I did accidentally include this in the theme, so now every time I reapply the theme after a change in the spec, I have to go through the process again! Unfortunately, the theme has been a bit of a moving target so these changes are driving me bananas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603578#M223022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-19T17:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603579#M223023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to vote for&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/ideas/1938" title="http://community.qlik.com/ideas/1938"&gt;http://community.qlik.com/ideas/1938&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603579#M223023</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-19T17:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603580#M223024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 18:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603580#M223024</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-19T18:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to "this sheet"</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603581#M223025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if I understood correctly but I will comment you some ideas.&lt;/P&gt;&lt;P&gt;If you are using the copy sheet option to duplicate a sheet, this function keep the same ID for two sheets so I normally create new sheets and then copy the objects to the new sheet; with this way the objects and sheets will have differents ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For work with the colors of the tabs, you can define same variables with RGB color codes and then use this variables from the sheets properties. You also can use other variable with numbers, and define one number for each sheet, then in each sheet you question if(vVariable = 1, vRGB1, vRGB2) for example, and the code is more reutilizable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 18:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-to-quot-this-sheet-quot/m-p/603581#M223025</guid>
      <dc:creator />
      <dc:date>2014-02-19T18:50:27Z</dc:date>
    </item>
  </channel>
</rss>

