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: 
christophebrault
Specialist
Specialist

String variable in URL ?

Hi,

In my App, i want to scan a website.

I pass variables in the URL with for each instruction and for to.

I have a field with data like :'LU0123437'

I can't get this value in a variable and make it work in the URL. When I take only '0123437' it works fine but with 'LU0123437', no.

Any idea ?

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
3 Replies
sushil353
Master II
Master II

Hi ,

field name is FIELD which contains data like LU0123437

then create a variable and apply =http://www.xyz.&getfieldselections(FIELD)&

using getfieldselection function u can get the value what ever selected and then u can call the variable

using any button, trigger or macro.

Hope it will help u

Thanks

christophebrault
Specialist
Specialist
Author

That's not exactly my problem i think.

My problem is in the script

A=;

for each A in Fieldvaluelist('MyFIELD')

let vURL='www.mywebsite'&$(A)&'endoftheURL'

LOAD * FROM $(vURL)

when MyFIELD begin with letters, my variable A return '' in the URL and make an error while loading...

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
pho3nix90
Creator II
Creator II

This is an old post, but still unanswered. So here is an answer.

The below is referring to the variable as a numerical value. Surround it by quotes.

let vURL='www.mywebsite'&$(A)&'endoftheURL'

Like this

let vURL='www.mywebsite$(A)endoftheURL'