Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Tay
Employee
Employee

Qlik Sense Workbench - Get Current Selection

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>');
           

        }

    };

} );

0 Replies