<?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 reply.qSelectionObject.qSelections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/reply-qSelectionObject-qSelections/m-p/1322182#M28559</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 need to understand why qSelectionObject is returned with multiple rows when selections are made in same field but in different object. &lt;/P&gt;&lt;P&gt;I think the reason is somewhere linked with dynamic calculation of dimension field but Sense Current Selection object in sense application is showing selections properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method used to retrieve the list of selection is - &lt;/P&gt;&lt;P&gt;app.getList("CurrentSelections", function (reply) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is dynamically calculated but the same expression is used in the filter object and as a dimension in the pivot table.&lt;/P&gt;&lt;P&gt;The expression for dimension is as below in both pivot table and in the filter box - &lt;/P&gt;&lt;P&gt;=$(='[' &amp;amp; Only([FieldName]) &amp;amp;']')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make selection in the Filter box and later in the pivot chart, I see two rows for same field in the array returned by reply.qSelectionObject.qSelections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is creating confusion as I am showing these selection in the .NET page, not sure why it is happening? Any help will be highly appreciated. Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2017 19:25:54 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2017-07-31T19:25:54Z</dc:date>
    <item>
      <title>reply.qSelectionObject.qSelections</title>
      <link>https://community.qlik.com/t5/App-Development/reply-qSelectionObject-qSelections/m-p/1322182#M28559</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 need to understand why qSelectionObject is returned with multiple rows when selections are made in same field but in different object. &lt;/P&gt;&lt;P&gt;I think the reason is somewhere linked with dynamic calculation of dimension field but Sense Current Selection object in sense application is showing selections properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method used to retrieve the list of selection is - &lt;/P&gt;&lt;P&gt;app.getList("CurrentSelections", function (reply) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is dynamically calculated but the same expression is used in the filter object and as a dimension in the pivot table.&lt;/P&gt;&lt;P&gt;The expression for dimension is as below in both pivot table and in the filter box - &lt;/P&gt;&lt;P&gt;=$(='[' &amp;amp; Only([FieldName]) &amp;amp;']')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make selection in the Filter box and later in the pivot chart, I see two rows for same field in the array returned by reply.qSelectionObject.qSelections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is creating confusion as I am showing these selection in the .NET page, not sure why it is happening? Any help will be highly appreciated. Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 19:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/reply-qSelectionObject-qSelections/m-p/1322182#M28559</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-07-31T19:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: reply.qSelectionObject.qSelections</title>
      <link>https://community.qlik.com/t5/App-Development/reply-qSelectionObject-qSelections/m-p/1822035#M67406</link>
      <description>&lt;LI-CODE lang="markup"&gt;app.createList({


     qDef: {


          qFieldDefs: ["myfieldname"] //set fieldname


     },


     qAutoSortByState: {


          qDisplayNumberOfRows: 1


     },


     qInitialDataFetch: [{


          qHeight : 100, //can set number of rows returned


          qWidth : 1


     }]


}, function(reply) {


     var rows = _.flatten(reply.qListObject.qDataPages[0].qMatrix);


     var selected = rows.filter(function(row) {


          return row.qState === "S";


     });


     console.log(selected);


});&lt;/LI-CODE&gt;&lt;P&gt;To learn more visit &lt;A href="https://techzoan.com/how-to-take-a-screenshot-on-windows-7-windows-8-and-windows-10/" target="_self"&gt;Techzoan&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 09:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/reply-qSelectionObject-qSelections/m-p/1822035#M67406</guid>
      <dc:creator>Eliza_Robux</dc:creator>
      <dc:date>2021-07-14T09:24:01Z</dc:date>
    </item>
  </channel>
</rss>

