Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
Not applicable

QV /v - variable value containing white space?

Hi

Is it possible to specify a variable containing a whitespace?

Ex:

  • qv.exe /r /vMyvar=123 abc.qvw     //OK
  • qv.exe /r /vMyvar='123' abc.qvw   //OK
  • qv.exe /r /vMyvar='1 2' abc.qvw    //FAILS
  • qv.exe /r /vMyvar="1 2" abc.qvw   //FAILS
  • qv.exe /r /vMyvar=´1 2´ abc.qvw   //FAILS

By the way, I am trying to use Myvar in the script. To reference it I use $(Myvar)?

Kind regards

OS

Tags (3)
4 Replies
luciancotea
Valued Contributor

Re: QV /v - variable value containing white space?

If it is a string, use '$(Myvar)' in script

Not applicable

Re: QV /v - variable value containing white space?

Try

qv "/vMyvar=1 2"

as an ultimate solution!

Re: QV /v - variable value containing white space?

qv.exe /r "/vMyvar=1 2" abc.qvw

Not applicable

Re: QV /v - variable value containing white space?

Thx Bill, it works.

Strange syntax though:)