<?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: 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/1345684#M7726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Erik.&lt;/P&gt;&lt;P&gt;Kindly elaborate the 2nd part of solution "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;you should save &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/EngineAPI/Content/Structs/ListObject.htm?_ga=2.189298283.1155413294.1500448009-390171655.1468488941" rel="nofollow" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #f2f2f2;" target="_blank"&gt;qElemNumber&lt;/A&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; in an attribute instead.&lt;/SPAN&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2017 13:44:09 GMT</pubDate>
    <dc:creator>santlal0589</dc:creator>
    <dc:date>2017-07-21T13:44:09Z</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/1345682#M7724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Below code not working,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value of field is coming but selection is not happening in field Department.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kindly help&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Callback function:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function ListDep(reply, app){&lt;/P&gt;&lt;P&gt;console.info(reply);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$("#ListDep").empty();&lt;/P&gt;&lt;P&gt;var qObject=reply.qListObject;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$.each(qObject.qDataPages[0].qMatrix,function(){&lt;/P&gt;&lt;P&gt;var item=this[0];&lt;/P&gt;&lt;P&gt;var selt="";&lt;/P&gt;&lt;P&gt;if(item.qState == "S"){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currentReg=item.qText;&lt;/P&gt;&lt;P&gt;selt = " style=\"font-weight:bold;\"";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$("#ListDep").append('&amp;lt;li&amp;gt;&amp;lt;a data-select="'+ item.qText+'"&amp;nbsp; href="#"&amp;gt;'+ item.qText + '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;$("#ListDep li").click(function(){&lt;/P&gt;&lt;P&gt;var value = $(this).text(); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.field('Department').selectMatch(value,false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//open apps -- inserted here --&lt;/P&gt;&lt;P&gt;var app = qlik.openApp('Helpdesk Management.qvf', config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//get objects -- inserted here --&lt;/P&gt;&lt;P&gt;app.getObject('QV01','hRZaKk');&lt;/P&gt;&lt;P&gt;//create cubes and lists -- inserted here --&lt;/P&gt;&lt;P&gt;app.createList({&lt;/P&gt;&lt;P&gt;"qFrequencyMode": "V",&lt;/P&gt;&lt;P&gt;"qDef": {&lt;/P&gt;&lt;P&gt;"qFieldDefs": [&lt;/P&gt;&lt;P&gt;"Department"&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"qExpressions": [],&lt;/P&gt;&lt;P&gt;"qInitialDataFetch": [&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"qHeight": 20,&lt;/P&gt;&lt;P&gt;"qWidth": 1&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;"qLibraryId": "RBBKJP"&lt;/P&gt;&lt;P&gt;}, ListDep);&lt;/P&gt;&lt;P&gt;} );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 18:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345682#M7724</guid>
      <dc:creator>santlal0589</dc:creator>
      <dc:date>2017-07-20T18:23: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/1345683#M7725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It might be because you take the text of the li element, which might include whitespace ( check &lt;A href="http://api.jquery.com/text/"&gt;jQuery documentation&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Perhaps you should use the data-select attribute?? Even better is to use the &lt;A href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/APIs/Content/CapabilityAPIs/FieldAPI/selectValues-method.htm"&gt;selectValues &lt;/A&gt;method. In that case you should save &lt;A href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/EngineAPI/Content/Structs/ListObject.htm"&gt;qElemNumber&lt;/A&gt; in an attribute instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 08:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345683#M7725</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-07-21T08:02:27Z</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/1345684#M7726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Erik.&lt;/P&gt;&lt;P&gt;Kindly elaborate the 2nd part of solution "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;you should save &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/EngineAPI/Content/Structs/ListObject.htm?_ga=2.189298283.1155413294.1500448009-390171655.1468488941" rel="nofollow" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; background-color: #f2f2f2;" target="_blank"&gt;qElemNumber&lt;/A&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; in an attribute instead.&lt;/SPAN&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 13:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345684#M7726</guid>
      <dc:creator>santlal0589</dc:creator>
      <dc:date>2017-07-21T13:44:09Z</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/1345685#M7727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Something like this(not actually tested):&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15007292191255457" jivemacro_uid="_15007292191255457" modifiedtitle="true"&gt;
&lt;P&gt;qListObject.qDataPages[0].qMatrix.forEach( function ( row ) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; html += '&amp;lt;li data-value="' + row[0].qElemNumber + '"&amp;gt;' + row[0].qText + '&amp;lt;/li&amp;gt;';&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$("#ListDep li").click( function () {&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt; if ( this.hasAttribute( "data-value" ) ) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&amp;nbsp; var value = parseInt( this.getAttribute( "data-value" ), 10 );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&amp;nbsp; app.field('Department').selectValues( [value], false );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;}}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2017 13:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345685#M7727</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-07-22T13:17:14Z</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/1345686#M7728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;implemented above code , error coming qElemNumber not defined.&lt;/P&gt;&lt;P&gt;Erik can you provide sample Code&amp;nbsp; for LIST creation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2017 09:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345686#M7728</guid>
      <dc:creator>santlal0589</dc:creator>
      <dc:date>2017-07-23T09:19:49Z</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/1345687#M7729</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;Try this one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;In js:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.createList({&lt;/P&gt;&lt;P&gt;"qFrequencyMode": "V",&lt;/P&gt;&lt;P&gt;"qDef": {&lt;/P&gt;&lt;P&gt;"qFieldDefs": [&lt;/P&gt;&lt;P&gt;"YEAR"&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"qExpressions": [],&lt;/P&gt;&lt;P&gt;"qInitialDataFetch": [&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"qHeight": 20,&lt;/P&gt;&lt;P&gt;"qWidth": 1&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;"qLibraryId": null&lt;/P&gt;&lt;P&gt;},showData);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(document).on( "click", "[data-select]", function() {&lt;/P&gt;&lt;P&gt;var value = $(this).data('select');&lt;/P&gt;&lt;P&gt;app.field('&lt;SPAN style="font-size: 13.3333px;"&gt;YEAR&lt;/SPAN&gt;').selectValues([value], false, false);&lt;/P&gt;&lt;P&gt;$('#QV011 .dropdown button').html(value + ' &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;');&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function showData(reply, app){&lt;/P&gt;&lt;P&gt; $('#QV011 .dropdown ul').empty()&lt;/P&gt;&lt;P&gt; $.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) {&lt;/P&gt;&lt;P&gt;if (typeof value[0].qText !== 'undefined') {&lt;/P&gt;&lt;P&gt; $('#QV011 .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;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In Html:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="col-xs-12 col-sm-12 col-md-2 " id="QV011" style="height:55px;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="dropdown" style="padding-top: 10px;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt; Year&lt;/P&gt;&lt;P&gt; &amp;lt;span class="caret"&amp;gt;&amp;lt;/span&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu1"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ul&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Aug 2017 10:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345687#M7729</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-08-06T10:36:45Z</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/1345688#M7730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;showing error at&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345688#M7730</guid>
      <dc:creator>santlal0589</dc:creator>
      <dc:date>2017-08-09T19:47:10Z</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/1345689#M7731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You code&amp;nbsp; works in Qlik sense&amp;nbsp;&amp;nbsp; Desktop&lt;/P&gt;&lt;P&gt;but in case of HUB getting below problem&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173571_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After inspect getting following&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/173573_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 12:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/List-selection-not-working-in-Qliksense-Mashup/m-p/1345689#M7731</guid>
      <dc:creator>santlal0589</dc:creator>
      <dc:date>2017-08-16T12:35:10Z</dc:date>
    </item>
  </channel>
</rss>

