<?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 VB Script embed into Buttons in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216374#M69697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please consider it solved after lot of permutation and combination and offcourse help from google:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;ActiveDocument.Fields("SFDC_OPPORTUNITY.Month"). &lt;B&gt;Select&lt;/B&gt; "&amp;gt;=" &amp;amp; &lt;B&gt;FormatDateTime&lt;/B&gt;(ActiveDocument.Evaluate("today(1)-365"))&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;This does the trick.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Thanks,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Gaurav C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 10:30:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-15T10:30:47Z</dc:date>
    <item>
      <title>VB Script embed into Buttons</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216371#M69694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a requirement to make a selection active on a basis of Button. Following is working when its a single selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetField(&lt;/P&gt;&lt;P&gt;"SFDC_OPPORTUNITY.Month"). &lt;B&gt;Select&lt;/B&gt; ActiveDocument.Evaluate("monthname(today(0))")&lt;/P&gt;&lt;P&gt;where SFDC_OPPORTUNITY.Month is the tablename.fieldname from the Load Script which need to select based on the Button click.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The requirement says on the click of the Button, need to show last 12 months data starting from current month. How can that be programed in the embedded VBscript? Has anyone faced this kind of requirement before?&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 02:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216371#M69694</guid>
      <dc:creator />
      <dc:date>2009-10-15T02:52:18Z</dc:date>
    </item>
    <item>
      <title>VB Script embed into Buttons</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216372#M69695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post a QVW with an example of your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 03:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216372#M69695</guid>
      <dc:creator />
      <dc:date>2009-10-15T03:25:21Z</dc:date>
    </item>
    <item>
      <title>VB Script embed into Buttons</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216373#M69696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached a test qvw.&lt;/P&gt;&lt;P&gt;LTM - Lost Button need to select last 12 months. The current underlying macro is able to select the current month as per the code.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 03:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216373#M69696</guid>
      <dc:creator />
      <dc:date>2009-10-15T03:42:05Z</dc:date>
    </item>
    <item>
      <title>VB Script embed into Buttons</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216374#M69697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please consider it solved after lot of permutation and combination and offcourse help from google:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;ActiveDocument.Fields("SFDC_OPPORTUNITY.Month"). &lt;B&gt;Select&lt;/B&gt; "&amp;gt;=" &amp;amp; &lt;B&gt;FormatDateTime&lt;/B&gt;(ActiveDocument.Evaluate("today(1)-365"))&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;This does the trick.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Thanks,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Gaurav C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 10:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Script-embed-into-Buttons/m-p/216374#M69697</guid>
      <dc:creator />
      <dc:date>2009-10-15T10:30:47Z</dc:date>
    </item>
  </channel>
</rss>

