<?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: Storing a front-end variable into a qvd in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2062025#M87110</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;: yes, this is exactly what I want (&lt;SPAN&gt;to evaluate the expression from a variable containing expression which uses data from multiple tables and store the result in a QVD in script. This is what I also thought about, but it is quite a pain to do that in script because the complexity of the expression (there are also several of them in different apps).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;: interesting idea, but I am in QSEoW.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope Automations could help to solve this (an automation opening the app, getting the result of the front-end variable and storing it into a QVD). I need try that out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;THANK YOU both for your suggestions. Very much appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 12:25:29 GMT</pubDate>
    <dc:creator>did</dc:creator>
    <dc:date>2023-04-19T12:25:29Z</dc:date>
    <item>
      <title>Storing a front-end variable into a qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2059678#M86975</link>
      <description>&lt;P&gt;Is there any way to get the variable value, which is built in front-end when the app loading is over?&lt;/P&gt;
&lt;P&gt;Imagine in your app front-end you have a variable containing a complicated formula showing some numbers as a result.&lt;BR /&gt;This formula can be built only in front-end (because it is a result of data load &amp;amp; transformation, so in order to build this variable in script you need to bring together lot of tables which is insane).&lt;BR /&gt;It seems like such variable gets the value only when the app is opened, isn't it?&lt;BR /&gt;All means trying to get that value in script result in variable definition (the formula itself) or null value.&lt;BR /&gt;The only thing really working well is using an inputbox (such results can be easily picked up in the script and stored into qvd). From the 1st point of view a variable set with '=' sign should not be evaluated (using $() ) and thus seems to operate in the same way as a variable defined by an inputbox. But the problem is - the inputbox does not have any definition (the definition happens via the manual typing), while a non-inputbox variable contains a definition formula (like =sum(myField) ), which must be evaluated while opening a sheet (even though this variable is defined with '=' sign).&lt;BR /&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="did_0-1681311680564.png" style="width: 282px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104744i26D47EEC216EFD5F/image-dimensions/282x189?v=v2" width="282" height="189" role="button" title="did_0-1681311680564.png" alt="did_0-1681311680564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="did_1-1681311694026.png" style="width: 190px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104745i0A7E900D5BEDE946/image-dimensions/190x332?v=v2" width="190" height="332" role="button" title="did_1-1681311694026.png" alt="did_1-1681311694026.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 15:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2059678#M86975</guid>
      <dc:creator>did</dc:creator>
      <dc:date>2023-04-12T15:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Storing a front-end variable into a qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2059794#M86982</link>
      <description>&lt;P&gt;If I understand you correctly, you want to evaluate the expression from a variable and store the result in a QVD?&amp;nbsp; In script? If the expression uses data from multiple tables, I don't think there is any way to evaluate the expression in the load script except by making required table associations. See&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2020/03/creating-temporary-script-associations/" target="_blank"&gt;https://qlikviewcookbook.com/2020/03/creating-temporary-script-associations/&lt;/A&gt;&amp;nbsp;for suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 23:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2059794#M86982</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-04-12T23:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Storing a front-end variable into a qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2060026#M86991</link>
      <description>&lt;P&gt;AFAIK there is no way to get the result from an expression within a variable because this result is only calculated while the UI exists. Otherwise it's just a stored definition.&lt;/P&gt;
&lt;P&gt;A workaround in QlikView for such scenarios could be to use 2 different variables for each case, like:&lt;/P&gt;
&lt;P&gt;Var: = sum(Field)&lt;BR /&gt;Var.v:&lt;/P&gt;
&lt;P&gt;and Var.v is filled per macro triggered per button or by selecting/changing fields/variables. There are various ways to implement such logic and a quite simple one is to use an input-box and looping through it for all wanted ones, like:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sub TransferVariableValuesFromCalculatedVariablesToFixedVariables&lt;/P&gt;
&lt;P&gt;set table = ActiveDocument.GetSheetObject( "IB03" )&lt;/P&gt;
&lt;P&gt;for RowIter = 0 to table.GetRowCount-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;for ColIter =0 to table.GetColumnCount-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set cell = table.GetCell(RowIter,ColIter)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ColIter = 0 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vVariable = cell.Text &amp;amp; ".v"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end if&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if ColIter = 2 then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vVariableValue = cell.Text&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;BR /&gt;&amp;nbsp; &amp;nbsp;next&lt;BR /&gt;&amp;nbsp; &amp;nbsp;set v = ActiveDocument.Variables(vVariable)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;v.SetContent vVariableValue, true&lt;BR /&gt;next&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If the variable-results are displayed within any object it might be also exported to any file or by using any write-back logic stored within a data-base.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 11:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2060026#M86991</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-04-13T11:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Storing a front-end variable into a qvd</title>
      <link>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2062025#M87110</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;: yes, this is exactly what I want (&lt;SPAN&gt;to evaluate the expression from a variable containing expression which uses data from multiple tables and store the result in a QVD in script. This is what I also thought about, but it is quite a pain to do that in script because the complexity of the expression (there are also several of them in different apps).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;: interesting idea, but I am in QSEoW.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope Automations could help to solve this (an automation opening the app, getting the result of the front-end variable and storing it into a QVD). I need try that out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;THANK YOU both for your suggestions. Very much appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Storing-a-front-end-variable-into-a-qvd/m-p/2062025#M87110</guid>
      <dc:creator>did</dc:creator>
      <dc:date>2023-04-19T12:25:29Z</dc:date>
    </item>
  </channel>
</rss>

