Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Author

Anyone has any suggestions on where to look for help?

Not applicable
Author

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.