<?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: Expressions in variables and bookmarks in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484872#M101192</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/72761"&gt;@PedroC&lt;/a&gt;&amp;nbsp; see if below helps&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Save-variable-state-in-bookmark-not-working/td-p/2081162" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Save-variable-state-in-bookmark-not-working/td-p/2081162&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 11:38:23 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-10-02T11:38:23Z</dc:date>
    <item>
      <title>Expressions in variables and bookmarks</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484862#M101186</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a quite new feature in Qlik Sense Enterprise on Windows that allows the user to save variables in bookmarks.&lt;/P&gt;
&lt;P&gt;As developers we use variables to save user input but mainly use them to save expressions to be used in titles or even to simplify set analysis expressions in master items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we've realized that if a user saves a bookmark including variables, the contens of all the variables will be replaced once the bookmark is applied.&lt;/P&gt;
&lt;P&gt;This is a huge problem because expressions are usually modified through the app life cycle and bookmarks will prevent those changes to happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance:&lt;/P&gt;
&lt;P&gt;1.- Developing the app we create a variable vFractile as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; fractile(value, 0.8)&lt;/P&gt;
&lt;P&gt;2.- The user creates a bookmark and checks to save variables&lt;/P&gt;
&lt;P&gt;3.- Later on, instead of P80 we must change the variable to P90:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; fractile(value, 0.9)&lt;/P&gt;
&lt;P&gt;4.- The user applies the bookmark and our expressions goes back to previous version resulting on wrong app behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, while developing the apps, we've found that applying a bookmark defined as "default" will replace the contents of the variable with the obsolete one, but the variable editor will still be showing the newer version (correct). This makes debugging a headache!&lt;/P&gt;
&lt;P&gt;Has anybody face this problem and found a workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 11:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484862#M101186</guid>
      <dc:creator>PedroC</dc:creator>
      <dc:date>2024-10-02T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in variables and bookmarks</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484865#M101187</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/72761"&gt;@PedroC&lt;/a&gt;&amp;nbsp; look at the below video&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=miLgvD2WKS8" target="_blank"&gt;https://www.youtube.com/watch?v=miLgvD2WKS8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 11:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484865#M101187</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-02T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in variables and bookmarks</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484870#M101190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The video is about how to create dynamic bookmarks.&lt;/P&gt;
&lt;P&gt;My problem is about using expressions in variables that are later saved in a bookmark. Most of the time those variables are not meant to be changed by the user and simply act as a way to simplify development.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When they are saved in the bookmark what's really been saved is a piece of code that may change over time, so the user has the chance to "undo" changes on code with no intention at all.&lt;/P&gt;
&lt;P&gt;Thanks anyway&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 11:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484870#M101190</guid>
      <dc:creator>PedroC</dc:creator>
      <dc:date>2024-10-02T11:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in variables and bookmarks</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484872#M101192</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/72761"&gt;@PedroC&lt;/a&gt;&amp;nbsp; see if below helps&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Save-variable-state-in-bookmark-not-working/td-p/2081162" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Save-variable-state-in-bookmark-not-working/td-p/2081162&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 11:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2484872#M101192</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-02T11:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in variables and bookmarks</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2485768#M101314</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;,&amp;nbsp;sure this is somehow a workaround.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setting variables with expressions within the script is not a common thing to do, but it's always good to know that this variables are not stored in bookmarks.&lt;/P&gt;
&lt;P&gt;I think it far more usefull if we can choose whether a variables should be stored in bookmark or not at design time. I'll go ahead and publish this as an idea.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 06:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-in-variables-and-bookmarks/m-p/2485768#M101314</guid>
      <dc:creator>PedroC</dc:creator>
      <dc:date>2024-10-08T06:11:38Z</dc:date>
    </item>
  </channel>
</rss>

