<?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 Change from Calendar Week to Fiscal Week when activate a certain sheet. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256759#M97119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do each press of your button cycle between fiscal and calendar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would then rather use a selection action on sheet activation trigger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheet properties -&amp;gt; Triggers, add an action&amp;nbsp; to the OnActivateSheet, but then action type = "selection" and action = "Select in field" with your calendar type field name and value = "fiscal".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to use a macro you might add a if condition checking the current selection = calendar then activate button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 11:06:58 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-07-08T11:06:58Z</dc:date>
    <item>
      <title>Change from Calendar Week to Fiscal Week when activate a certain sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256757#M97117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have two sets of dates ,Fiscal Week &amp;amp; Calendar Week. I Have 1 button selects Fiscal Or Calendar week to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is to get say Page 1; each time it is activated to select the button to show fiscal week if Calendar week is currently selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Fiscal Week is already selected then to do nothing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 13:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256757#M97117</guid>
      <dc:creator />
      <dc:date>2011-07-05T13:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change from Calendar Week to Fiscal Week when activate a certain sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256758#M97118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand this correctly the crux of your issue is to get a button to be pressed when a particular sheet becomes active - ie when the user navigates to Tab2 from Tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the tab you want to switch to Fiscal Year select Sheet Properties &amp;gt; Triggers and add an Action to the OnActivateSheet event, tha action should launch a macro called 'ButtonPress'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the Macro editor (Ctrl+m from the front-end) and create the following macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sub ButtonPress&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ActiveDocument.GetSheetObject("MyButtonID").Press&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End Sub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the sheet is activated the macro will be called by the triggered action and the button will be 'pressed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could easily incorporate all that into one OnActivateSheet action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 15:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256758#M97118</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-07-05T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Change from Calendar Week to Fiscal Week when activate a certain sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256759#M97119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do each press of your button cycle between fiscal and calendar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would then rather use a selection action on sheet activation trigger:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheet properties -&amp;gt; Triggers, add an action&amp;nbsp; to the OnActivateSheet, but then action type = "selection" and action = "Select in field" with your calendar type field name and value = "fiscal".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to use a macro you might add a if condition checking the current selection = calendar then activate button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 11:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-from-Calendar-Week-to-Fiscal-Week-when-activate-a-certain/m-p/256759#M97119</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-08T11:06:58Z</dc:date>
    </item>
  </channel>
</rss>

