<?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: Help understanding macro syntax? in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485662#M1493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use set when you are creating an instance of an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable there becomes a instance of an object in your case it is ActiveDocument.PrintReportEx("RP01")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating the instance you have passed the value RP01 which is the ID of the Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objects have properties, methods and events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next you are using printResponse.URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;URL is a property of an object here and you are reading the value of the property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand when you do not use set its just a simplae variable to store the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 06:30:17 GMT</pubDate>
    <dc:creator>rajeshvaswani77</dc:creator>
    <dc:date>2013-09-27T06:30:17Z</dc:date>
    <item>
      <title>Help understanding macro syntax?</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485661#M1492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for taking your time to look at my questions and I hope you can help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following Macro, and I'm new to macros, what I want is send a report by mail, I found this online, but it doesn't work so I'm trying to understand how it works.&lt;/P&gt;&lt;P&gt;My questions are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- What's the difference between " set VariableName = Value" and "VariableName = Value"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;Sub PrintRpt()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: #38761d;"&gt;'print the report and get the reponse back in a variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; set printResponse=ActiveDocument.PrintReportEx("RP01")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: #38761d;"&gt; 'get the name of the PDF file created by the print action above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; sURL=mid(printResponse.URL,3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: #38761d;"&gt;'get the email address of the recipient selected in the recipients listbox&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; set recipient=ActiveDocument.fields("Recipient").GetSelectedValues&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; set email=recipient.Item(0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: #38761d;"&gt; 'set the concatenated string (email address and name of the PDF file) as content of the listbox created in step 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; ActiveDocument.Variables("vPdfName2").SetContent chr(39) &amp;amp; email.text &amp;amp; ";" &amp;amp; sURL &amp;amp; chr(39), true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: blue;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #38761d;"&gt;'set the path of the folder in which the text file will be crated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; sFile="C:\_QVW\PDFfolder\WatchThis\email_" &amp;amp; replace(sURL,".pdf","") &amp;amp; ".txt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: #38761d;"&gt; 'Export the content of the listbox into a text file that contains the email address and name of the PDF file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&amp;nbsp; set lb = ActiveDocument.GetSheetObject("LB05")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;lb.ServerSideExportEx sFile , ";" , 1 '0=HTML, 1=Text, 2=Bitmap, 3=XML, 4=QVD, 5=BIFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 03:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485661#M1492</guid>
      <dc:creator />
      <dc:date>2013-09-27T03:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding macro syntax?</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485662#M1493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use set when you are creating an instance of an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable there becomes a instance of an object in your case it is ActiveDocument.PrintReportEx("RP01")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating the instance you have passed the value RP01 which is the ID of the Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objects have properties, methods and events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next you are using printResponse.URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;URL is a property of an object here and you are reading the value of the property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand when you do not use set its just a simplae variable to store the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 06:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485662#M1493</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-09-27T06:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding macro syntax?</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485663#M1494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh do you have Qlikivew Web embedding&amp;nbsp; Examples how to call qlikview and dashboard in ASP .Net&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting Your Valuable feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 16:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Help-understanding-macro-syntax/m-p/485663#M1494</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-01-04T16:41:36Z</dc:date>
    </item>
  </channel>
</rss>

