<?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 List selection not working in Qliksense Mashup in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1666644#M12147</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to Mashup and trying to create a list dropdown but not working. All the other components work well except the dropdown showing "Drag object to place in the layout" in Dev-hub.&lt;/P&gt;&lt;P&gt;Any advise? (Thanks in advance)&lt;/P&gt;&lt;P&gt;Here is what I did :&lt;/P&gt;&lt;P&gt;1. Add List (SITE and Customer) below auto populated in js&lt;/P&gt;&lt;P&gt;app.createList({"qFrequencyMode": "V","qDef": {"qFieldDefs": ["SITE"]},&lt;BR /&gt;"qExpressions": [],"qInitialDataFetch": [{"qHeight": 20,"qWidth": 1}],"qLibraryId": null},SiteList);&lt;BR /&gt;&lt;BR /&gt;app.createList({"qFrequencyMode": "V","qDef": {"qFieldDefs": ["CUSTOMER"]},&lt;BR /&gt;"qExpressions": [],"qInitialDataFetch": [{"qHeight": 20,"qWidth": 1}],"qLibraryId": null},CustomerList);&lt;/P&gt;&lt;P&gt;2. Callbacks in js&lt;/P&gt;&lt;P&gt;function SiteList(reply, app){$('#QV01.dropdown ul').empty()&lt;BR /&gt;$.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) {&lt;BR /&gt;if (typeof value[0].qText !== 'undefined') {&lt;BR /&gt;$('#QV01 .dropdown ul').append('&amp;lt;li&amp;gt;&amp;lt;a data-select="'+ value[0].qText+'" href="#"&amp;gt;'+ value[0].qText+'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&lt;BR /&gt;}});}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function CustomerList(reply, app){$('#QV02.dropdown ul').empty()&lt;BR /&gt;$.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) {&lt;BR /&gt;if (typeof value[0].qText !== 'undefined') {&lt;BR /&gt;$('#QV02 .dropdown ul').append('&amp;lt;li&amp;gt;&amp;lt;a data-select="'+ value[0].qText+'" href="#"&amp;gt;'+ value[0].qText+'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&lt;BR /&gt;}});}&lt;/P&gt;&lt;P&gt;3. Body on click in js&lt;/P&gt;&lt;P&gt;$('body').on( "click", "[data-select]", function() {&lt;BR /&gt;var value = $(this).data('select');&lt;BR /&gt;app.field('SITE').selectValues([value], false, false);&lt;BR /&gt;$('#QV01 .dropdown button').html(value + ' &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');});&lt;/P&gt;&lt;P&gt;$('body').on( "click", "[data-select]", function() {&lt;BR /&gt;var value = $(this).data('select');&lt;BR /&gt;app.field('CUSTOMER').selectValues([value], false, false);&lt;BR /&gt;$('#QV02 .dropdown button').html(value + ' &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');});&lt;/P&gt;&lt;P&gt;4. Added Clear All in js&lt;/P&gt;&lt;P&gt;$('#QV01 .dropdown button').html('Select Site &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');&lt;BR /&gt;$('#QV02 .dropdown button').html('Select Customer &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');&lt;/P&gt;&lt;P&gt;5. In HTML&lt;/P&gt;&lt;P&gt;&amp;lt;section class="content-section-a"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;div class="container"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="row"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="col-lg-4 qvplaceholder" id="QV06"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="col-lg-4 qvplaceholder" id="QV01"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="dropdown"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Site&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu1"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="col-lg-4 qvplaceholder" id="QV02"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="dropdown"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Site&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu2"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/section&amp;gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:33:15 GMT</pubDate>
    <dc:creator>calvin_wee</dc:creator>
    <dc:date>2024-11-16T03:33:15Z</dc:date>
    <item>
      <title>List selection not working in Qliksense Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1666644#M12147</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to Mashup and trying to create a list dropdown but not working. All the other components work well except the dropdown showing "Drag object to place in the layout" in Dev-hub.&lt;/P&gt;&lt;P&gt;Any advise? (Thanks in advance)&lt;/P&gt;&lt;P&gt;Here is what I did :&lt;/P&gt;&lt;P&gt;1. Add List (SITE and Customer) below auto populated in js&lt;/P&gt;&lt;P&gt;app.createList({"qFrequencyMode": "V","qDef": {"qFieldDefs": ["SITE"]},&lt;BR /&gt;"qExpressions": [],"qInitialDataFetch": [{"qHeight": 20,"qWidth": 1}],"qLibraryId": null},SiteList);&lt;BR /&gt;&lt;BR /&gt;app.createList({"qFrequencyMode": "V","qDef": {"qFieldDefs": ["CUSTOMER"]},&lt;BR /&gt;"qExpressions": [],"qInitialDataFetch": [{"qHeight": 20,"qWidth": 1}],"qLibraryId": null},CustomerList);&lt;/P&gt;&lt;P&gt;2. Callbacks in js&lt;/P&gt;&lt;P&gt;function SiteList(reply, app){$('#QV01.dropdown ul').empty()&lt;BR /&gt;$.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) {&lt;BR /&gt;if (typeof value[0].qText !== 'undefined') {&lt;BR /&gt;$('#QV01 .dropdown ul').append('&amp;lt;li&amp;gt;&amp;lt;a data-select="'+ value[0].qText+'" href="#"&amp;gt;'+ value[0].qText+'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&lt;BR /&gt;}});}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function CustomerList(reply, app){$('#QV02.dropdown ul').empty()&lt;BR /&gt;$.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) {&lt;BR /&gt;if (typeof value[0].qText !== 'undefined') {&lt;BR /&gt;$('#QV02 .dropdown ul').append('&amp;lt;li&amp;gt;&amp;lt;a data-select="'+ value[0].qText+'" href="#"&amp;gt;'+ value[0].qText+'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&lt;BR /&gt;}});}&lt;/P&gt;&lt;P&gt;3. Body on click in js&lt;/P&gt;&lt;P&gt;$('body').on( "click", "[data-select]", function() {&lt;BR /&gt;var value = $(this).data('select');&lt;BR /&gt;app.field('SITE').selectValues([value], false, false);&lt;BR /&gt;$('#QV01 .dropdown button').html(value + ' &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');});&lt;/P&gt;&lt;P&gt;$('body').on( "click", "[data-select]", function() {&lt;BR /&gt;var value = $(this).data('select');&lt;BR /&gt;app.field('CUSTOMER').selectValues([value], false, false);&lt;BR /&gt;$('#QV02 .dropdown button').html(value + ' &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');});&lt;/P&gt;&lt;P&gt;4. Added Clear All in js&lt;/P&gt;&lt;P&gt;$('#QV01 .dropdown button').html('Select Site &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');&lt;BR /&gt;$('#QV02 .dropdown button').html('Select Customer &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');&lt;/P&gt;&lt;P&gt;5. In HTML&lt;/P&gt;&lt;P&gt;&amp;lt;section class="content-section-a"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;div class="container"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="row"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="col-lg-4 qvplaceholder" id="QV06"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="col-lg-4 qvplaceholder" id="QV01"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="dropdown"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Site&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu1"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="col-lg-4 qvplaceholder" id="QV02"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="dropdown"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Site&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu2"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/section&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1666644#M12147</guid>
      <dc:creator>calvin_wee</dc:creator>
      <dc:date>2024-11-16T03:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: List selection not working in Qliksense Mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1667569#M12172</link>
      <description>&lt;P&gt;We managed to get it up and running but the effect is not good and thus dropped.&lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 07:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1667569#M12172</guid>
      <dc:creator>calvin_wee</dc:creator>
      <dc:date>2020-01-21T07:58:07Z</dc:date>
    </item>
  </channel>
</rss>

