<?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 Passing variable through url and useing variable using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-variable-through-url-and-useing-variable-using-macro/m-p/929266#M321363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hello,&lt;BR /&gt;Lets say I have&amp;nbsp; a very simple app that has a text box only. an OnOpen Trigger defined on the document setting (WhenOpen). The trigger suppose to get the variable from url and show its value on the text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;lets say the text box object ID is = TX13, I have defined the variable v and its default value is 0. The variable v is defined inside &lt;/SPAN&gt;Text box&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My url would be something like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost/QvAJAXZfc/opendoc.htm?document=Dynamicupdate%2Fdynamic_update_dix_5(1).qvw&amp;amp;host=QVS%40qv-pc&amp;amp;val1=something" title="http://localhost/QvAJAXZfc/opendoc.htm?document=Dynamicupdate%2Fdynamic_update_dix_5(1).qvw&amp;amp;host=QVS%40qv-pc&amp;amp;val1=something"&gt;http://localhost/QvAJAXZfc/opendoc.htm?document=Dynamicupdate%2Fdynamic_update_dix_5(1).qvw&amp;amp;host=QVS%40qv-pc&amp;amp;val1=someth…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an incomplete macro code as well which is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub WhenOpen&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;set v= ActiveDocument.GetVariable("val1")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take note : &lt;/P&gt;&lt;P&gt;1- I know you can append variable to URL for customized select such as : &lt;/P&gt;&lt;P&gt;url&amp;amp;SELECT=THEOBJECTID,THEOBJECTVALUE &lt;/P&gt;&lt;P&gt;or you can change sheet using&amp;nbsp; :&lt;/P&gt;&lt;P&gt;URL&amp;amp;SHEET="SHEETID"&lt;/P&gt;&lt;P&gt;or even more advance customized url such as :&lt;/P&gt;&lt;P&gt;URL&amp;amp;object=OBJECTID&lt;/P&gt;&lt;P&gt;but none of these methods can not help me in this scenario. &lt;/P&gt;&lt;P&gt;2- &lt;SPAN style="font-size: 13.3333px;"&gt;this application suppose to open using access point on server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to complete the macro code &lt;SPAN style="font-size: 13.3333px;"&gt;to get the variable&amp;nbsp; from url and show its value on the text box&lt;/SPAN&gt; please ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 14:06:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-07T14:06:01Z</dc:date>
    <item>
      <title>Passing variable through url and useing variable using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-variable-through-url-and-useing-variable-using-macro/m-p/929266#M321363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hello,&lt;BR /&gt;Lets say I have&amp;nbsp; a very simple app that has a text box only. an OnOpen Trigger defined on the document setting (WhenOpen). The trigger suppose to get the variable from url and show its value on the text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;lets say the text box object ID is = TX13, I have defined the variable v and its default value is 0. The variable v is defined inside &lt;/SPAN&gt;Text box&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My url would be something like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost/QvAJAXZfc/opendoc.htm?document=Dynamicupdate%2Fdynamic_update_dix_5(1).qvw&amp;amp;host=QVS%40qv-pc&amp;amp;val1=something" title="http://localhost/QvAJAXZfc/opendoc.htm?document=Dynamicupdate%2Fdynamic_update_dix_5(1).qvw&amp;amp;host=QVS%40qv-pc&amp;amp;val1=something"&gt;http://localhost/QvAJAXZfc/opendoc.htm?document=Dynamicupdate%2Fdynamic_update_dix_5(1).qvw&amp;amp;host=QVS%40qv-pc&amp;amp;val1=someth…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an incomplete macro code as well which is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub WhenOpen&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;set v= ActiveDocument.GetVariable("val1")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take note : &lt;/P&gt;&lt;P&gt;1- I know you can append variable to URL for customized select such as : &lt;/P&gt;&lt;P&gt;url&amp;amp;SELECT=THEOBJECTID,THEOBJECTVALUE &lt;/P&gt;&lt;P&gt;or you can change sheet using&amp;nbsp; :&lt;/P&gt;&lt;P&gt;URL&amp;amp;SHEET="SHEETID"&lt;/P&gt;&lt;P&gt;or even more advance customized url such as :&lt;/P&gt;&lt;P&gt;URL&amp;amp;object=OBJECTID&lt;/P&gt;&lt;P&gt;but none of these methods can not help me in this scenario. &lt;/P&gt;&lt;P&gt;2- &lt;SPAN style="font-size: 13.3333px;"&gt;this application suppose to open using access point on server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to complete the macro code &lt;SPAN style="font-size: 13.3333px;"&gt;to get the variable&amp;nbsp; from url and show its value on the text box&lt;/SPAN&gt; please ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-variable-through-url-and-useing-variable-using-macro/m-p/929266#M321363</guid>
      <dc:creator />
      <dc:date>2015-10-07T14:06:01Z</dc:date>
    </item>
  </channel>
</rss>

