<?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 Macro - passing a distinct parameter to an external program in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179894#M46539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following simple button macro below, but the first line fails with the error&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Object required: 'ActiveDocument.Fields(...)'&lt;/P&gt;&lt;P&gt;Any idea on how to pass the utelimsi parameter to my IE launch command?&lt;/P&gt;&lt;P&gt;Note that the button only becomes active when a single distinct IMSI is selected.&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub UTEL&lt;/P&gt;&lt;P&gt;set utelimsi = ActiveDocument.Fields("IMSI").GetSelectedValues&lt;/P&gt;&lt;P&gt;set WshShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;WshShell.Run "iexplore.exe http://10.0.1.98/cgi-bin/uqos/tcapsearch.pl??Action=Search&amp;amp;Category=TCAP&amp;amp;From_Date=2009.12.07&amp;amp;From_Time=05:00&amp;amp;To_Date=2009.12.07&amp;amp;To_Time=06:00&amp;amp;Field=imsi&amp;amp;Operator=&amp;amp;Value=&amp;amp;bind1=and&amp;amp;Sub=&amp;amp;bind2=and&amp;amp;Expression=((imsi="&amp;amp;utelimsi.item(0)&amp;amp;"))&amp;amp;Button=View",3,true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 22:49:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-08T22:49:45Z</dc:date>
    <item>
      <title>Button Macro - passing a distinct parameter to an external program</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179894#M46539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following simple button macro below, but the first line fails with the error&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Object required: 'ActiveDocument.Fields(...)'&lt;/P&gt;&lt;P&gt;Any idea on how to pass the utelimsi parameter to my IE launch command?&lt;/P&gt;&lt;P&gt;Note that the button only becomes active when a single distinct IMSI is selected.&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub UTEL&lt;/P&gt;&lt;P&gt;set utelimsi = ActiveDocument.Fields("IMSI").GetSelectedValues&lt;/P&gt;&lt;P&gt;set WshShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;WshShell.Run "iexplore.exe http://10.0.1.98/cgi-bin/uqos/tcapsearch.pl??Action=Search&amp;amp;Category=TCAP&amp;amp;From_Date=2009.12.07&amp;amp;From_Time=05:00&amp;amp;To_Date=2009.12.07&amp;amp;To_Time=06:00&amp;amp;Field=imsi&amp;amp;Operator=&amp;amp;Value=&amp;amp;bind1=and&amp;amp;Sub=&amp;amp;bind2=and&amp;amp;Expression=((imsi="&amp;amp;utelimsi.item(0)&amp;amp;"))&amp;amp;Button=View",3,true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 22:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179894#M46539</guid>
      <dc:creator />
      <dc:date>2009-12-08T22:49:45Z</dc:date>
    </item>
    <item>
      <title>Button Macro - passing a distinct parameter to an external program</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179895#M46540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to extract the text string from that object containing an array.&lt;/P&gt;&lt;P&gt;After the set utelimsi... statement do this:&lt;/P&gt;&lt;P&gt;utelimsi_txt = utelimsi.Item(0).Text&lt;/P&gt;&lt;P&gt;and then use utelimsi, which now contains simple text, as you build your command line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 01:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179895#M46540</guid>
      <dc:creator />
      <dc:date>2009-12-09T01:20:07Z</dc:date>
    </item>
    <item>
      <title>Button Macro - passing a distinct parameter to an external program</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179896#M46541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tim,&lt;/P&gt;&lt;P&gt;even after adding the 0 array line it still fails at the same line just before?&lt;/P&gt;&lt;P&gt;I am using v8.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 02:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Macro-passing-a-distinct-parameter-to-an-external-program/m-p/179896#M46541</guid>
      <dc:creator />
      <dc:date>2009-12-09T02:34:35Z</dc:date>
    </item>
  </channel>
</rss>

