<?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 Button clik selection does not work in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789597#M13993</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a simple code for a button qlik selection that does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I did worng:&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;P&gt;&amp;lt;div id="ListYear" class="btn-group col-lg-9" style="height: 30px; margin-top: 20px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;JS:&lt;/P&gt;&lt;P&gt;//callbacks -- inserted here --&lt;BR /&gt;function ListYear(reply, app){&lt;BR /&gt;$("#ListYear").empty();&lt;BR /&gt;var qObject = reply.qListObject;&lt;BR /&gt;&lt;BR /&gt;//Loop through the data returned&lt;BR /&gt;$.each(qObject.qDataPages[0].qMatrix, function(){&lt;BR /&gt;//get current item&lt;BR /&gt;var item = this[0];&lt;BR /&gt;var selT = "";&lt;BR /&gt;//Check to see if it's selected, if so, set the list item to bold&lt;BR /&gt;if(item.qState =="S"){&lt;BR /&gt;selT = " style=\"background-color: darkblue;\"";&lt;BR /&gt;}&lt;BR /&gt;//append the item to the list&lt;BR /&gt;$("#ListYear").append("&amp;lt;button type=\"checkbox\"" + selT + "class=\"btn btn-primary pull-right\"&amp;gt;" + item.qText + "&amp;lt;/button&amp;gt;");&lt;BR /&gt;});&lt;BR /&gt;//if user click on the button make a selection&lt;BR /&gt;$("#ListYear button").click(function(){&lt;BR /&gt;app.field('Year').selectMatch($(this).text(),false);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Bernhard&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:28:31 GMT</pubDate>
    <dc:creator>bernhard2760</dc:creator>
    <dc:date>2024-11-16T00:28:31Z</dc:date>
    <item>
      <title>Button clik selection does not work</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789597#M13993</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a simple code for a button qlik selection that does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I did worng:&lt;/P&gt;&lt;P&gt;HTML:&lt;/P&gt;&lt;P&gt;&amp;lt;div id="ListYear" class="btn-group col-lg-9" style="height: 30px; margin-top: 20px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;JS:&lt;/P&gt;&lt;P&gt;//callbacks -- inserted here --&lt;BR /&gt;function ListYear(reply, app){&lt;BR /&gt;$("#ListYear").empty();&lt;BR /&gt;var qObject = reply.qListObject;&lt;BR /&gt;&lt;BR /&gt;//Loop through the data returned&lt;BR /&gt;$.each(qObject.qDataPages[0].qMatrix, function(){&lt;BR /&gt;//get current item&lt;BR /&gt;var item = this[0];&lt;BR /&gt;var selT = "";&lt;BR /&gt;//Check to see if it's selected, if so, set the list item to bold&lt;BR /&gt;if(item.qState =="S"){&lt;BR /&gt;selT = " style=\"background-color: darkblue;\"";&lt;BR /&gt;}&lt;BR /&gt;//append the item to the list&lt;BR /&gt;$("#ListYear").append("&amp;lt;button type=\"checkbox\"" + selT + "class=\"btn btn-primary pull-right\"&amp;gt;" + item.qText + "&amp;lt;/button&amp;gt;");&lt;BR /&gt;});&lt;BR /&gt;//if user click on the button make a selection&lt;BR /&gt;$("#ListYear button").click(function(){&lt;BR /&gt;app.field('Year').selectMatch($(this).text(),false);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Bernhard&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789597#M13993</guid>
      <dc:creator>bernhard2760</dc:creator>
      <dc:date>2024-11-16T00:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Button clik selection does not work</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789790#M13995</link>
      <description>&lt;P&gt;Are you trying this via Widget or ?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 20:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789790#M13995</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-03-09T20:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Button clik selection does not work</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789971#M14004</link>
      <description>&lt;P&gt;no I am using it as a mashup. I get an error that text() is not defined.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="console.log(text).png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50829i192C21548D8AE4B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="console.log(text).png" alt="console.log(text).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 10:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Button-clik-selection-does-not-work/m-p/1789971#M14004</guid>
      <dc:creator>bernhard2760</dc:creator>
      <dc:date>2021-03-10T10:59:44Z</dc:date>
    </item>
  </channel>
</rss>

