Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
qliksus
Specialist II
Specialist II

Setting a variable value on launch of a hyperlink

hi all,

i am  launching a URL from the straight table box now when i click the hyperlink i want the variable value to be changed  i have to do some actions

on the click of the hyperlink for this .so  how can i track the click in my hyperlink

24 Replies
Not applicable

Check out this post on field triggers, I think it will point you in the

right direction...

http://community.qlik.com/message/101446#101446

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   I dont know is this a possible solution or not, but you can try if you feel so.

   Create a seperate field in your table which will have the URL as the value.

   So you can place a trigger on select of the value from this field.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
IAMDV
Luminary Alumni
Luminary Alumni

Hi Mate,

Like I had mentioned in my first post of using Field Selection Even Trigger. Here is the basic example... I had not incremented the vTest value but if this idea works then you increment the vTest variable everytime the user clicks on the Chart.

Cheers - DV

IAMDV
Luminary Alumni
Luminary Alumni

Just adding to my previous post. You can also use the same logic to create the straight table and it works fine. I hope this helps!

Cheers - DV

qliksus
Specialist II
Specialist II
Author

thanks for the reply kaushik even if i do that when i change the representation to hyperlink

then the field will not be selected even if i click . it will show me some approval message for the link we have created

in the script  that's y i am asking to track the click on the hyperlink 

qliksus
Specialist II
Specialist II
Author

hi DV,

thanks for the reply but i dont want this to happen on the selection of some field in your solution when u select a

field some link will be launched and then the variable will be set If you take the same field in straight table

and change the representation to link then u cant select that field that's the problem .

qliksus
Specialist II
Specialist II
Author

Hi short,

thanks for  the reply ur link is quite helpful but cant solve my problem refer my previous post for that

qliksus
Specialist II
Specialist II
Author

guys any update

Not applicable

Hi,

You can set a macro to change the variable on the event of "OnAnyselect" of the document properties as follows:

Settings - > Document Properties -> Macros (tab)

Under "Document Event Triggers" you set a macro to change the variable value on the event trigger of "OnAnySelect"

In the macro you should verify whether the active chart is the one you wanted (that have links to click) otherwise dont set the variable.

It must solve your problem.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   I hope you want something like this.

   Have a look at the attachment.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!