3 Replies Latest reply: Jun 20, 2017 4:05 AM by Erik Wetterberg RSS

    Qlik extension tutorial question

    Marcin Sworzynski

      Dear Qlik Community

      I'm trying to build extension using official tutorial. In the first step there's a code to detect if element exists or not.

      var id = layout.qInfo.qId + '_helloworld'; 
      var $helloWorld = $( '#' + id ); 
      if ( !$helloWorld.length ) { console.log( 'No element found with the given Id'); 
       else {  console.log( 'Found an element with the given Id, so just change it' ); }

      These piece of code doesn't work. I cannot trace why ... Also why at the end of layout.qInfo.qId is added string '_helloworld' ?


      Thanks in advance