<?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: How To pass values in field based on condition in selectMatch api in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946931#M78019</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;can you please help in creation of a hypercube , I am new to mashup,&amp;nbsp; i am not aware how to achieve this.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 15:22:32 GMT</pubDate>
    <dc:creator>Qlik1_User1</dc:creator>
    <dc:date>2022-06-22T15:22:32Z</dc:date>
    <item>
      <title>How To pass values in field based on condition in selectMatch api</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946653#M77998</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am using below API to pass a value in field&lt;BR /&gt;app.field('reporting_year').selectMatch(String(new Date().getFullYear()), true)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is it possible ,if user has already selected a value in&lt;STRONG&gt; "reporting_year"&lt;/STRONG&gt; field than pass user selected year else current year (2022)&lt;BR /&gt;&lt;BR /&gt;Using this but&amp;nbsp; its not working in mashup&lt;BR /&gt;if(GetSelectedCount('reporting_year')=0,app.field('reporting_year').selectMatch(String(new Date().getFullYear()), true));&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 09:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946653#M77998</guid>
      <dc:creator>Qlik1_User1</dc:creator>
      <dc:date>2022-06-22T09:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How To pass values in field based on condition in selectMatch api</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946928#M78017</link>
      <description>&lt;P&gt;&lt;SPAN&gt;GetSelectedCount is a function in Qlik Sense not in javascript.&amp;nbsp; you are mixing up the syntax of Qlik Sense expressions and javascript&amp;amp;colon;&lt;BR /&gt;&lt;BR /&gt;Qlik Sense: if(condition, true, false)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;javascript&amp;amp;colon; if (condition)&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{true}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{false}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it looks like you want to know if there are selected values for reporting year - unfortunately, you need to get that info via api.&amp;nbsp; a hypercube may be usefull. wouldnt you want your webpage to know not just if there are selected rep years but also what was selected and all possible selections?&amp;nbsp; that can be retrieved via hypercube&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946928#M78017</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-06-22T15:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How To pass values in field based on condition in selectMatch api</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946931#M78019</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;can you please help in creation of a hypercube , I am new to mashup,&amp;nbsp; i am not aware how to achieve this.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946931#M78019</guid>
      <dc:creator>Qlik1_User1</dc:creator>
      <dc:date>2022-06-22T15:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How To pass values in field based on condition in selectMatch api</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946942#M78020</link>
      <description>&lt;P&gt;go through this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/AppAPI/createCube-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/AppAPI/createCube-method.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;it shows you how to create hypercubes.&amp;nbsp; this allows you to get data from your dashboard - almost like a straight table.&amp;nbsp; you can use rep year as your dimension and just create measures to tell you which ones are selected.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946942#M78020</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-06-22T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: How To pass values in field based on condition in selectMatch api</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946945#M78021</link>
      <description>&lt;P&gt;going through that link shows you how to create a hypecube and does some explaining.&lt;/P&gt;
&lt;P&gt;once you get that, a faster way to code is to select your application in DEVhub:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1655912010995.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82416iF27C99B1011FCEFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1655912010995.png" alt="edwin_0-1655912010995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;click add hypercube:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_1-1655912042108.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82417i433D86672DE7CB8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_1-1655912042108.png" alt="edwin_1-1655912042108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then choose your dimensions and measures.&amp;nbsp; it will create the code for you and you can just move that piece of code anywhere you want&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946945#M78021</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-06-22T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How To pass values in field based on condition in selectMatch api</title>
      <link>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946948#M78022</link>
      <description>&lt;P&gt;hypercubes are returned as promises.&amp;nbsp; you may also want to read up on that:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://web.dev/promises/?gclid=EAIaIQobChMI6Jr-6r-b-AIV-PDjBx1sQwVVEAAYASAAEgKpD_D_BwE" target="_blank"&gt;JavaScript Promises: an introduction (web.dev)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-To-pass-values-in-field-based-on-condition-in-selectMatch/m-p/1946948#M78022</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-06-22T15:35:58Z</dc:date>
    </item>
  </channel>
</rss>

