Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Javascript API for listbox selected text

Hello,

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.

var thisDoc = Qv.GetCurrentDocument();

var langBox = thisDoc.GetObject("LANG", function(){});

console.log(langBox.Data.Rows.length); -->ES as I set language to spanish

  (function(){

      console.log('no selection, use browser')

      langBox.Data.ClearSelections();

      setTimeout(langBox.Data.SelectTexts(langCode),10);   

})();


I get an error that ClearSelections and SelectTexts are undefined functions. Can you suggest me which API to use to do the job?


Thanks

DV


2 Replies
Not applicable

Re: Javascript API for listbox selected text

Anyone has any suggestions on where to look for help?

Not applicable

Re: Javascript API for listbox selected text

I checked JsDoc Reference - Getting Started

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.

Community Browser