2 Replies Latest reply: Feb 1, 2016 5:00 PM by Dhara Vaishnav RSS

    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