<?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 Hide/Show chart object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577992#M442676</link>
    <description>&lt;P&gt;You mean as the button is clicked it runs the macro and sets variable?&lt;/P&gt;&lt;P&gt;Or the&amp;nbsp;&lt;SPAN&gt;ActiveDocument.Variables("varShowHide").SetContent 0, true is somehow implemented&amp;nbsp;in the macro?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry, I am fairy new in the QlikView. So If you could, please, explain as simply as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Kunkulis&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 14:07:27 GMT</pubDate>
    <dc:creator>Kunkulis</dc:creator>
    <dc:date>2019-05-08T14:07:27Z</dc:date>
    <item>
      <title>Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577958#M442672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get a macro that will adjust the Chart Properties -&amp;gt; Layouy -&amp;gt; Show Conditional to be 1=0 or a variable&lt;/P&gt;&lt;P&gt;This is the code I found, but it keeps failing at cp.Layout.Frame.Show.Always=false&amp;nbsp;&lt;BR /&gt;If i comment it out it will fail at Expression.v&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub HideIt
Set Obj=ActiveDocument.GetSheetObject("CH421")

     Set cp=Obj.GetProperties

     cp.Layout.Frame.Show.Always = false

     cp.Layout.Frame.Show.Expression.v = "1=0"

     Obj.SetProperties cp

End sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577958#M442672</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2024-11-16T03:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577962#M442673</link>
      <description>&lt;P&gt;I think there are better way to show/hide objects respectively parts of it than using macros. For example you could use a selection - from an extra field - or a variable which is controlled per inputbox or an action - directly included within the UI properties.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 13:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577962#M442673</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-08T13:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577964#M442674</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. I excluded some information, sorry.&lt;/P&gt;&lt;P&gt;I need the graph to be un-hidden for a macro that copies a number of charts to a PPT.&lt;BR /&gt;For the PPT I use the CH421, but for the people to view it before copying I have the same chart, but with legend, different size, etc.&lt;/P&gt;&lt;P&gt;The macro that does all the copy work, doesn't copy CH421 if it is hidden with expression 1=0, once it is unhidden, it works.&lt;/P&gt;&lt;P&gt;So the idea is to Unhide the CH421 as the macro starts and hide it as it finishes.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 13:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577964#M442674</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-05-08T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577982#M442675</link>
      <description>&lt;P&gt;Ok. In this case I would change the variable-value with the macro and not adjusting the chart-properties like:&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("varShowHide").SetContent 0, true&lt;/P&gt;&lt;P&gt;respectively&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("varShowHide").SetContent 1, true&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 13:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577982#M442675</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-08T13:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577992#M442676</link>
      <description>&lt;P&gt;You mean as the button is clicked it runs the macro and sets variable?&lt;/P&gt;&lt;P&gt;Or the&amp;nbsp;&lt;SPAN&gt;ActiveDocument.Variables("varShowHide").SetContent 0, true is somehow implemented&amp;nbsp;in the macro?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry, I am fairy new in the QlikView. So If you could, please, explain as simply as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Kunkulis&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 14:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1577992#M442676</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-05-08T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1578215#M442687</link>
      <description>&lt;P&gt;I think using a second action/button has no benefit and therefore I would integrate it into the export-routine. Quite useful is also often to add a wait- an/or a sleep-statement between the various actions (show/hide, various selections, copy &amp;amp; paste per clipboard, opening/saving files and so on) to ensure that the objects are calculated/rendered respectively that the OS has enough time to perform these actions.&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;rem ** let QV sleep for 10 seconds **&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P&gt;Quite useful for all the macro-stuff is the APIGuide.qvw within your installation-folders (somewhere by automation) which provides a lot of backgrounds and examples.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 06:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1578215#M442687</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-09T06:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1578349#M442695</link>
      <description>&lt;P&gt;I added the sleep in the initial macro, but it still failed.&lt;/P&gt;&lt;P&gt;None the less, I found the API Guide, which seems to be very promising, thank you for that, didn't know something like this exists.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 10:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1578349#M442695</guid>
      <dc:creator>Kunkulis</dc:creator>
      <dc:date>2019-05-09T10:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Hide/Show chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1578411#M442703</link>
      <description>&lt;P&gt;Maybe it wasn't clear enough. The variable "varShowHide" needs to be created and set within the visibility-properties before executing the macro.&lt;/P&gt;&lt;P&gt;The sleep-statement is for inter-acting with the OS and the wait-statement for the calculations in QV.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Hide-Show-chart-object/m-p/1578411#M442703</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-09T12:16:27Z</dc:date>
    </item>
  </channel>
</rss>

