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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
eiconsulting
Partner - Creator II
Partner - Creator II

Passing parameters from one qvw file to another

I saw some posts but none shows a simple way to pass one or two parameters to a new .qvw file you open with a button, such as from a "parent" menu app to a child data-crunching app.

Any hints at where to look for?

Thanks

Flavio

Federico Sason | Emanuele Briscolini
26 Replies
Not applicable

Hi Flavio,

If possible could you please attach the Sample.

Thanks a lot,

Pratul.

eiconsulting
Partner - Creator II
Partner - Creator II
Author

Unfortunately I cannot, tried without success even messages go out very slowly. Must be a question of firewall etc. that I have no time to investigate further. I'll try again as soon as I can.

Sorry

Flavio

Federico Sason | Emanuele Briscolini
Anonymous
Not applicable

Hi Michael, I am trying to reload one qvw file thru another using execute /r and its reloading too BUT I want to pass some variables too using /vVariableName=value into the called file but its not working. Can u pls help me in this.

Not applicable

Hi Mahasweta,

I tried to implement your solution and wonder whether this works also from Accesspoint. How the Second .qvw is opening from first .qvw

did u implement this one?

Regards

Sravan


Mahasweta wrote:
Hi Flavio,
Actually am new to QlickView.
I have the requirement which sounds similar to this.
I have one document where am showing the list of reports to the user, then the user will select the reports as per his wish.
Once he clicks on one report name, that specific document should open up in other window(which is another Qvw document), and again the user should able to come back to the original document to select other document as well.Its something like calling other document from the existing one / navigating from one document to other.
Am i clear here?
Could you please help me out in this ?
Thanks in adavance,
Mahasweta
<div></div>


jagannalla
Partner - Specialist III
Partner - Specialist III

Flavios,

I tried with your code to transfer a variable with data to another qvw file. I written your code in button action but when i'm clicking the button it displays "Fail to open document" in message box. I'm working on QlikView 10.

Capture.PNG

when i click the ok button it shows the error in macro code like this..

Capture.PNG

How can i overcome this...

Not applicable

Hi Flavios,

I used your below code, in that i need to create a new variable in another QVW file through macro code. And should pass the parameter of one QVW to another QVW.

sub runDoc

set Var=ActiveDocument.Variables("Var_A_01")

set App=ActiveDocument.GetApplication

     --->           //HERE I NEED TO CREATE A VARIABLE i.e; "VAR_B_01" in macro code.

set UserFile = App.OpenDoc ("filename.qvw","","")

set v = UserFile.Variables("Var_B_01")

v.SetContent Var.GetContent. String,true

ActiveDocument.ClearAll false

end sub

How it is possible.

Pls share your ideas on this.

Regards

Venkat

neetu_singh
Partner - Creator III
Partner - Creator III

Hi,

Can you share the sample file as i need to pass the selection from one qvw to another qvw.

ali_hijazi
Partner - Master II
Partner - Master II

may you please supply us with  sample documents

I can walk on water when it freezes
Not applicable

Can yo attach sample file?

Not applicable

Can yo attach sample file?