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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to open QV application in new window using macro?

Hello All,

I would like to write a macro that opens an existing QV application in new window (desktop client v. 8.5).

Macro will be launched by pressing a button from based QV application.

Thanks in advance for your help.

Kind regards,

JTPro

7 Replies
Not applicable
Author

Anyone? Please, help me to solve my issue.

Kind regards,

JTPro

disqr_rm
Partner - Specialist III
Partner - Specialist III

Why macro? Can you use a button with "Launch" instead?

Try with Launch and put path and qv.exe on the Application field under Launch tab and put path and name of your QVW document in the parameters. This will open a new QV instance and start your QVW document in new window.

By the way, did you hear about document chaining in V9? It's a great feature.

Not applicable
Author

Hi,

First of all, thanks a lot for your response.

I agree with you, I can use launch approach. But I don't know how to pass selection between two documents. Any idea?

I know, that QlikTech developed such a functionality in v9, but right now I can't move to this version.

Thanks in advance for your help.

Kind regards,

JTPro

disqr_rm
Partner - Specialist III
Partner - Specialist III

You can define a variable in the target document and from your source document ,when you launch the second document, in the command line parameters you can use /v VARNAME=VARVALUE. Then in target document you can check the variable value with a marco "On Open" and select the fields accordingly. I can prepare an example if you need.

disqr_rm
Partner - Specialist III
Partner - Specialist III

Enclosed is an example. Have a look.

Not applicable
Author

Thank you Rakesh very much for your help.

Have a nice weekend.

Kind regards,

JTPro

jasonseril
Creator
Creator

Hello Rakesh,

I tried the application and there seems to be a problem. It won't work when the parameter "

=



'a2.qvw /vvInput=' & maxstring(Material)



" is in the Parameters textbox, it worked when it is typed in the Filename textbox. Another problem is when the application is saved and opened again, the parameters typed in the Filename textbox is gone. What do you think is the problem? Thanks