<?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 Assign a value to a variable in Ajax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526986#M1270651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm going mad trying to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;ActiveDocument.GetVariable("myvar").SetContent "aaaa", true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put this in a Macro, I want to do this when I click on a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;If I use it in desktop version, it works correctly, but if I use the in Ajax Plugin (QV Server 11) version it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Aki76&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>simospa</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526986#M1270651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm going mad trying to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;ActiveDocument.GetVariable("myvar").SetContent "aaaa", true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put this in a Macro, I want to do this when I click on a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;If I use it in desktop version, it works correctly, but if I use the in Ajax Plugin (QV Server 11) version it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Aki76&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526986#M1270651</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526987#M1270654</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;Use an action instead. For example, create a new button, got to its properties, Actions, External, Set Variable. So when you click on it, tha variable should get the vale specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 05:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526987#M1270654</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-26T05:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526988#M1270657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel,&lt;/P&gt;&lt;P&gt;but I have to use this action in a more complex script, I can't use a button directly but the assignation has to be set into a macro. It's the reload script, that doesn't assign the variable correctly and so I can't have a feedback of the end of the reload....&lt;/P&gt;&lt;P&gt;Aki76&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 05:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526988#M1270657</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2013-07-26T05:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526989#M1270661</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 may have understood you wrong: certain macros cannot be used in the script (neither in Desktop nor in Server), because ActiveDocument is only valid when the document is actually active, meaning that after the reload, when the reload dialog has gone and you can interact with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate on your actual requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 06:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526989#M1270661</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-26T06:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526990#M1270664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but then how can I have an assignment?&lt;/P&gt;&lt;P&gt;I need have a feedback of the success of the reload... and the EDX Reload Script I have use this way to alert me that I finished reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetVariable("vAjaxMsg").SetContent sMsgTxt, true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I have a textbox where I want to see sMgsTxt (Reload succesfull, failed,...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i the line doesn't works. I need to refresh an object first? How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no other method to do this?&lt;/P&gt;&lt;P&gt;Aki76&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 07:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526990#M1270664</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2013-07-26T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526991#M1270668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you want to control when a task has been completed successfully without need to see the QMC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to achieve this is to store that value into a QVD file instead if the script reached the last line all right, then have another task that reloads depending on the first (you can set task dependencies in the QMC) and shows that textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 07:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526991#M1270668</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-26T07:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Assign a value to a variable in Ajax</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526992#M1270670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mh good idea...&lt;/P&gt;&lt;P&gt;I'll try and I'll report you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aki76&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 08:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-a-value-to-a-variable-in-Ajax/m-p/526992#M1270670</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2013-07-26T08:18:11Z</dc:date>
    </item>
  </channel>
</rss>

