<?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: Javascript API for listbox selected text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018098#M641905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone has any suggestions on where to look for help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 18:09:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-01T18:09:12Z</dc:date>
    <item>
      <title>Javascript API for listbox selected text</title>
      <link>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018097#M641904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a JS to select the lang selected in QVW listbox. I fetch the lang code from the browser and want to overwrite the list box selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var thisDoc = Qv.GetCurrentDocument();&lt;/P&gt;&lt;P&gt;var langBox = thisDoc.GetObject("LANG", function(){});&lt;/P&gt;&lt;P&gt;console.log(langBox.Data.Rows.length); --&amp;gt;ES as I set language to spanish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (function(){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('no selection, use browser')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; langBox.Data.ClearSelections();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(langBox.Data.SelectTexts(langCode),10);&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;})();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I get an error that ClearSelections and SelectTexts are undefined functions. Can you suggest me which API to use to do the job?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DV&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 01:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018097#M641904</guid>
      <dc:creator />
      <dc:date>2016-01-30T01:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API for listbox selected text</title>
      <link>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018098#M641905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone has any suggestions on where to look for help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 18:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018098#M641905</guid>
      <dc:creator />
      <dc:date>2016-02-01T18:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API for listbox selected text</title>
      <link>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018099#M641906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked &lt;A href="http://qlikcommunity.s3.amazonaws.com/misc/index.html" title="http://qlikcommunity.s3.amazonaws.com/misc/index.html"&gt;JsDoc Reference - Getting Started&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I do see that ClearSelections and SelectTexts are valid functions. But I do not find these in my QVAjax. I get function undefined error too. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Javascript-API-for-listbox-selected-text/m-p/1018099#M641906</guid>
      <dc:creator />
      <dc:date>2016-02-01T22:00:31Z</dc:date>
    </item>
  </channel>
</rss>

