Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Anyone? Please, help me to solve my issue.
Kind regards,
JTPro
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.
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
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.
Enclosed is an example. Have a look.
Thank you Rakesh very much for your help.
Have a nice weekend.
Kind regards,
JTPro
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