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: 
Not applicable

open in new window

hi all,

below is the macro code using for passing the values from one qvw file to another qvw file. Now in this the new qvw file is opening in same window but it should open in new window.

what should i change in code ?

Sub RunDOc

set var1 =ActiveDocument.Variables("vConDefectNameShort")

set App=ActiveDocument.GetApplication

set UserFile = App.OpenDoc ("ConcentrationDiagrams.qvw","","")  // it should open in new window not in the same application

UserFile.CreateVariable "vConDefectNameShort"

set v1 = UserFile.Variables("vConDefectNameShort")

v1.SetContent var1.GetContent.String,true

ActiveDocument.CloseDoc

End Sub


Thanks in advance.

3 Replies
Not applicable
Author

Still waiting for response

Thanks in advance.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Have you tried doing this with Actions instead?

Does this need to run on the server, and if so, which clients - IE or Ajax?

-Rob

Not applicable
Author

Hi Rob,

thanks for reply.

Currently i am working in desktop application not required in server.

when i click the macro action in button it is opening the qvw file in the same window , so it is not performing the triggers of On-open actions.

I think if it is opened in new window the the triggers will work fine (not sure whether i am correct).

what to change in the code to open in new window ?

Thanks