Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
richnorris
Creator II
Creator II

Passing a command line variable?

I cant seem to find any good documentation on passing a parameter from command line execution of a .qvw. I want to call a vbscript which will generate a certain parameter number. I then want to call and reload a script passing in this parameter.

From the looks of it, the syntax would be something like

"C:\qvDirectory\qv.exe" /r /vParameterNum=1 "C:\FeedMeParameter.qvw"

Only when I do this, the document refreshes, but I cant see any evidence of ParameterNum anywhere? Anyone know where I'm going wrong with this? Thanks!

1 Solution

Accepted Solutions
Not applicable

Hi Rich, you have to create the variable in the document before passing a value using the command line. In this case, you want to create a variable named ParameterNum in the document. After you execute "C:\qvDirectory\qv.exe" /r /vParameterNum=1 "C:\FeedMeParameter.qvw" you can expect the value of the variable update to 1.

Regards

View solution in original post

3 Replies
Not applicable

Hi Rich, you have to create the variable in the document before passing a value using the command line. In this case, you want to create a variable named ParameterNum in the document. After you execute "C:\qvDirectory\qv.exe" /r /vParameterNum=1 "C:\FeedMeParameter.qvw" you can expect the value of the variable update to 1.

Regards

Not applicable

Hi Rich, you have to create the variable in the document before passing a value using the command line. In this case, you want to create a variable named ParameterNum in the document. After you execute "C:\qvDirectory\qv.exe" /r /vParameterNum=1 "C:\FeedMeParameter.qvw" you can expect the value of the variable update to 1.

Regards

richnorris
Creator II
Creator II
Author

Ah, thanks Ivan! In retrospect, fairly obvious!