0 Replies Latest reply: Jun 17, 2015 4:22 AM by Eric Tay RSS

    Qlik Sense Workbench - Get Current Selection

    Eric Tay

      Hi Qlik Sense Gurus,

       

      I am a newbie to Qlik Sense Workbench.  I would like to create a button using Qlik Sense Workbench template and this button will redirect users to a PHP website and supplies the PHP website with items selected in Qlik Sense application.

       

      I can create the button to redirect users to a PHP website, but I am still unable to supplies the PHP website with items selected in Qlik Sense Application.  Below is my .js codes for creating the button.

       

      Appreciate if you can teach me how to get current selected Year and pass the value to the $element.html.

       

      define( [

      ],

      function ( ) {   

          return {

                paint: function ($element) {

               
              $element.html('<form action="http://localhost/test.php"><input name="Year" value="<selected year values of the year column in Qlik Sense Application>" type="hidden"><button type="submit">Go to Google</button></form>');
                 

              }

          };

       

      } );