<?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: Qlik Sense extension custom string input &amp;quot;expression&amp;quot; property not working correctly in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-extension-custom-string-input-quot-expression-quot/m-p/1990577#M17423</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;If you use &lt;STRONG&gt;expression: "&lt;SPAN&gt;optional&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;then = is required to evaluate&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;expression: "always"&amp;nbsp;&lt;/STRONG&gt;will always try to&amp;nbsp;&lt;SPAN&gt;evaluate&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 06:55:27 GMT</pubDate>
    <dc:creator>ajaykakkar93</dc:creator>
    <dc:date>2022-10-10T06:55:27Z</dc:date>
    <item>
      <title>Qlik Sense extension custom string input "expression" property not working correctly</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-extension-custom-string-input-quot-expression-quot/m-p/1954242#M17046</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;
&lt;P&gt;I'm coming across a bug regarding the string input box in the properties panel on an extension I am creating. I am making a custom string input that I want to always evaluate the expression that it is given but it will only evaluate if there is an "=" sign before the expression.&lt;/P&gt;
&lt;P&gt;test3: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;type: "string",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;label: "Test 3",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ref :"test3",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;expression: "always"&lt;BR /&gt;},&lt;/P&gt;
&lt;P&gt;Per the documentation Qlik provides&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/Extensions/Content/Sense_Extensions/Howtos/custom-string-properties.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;it says that any expression put into the input box i have shown above will be evaluated as an expression and any with the 'expression: "optional"' attribute will only be evaluated if there is an "=" sign before it.&lt;/P&gt;
&lt;P&gt;This is the behavior that is not acting correctly for me because it will only evaluate if there is an "=" sign either way.&lt;/P&gt;
&lt;P&gt;In the pictured example below you can see I have an extension and in the properties panel I only defined 3 properties all of which are custom string inputs. I left the first "expression" attribute blank and put "optional" for the second and "always" for the third.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjaminGroff_2-1657565807028.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83856i06441A936A9B57C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="BenjaminGroff_2-1657565807028.png" alt="BenjaminGroff_2-1657565807028.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="BenjaminGroff_3-1657565861275.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83857i4BB7106EB3F0B33B/image-size/large?v=v2&amp;amp;px=999" role="button" title="BenjaminGroff_3-1657565861275.png" alt="BenjaminGroff_3-1657565861275.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see from the console logs all three inputs are evaluating the same even though the instance with the "always" attribute should be evaluated as an expression equaling "-1" as seen in the screenshot below where I add the "=" sign.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjaminGroff_4-1657566135397.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83859i3AC831266034D0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="BenjaminGroff_4-1657566135397.png" alt="BenjaminGroff_4-1657566135397.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If anyone can shed some insight into why it is working this way or what I might be doing wrong it would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thank you ahead of time!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 19:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-extension-custom-string-input-quot-expression-quot/m-p/1954242#M17046</guid>
      <dc:creator>BenjaminGroff</dc:creator>
      <dc:date>2022-07-11T19:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense extension custom string input "expression" property not working correctly</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-extension-custom-string-input-quot-expression-quot/m-p/1990577#M17423</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;If you use &lt;STRONG&gt;expression: "&lt;SPAN&gt;optional&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;then = is required to evaluate&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;expression: "always"&amp;nbsp;&lt;/STRONG&gt;will always try to&amp;nbsp;&lt;SPAN&gt;evaluate&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 06:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-extension-custom-string-input-quot-expression-quot/m-p/1990577#M17423</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2022-10-10T06:55:27Z</dc:date>
    </item>
  </channel>
</rss>

