<?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 Overview - Edit Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209752#M64624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks DV, that gives me what I need for now. However, what I wanted to know is if there is a way that I could write this in the edit script, instead of using vba code. Just curious&lt;/P&gt;&lt;P&gt;Colin, thanks for your reply. I do not want to define the values in the edit script but actually create the variables there, so when I go to variable overview I see it listed there. I can then use sliders or whatever to define the value &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2011 08:47:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-12T08:47:08Z</dc:date>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209749#M64621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have created a new QV document and wanted to export my variable overviews from another document. I however, thought that it would be easier in the future if I could somehow define these variable names in the edit script.&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 15:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209749#M64621</guid>
      <dc:creator />
      <dc:date>2011-04-11T15:48:33Z</dc:date>
    </item>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209750#M64622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Byron - Please use the below VBA Code from Excel.&lt;/P&gt;&lt;P&gt;&lt;A class="profile-name-link" href="http://www.blogger.com/profile/08386812862574514289" rel="author"&gt;Tim Benoit&lt;/A&gt; has provided this solution!&lt;/P&gt;&lt;P&gt;http://qlikviewmaven.blogspot.com/2008/11/listing-all-variables-and-contents.html&lt;/P&gt;&lt;P&gt;Sub List_QV_Variables()&lt;BR /&gt;'This Excel macro will ask you to select a QlikView Report File and&lt;BR /&gt;'then it will put the variable names and contents into your current worksheet&lt;BR /&gt;'--Tim Benoit, Nov 2008&lt;BR /&gt;Dim oQV, oRpt, oVars, oTempVar, oThisVar, qv_fn&lt;BR /&gt;&lt;BR /&gt;'Get the QlikView report pathname&lt;BR /&gt;qv_fn = Application.GetOpenFilename("QlikView Report File (.),*.*", , "Select a QlikView .qvw Report File", False)&lt;BR /&gt;If qv_fn = 0 Then&lt;BR /&gt; Exit Sub&lt;BR /&gt; End If&lt;BR /&gt;&lt;BR /&gt;'Write out some heading text&lt;BR /&gt;ActiveSheet.Cells(1, 1).Formula = "QlikView Variables List"&lt;BR /&gt;ActiveSheet.Cells(2, 1).Formula = "Report pathname:"&lt;BR /&gt;ActiveSheet.Cells(2, 2).Formula = qv_fn&lt;BR /&gt;ActiveSheet.Cells(3, 1).Formula = "Variable Name"&lt;BR /&gt;ActiveSheet.Cells(3, 2).Formula = "Variable Content"&lt;BR /&gt;&lt;BR /&gt;'Open the QlikView report file&lt;BR /&gt;Set oQV = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set oRpt = oQV.OpenDoc(qv_fn)&lt;BR /&gt;Set oVars = oRpt.GetVariableDescriptions&lt;BR /&gt;'Loop through the variables&lt;BR /&gt;For i = 0 To oVars.Count - 1&lt;BR /&gt; Set oTempVar = oVars.Item(i)&lt;BR /&gt; varname = Trim(oTempVar.Name)&lt;BR /&gt; Set oThisVar = oRpt.Variables(varname)&lt;BR /&gt; varcontent = oThisVar.GetRawContent&lt;BR /&gt; 'Write data into worksheet cells&lt;BR /&gt; ActiveSheet.Cells(i + 4, 1).NumberFormat = "@"&lt;BR /&gt; ActiveSheet.Cells(i + 4, 1).Formula = varname&lt;BR /&gt; ActiveSheet.Cells(i + 4, 2).NumberFormat = "@"&lt;BR /&gt; ActiveSheet.Cells(i + 4, 2).Formula = varcontent&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt;'Close QlikView&lt;BR /&gt;oRpt.CloseDoc&lt;BR /&gt;oQV.Quit&lt;BR /&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 16:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209750#M64622</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209751#M64623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Byron, you can use the set function in your script to define variable values. So, for example, if you have a variable called vMaxYear in your document that is defined as =max(Year), in your script you can have&lt;/P&gt;&lt;P&gt;set vMaxYear = "=max(Year)";&lt;/P&gt;&lt;P&gt;This will create the variable in your document the same as if you had created it through the front end.&lt;/P&gt;&lt;P&gt;The only time I have run into problems with this is if the variables themselves contain quotes, that can get tricky.&lt;/P&gt;&lt;P&gt;Colin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 16:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209751#M64623</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2011-04-11T16:14:08Z</dc:date>
    </item>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209752#M64624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks DV, that gives me what I need for now. However, what I wanted to know is if there is a way that I could write this in the edit script, instead of using vba code. Just curious&lt;/P&gt;&lt;P&gt;Colin, thanks for your reply. I do not want to define the values in the edit script but actually create the variables there, so when I go to variable overview I see it listed there. I can then use sliders or whatever to define the value &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 08:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209752#M64624</guid>
      <dc:creator />
      <dc:date>2011-04-12T08:47:08Z</dc:date>
    </item>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209753#M64625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use a let or a set statement in your script, that will create a variable, that will then appear in the variable overview. You can define the variable at the same time as you create it, either by making it an expression, like in my previous example, or by giving it a value, e.g., let vNumber = 1, and then having a slider or input box in your document to change it.&lt;/P&gt;&lt;P&gt;Try a simple let statement in a script, without having created a variable through the variable overview, and you will see that variable appear in the variable overview after you have reloaded.&lt;/P&gt;&lt;P&gt;Colin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 09:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209753#M64625</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2011-04-12T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209754#M64626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Colin, fantastic, exactly what I wanted and so easy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; A noob like me likes easy things like this.&lt;/P&gt;&lt;P&gt;Shot dude&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 09:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209754#M64626</guid>
      <dc:creator />
      <dc:date>2011-04-12T09:55:47Z</dc:date>
    </item>
    <item>
      <title>Variable Overview - Edit Script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209755#M64627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent Colin. That's excatly the same I do... when I declare variables. This enables full control compared to using only Variable Overiew (GUI) window.&lt;/P&gt;&lt;P&gt;Byron - thanks for the points. I am sure Tim's VBA code will be very helpful. I'll work on writing samething in VB Script using QV API. I'll post here if I can get this done.&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 10:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Overview-Edit-Script/m-p/209755#M64627</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-12T10:26:56Z</dc:date>
    </item>
  </channel>
</rss>

