Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to get url parameter

Hi

my url:

http://qlikastest01/......./agenceUrl.qvw&client=Plugin;agence=362

in my application i need to get the parameter "agence" from the url to set a data/variable selected by default

anybody can help us

thanks

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Assuming the url is in a field named URL:

Subfield(Subfield(Mid(URL, Index(URL, 'agence')), '=', 2), ';', 1)

The outer subfield handles the case where there are more parameters after agence.

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

thank  Jonathan

i found Another way in qlikViewCommunity witch use the "qvp" url

whith a

  • creating a document variable called agenceCode and set to 0
  • creating a macro (vbscript)

sub WhenOpen

     set agenceCode = ActiveDocument.GetVariable("agenceCode")

End Sub

  • trigger onOpen calling macro WhenOpen

the url :

qvp://<myserveur>/..../agenceUrl.qvw?agenceCode=591

    

Not applicable
Author

Hi johathan

Second problem i have

Qvp pseudo url seems not working with ajax  so  getting back to your solution (classic url)

and my question is how to get the active document url ?

thanks