Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

VBScript Open Window

I'm using ActiveDocument.GetApplication.Launch to open a website when an ID field is clicked in Qlikview. The site show deatials about the ID. My problem is a new window is opened everytime. I'm trying to figure out if there's some vbscript I could use to make sure the same window is used.

7 Replies
Not applicable
Author

I found the following code. Still not sure how to open in same window but seems more promising:

strLink= "google.com"
Set objIExplorer = CreateObject("internetexplorer.application")
objIExplorer.visible = True
objIExplorer
objIExplorer.navigate strLink
Set objIExplorer = Nothing

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Why not do the same using an Action? It's better than Marco from many perspectives, and you can simple check the checkbox "Open in the same window".

Not applicable
Author

Didn't even know about the "Open URL" action. Thanks Oleg.

Not applicable
Author

Quick question though. Does this mean open in the window that QV is currently running in?

I fire the action when an ID is clicked and a different site shows details about that id.. I want to keep QV open but not have a new window every time an ID is clicked.

Not applicable
Author

Turns out Open URL doesn't work for On Select.

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

yes, I just found out myself... that's a bummer... back to VBScript... Sorry about that!

pkkushwaha
Partner - Contributor II
Partner - Contributor II

Hi All,

i want to write a bat who can create new instance. below attached code is .vbs code.

once i run below  vbs script it tookover existing qv instance.

set Qv = CreateObject("QlikTech.QlikView")
set shell = createobject("wscript.shell")

success = shell.appactivate("Qlikview - [Start Page]")
Set docObj = Qv.OpenDoc("E:\QlikView\test.qvw,3,false)

docObj.Reload
docObj.Save
Set docObj= Nothing
Set Qv= Nothing

My problem is  is there any way to open new instance for any reload.