<?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 Variable in vbscript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298003#M498407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This is from the API Guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "LB01" )&lt;/P&gt;&lt;P&gt;CellRect = ActiveDocument.GetApplication().GetEmptyRect()&lt;/P&gt;&lt;P&gt;CellRect.Top = 0&lt;/P&gt;&lt;P&gt;CellRect.Left = 0&lt;/P&gt;&lt;P&gt;CellRect.Width = table.GetColumnCount&lt;/P&gt;&lt;P&gt;CellRect.Height = table.GetRowCount&lt;/P&gt;&lt;P&gt;set CellMatrix = table.GetCells( CellRect )&lt;/P&gt;&lt;P&gt;for RowIter=CellRect.Top to CellRect.Height-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter=CellRect.Left to CellRect.Width-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 16:31:32 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2011-07-21T16:31:32Z</dc:date>
    <item>
      <title>Variable in vbscript</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298002#M498406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping someone can provide some “how to” info on using variables in a vbscript. Below is the script we using to call data from an API. We want to now be able to get data from a List Box. Any help on the coding would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Terry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub GetLists()&lt;/P&gt;&lt;P&gt;Dim xml&lt;/P&gt;&lt;P&gt;Dim strXML&lt;/P&gt;&lt;P&gt;strXML = "&amp;lt;?xml version=""1.0"" encoding=""UTF-8""?&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;Envelope&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;Body&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;Login&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;USERNAME&amp;gt;username&amp;lt;/USERNAME&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;PASSWORD&amp;gt;password&amp;lt;/PASSWORD&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;/Login&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;GetLists&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;VISIBILITY&amp;gt;0&amp;lt;/VISIBILITY&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;LIST_TYPE&amp;gt;2&amp;lt;/LIST_TYPE&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;/GetLists&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;/Body&amp;gt;"&lt;/P&gt;&lt;P&gt;strXML = strXML &amp;amp; "&amp;lt;/Envelope&amp;gt;"&lt;/P&gt;&lt;P&gt;set xml = CreateObject("Microsoft.XMLHTTP") 'XMLHTTP is an MS object that handles xml post over http&lt;/P&gt;&lt;P&gt;' msgbox strXML&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xml.Open "POST", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://api.somedomain.com/XMLAPI?xml="&gt;http://api.somedomain.com/XMLAPI?xml=&lt;/A&gt;&lt;SPAN&gt;"&amp;amp;strXML, False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;xml.Send&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '\', -1))")&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName = Path &amp;amp; "GetLists.xml"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set s = fso.CreateTextFile(FileName, True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.writeline(xml.responseText)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.Close()&lt;/P&gt;&lt;P&gt;msgbox ("Done")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="username.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6045_username.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298002#M498406</guid>
      <dc:creator />
      <dc:date>2011-07-21T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Variable in vbscript</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298003#M498407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This is from the API Guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "LB01" )&lt;/P&gt;&lt;P&gt;CellRect = ActiveDocument.GetApplication().GetEmptyRect()&lt;/P&gt;&lt;P&gt;CellRect.Top = 0&lt;/P&gt;&lt;P&gt;CellRect.Left = 0&lt;/P&gt;&lt;P&gt;CellRect.Width = table.GetColumnCount&lt;/P&gt;&lt;P&gt;CellRect.Height = table.GetRowCount&lt;/P&gt;&lt;P&gt;set CellMatrix = table.GetCells( CellRect )&lt;/P&gt;&lt;P&gt;for RowIter=CellRect.Top to CellRect.Height-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter=CellRect.Left to CellRect.Width-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298003#M498407</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-07-21T16:31:32Z</dc:date>
    </item>
    <item>
      <title>Variable in vbscript</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298004#M498408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your macro, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("yourfieldname").GetSelectedValues.Item(0).Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This assumes you want the first selected item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 21:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-vbscript/m-p/298004#M498408</guid>
      <dc:creator />
      <dc:date>2011-07-21T21:07:57Z</dc:date>
    </item>
  </channel>
</rss>

