<?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 Button actions from QV 8.5 to QV9 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175480#M503640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we want to replicate the same behavior as prop.Macro and prop.Type = 2 in QV 9, any idea what the new member function are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do this in a vbs script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Aug 2010 23:22:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-10T23:22:53Z</dc:date>
    <item>
      <title>Button actions from QV 8.5 to QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175477#M503637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We had a request to create a menu for the charts in a document that would have the feel of hyperlinks. In QlikView 8.5 we used a macro that checked the number of charts vs number of buttons and if different re-created the buttons on the "Menu" sheet. How can I do this in QV9 using Actions?&lt;/P&gt;&lt;P&gt;Here is the QV 8.5 macro:&lt;/P&gt;&lt;P&gt;Sub CreateButtons&lt;BR /&gt; 'delete all buttons on AnalysisCharts sheet&lt;BR /&gt; set s=ActiveDocument.Sheets("AnalysisCharts")&lt;BR /&gt; buttons=s.GetButtons&lt;BR /&gt; for i=lbound(buttons) to ubound(buttons)&lt;BR /&gt; if right(buttons(i).GetObjectID,3) &amp;gt; 300 then buttons(i).Close&lt;BR /&gt; next&lt;BR /&gt;&lt;BR /&gt; 'create button for each entry in charts tablebox for ChartButtons table&lt;BR /&gt; set ButtonTable = ActiveDocument.GetSheetObject( "TB06" )&lt;BR /&gt; btncntr = ButtonTable.GetRowCount - 1&lt;BR /&gt;&lt;BR /&gt; rem create new shortcut button - clear except locked&lt;BR /&gt; lastposTop = 300&lt;BR /&gt; lastposLeft = 1100&lt;BR /&gt; for btncntr = 1 to ButtonTable.GetRowCount - 1&lt;BR /&gt; set newbutton = s.CreateButton&lt;BR /&gt; set prop = newbutton.GetProperties&lt;BR /&gt; 'set button text = cntr &amp;amp; chart name&lt;BR /&gt; prop.Text.v = btncntr &amp;amp; ". " &amp;amp; ButtonTable.GetCell(btncntr,2).text&lt;BR /&gt; &lt;STRONG&gt;prop.Type = 2&lt;BR /&gt; prop.BtnStyle = 0&lt;BR /&gt; prop.Macro = "ShowChart"&lt;BR /&gt;&lt;/STRONG&gt; prop.BkgAlpha = 0&lt;BR /&gt; prop.TextColor.PrimaryCol.Col = RGB(64,128,128)&lt;BR /&gt; set fr = prop.Frame&lt;BR /&gt; fr.ObjectId = ButtonTable.GetCell(btncntr,0).text&lt;BR /&gt; fr.Font.Bold = true&lt;BR /&gt; fr.Font.AntiAlias = 1&lt;BR /&gt; set pos = fr.Rect&lt;BR /&gt; pos.Height = 35&lt;BR /&gt; pos.Width = 225&lt;BR /&gt; pos.Top = lastposTop + 100&lt;BR /&gt; pos.Left = lastposLeft&lt;BR /&gt; if pos.Top = 1300 then&lt;BR /&gt; lastposTop = 300&lt;BR /&gt; lastposLeft = pos.Left + 1100&lt;BR /&gt; else&lt;BR /&gt; lastposTop = pos.Top&lt;BR /&gt; end if&lt;BR /&gt; newbutton.SetProperties prop&lt;BR /&gt;next&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The above bold lines show lines with obsolete properties.&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Shanikia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 20:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175477#M503637</guid>
      <dc:creator />
      <dc:date>2010-03-10T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Button actions from QV 8.5 to QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175478#M503638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I decided to get around this by manually creating one button and using the CreateObjectFromXMLPropertiesFile to create the rest.&lt;/P&gt;&lt;P&gt;I know everyone is against macros, so if there are any suggestions ]for a menu of charts that can be dynamically maintained, please let me know!&lt;/P&gt;&lt;P&gt;Shanikia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 19:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175478#M503638</guid>
      <dc:creator />
      <dc:date>2010-03-24T19:36:22Z</dc:date>
    </item>
    <item>
      <title>Button actions from QV 8.5 to QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175479#M503639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just create a field, like "Chart". I give it values of all the titles of my charts. Each chart has a condition for display, like Chart='Revenue Trend'. If you create a list box for the Chart field, that is at least fairly close to the feel of hyperlinks, even if the coloration isn't the same.&lt;/P&gt;&lt;P&gt;Moving away from the feel of hyperlinks, you could put a single-field multi-box up where the title should be, so that it serves both as the title of the chart and as a drop down for selecting the chart to display. More room on the screen for the charts themselves, slightly harder to select a specific chart since it takes two clicks instead of one.&lt;/P&gt;&lt;P&gt;A similar option would be to create a new field for each chart, put the fields in a cyclic group at the top of the page as the title, and use display conditions like getcurrentfield(Chart)='Revenue Trend'. That gives you the ability to go to the next chart with a single click if that's desirable.&lt;/P&gt;&lt;P&gt;We've done a pretty good job of getting our users to accept the way that QlikView does things. They don't insist on duplicating things they're more familiar with, like hyperlinks (unless I'm hyperlinking to an external document of some sort). I understand that not everyone is so lucky in regards to their users, and may be forced to make QlikView look and feel like some other product. But if possible, I think you'll save yourself trouble in the long run by making QlikView simply look and feel like QlikView instead of a web browser, Excel, Power Point, or whatever your users are used to.&lt;/P&gt;&lt;P&gt;I suppose my suggestion falls flat in that it is NOT dynamically maintained from the existing charts, and instead requires a manual data entry and a reload to link to a new chart. I haven't found that much of a problem in practice, but perhaps it would be in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 20:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175479#M503639</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-24T20:21:03Z</dc:date>
    </item>
    <item>
      <title>Button actions from QV 8.5 to QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175480#M503640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we want to replicate the same behavior as prop.Macro and prop.Type = 2 in QV 9, any idea what the new member function are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do this in a vbs script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 23:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-actions-from-QV-8-5-to-QV9/m-p/175480#M503640</guid>
      <dc:creator />
      <dc:date>2010-08-10T23:22:53Z</dc:date>
    </item>
  </channel>
</rss>

