Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikview979
Specialist
Specialist

BUTTONS

Hi experts,

I have opened  two QVW's in two files. now i want perform some action using button. if i can do any selection in one QVW file through button then the result will happen in another QVW file is it possible ? if possible how to send the variables one QVW to another QVW through button ?

6 Replies
mrossoit
Creator II
Creator II

Hi,

you have to use macro:

sub openQvw

    set App = ActiveDocument.GetApplication

    set file2 = App.OpenDoc(second_file_name, "", "")

    set vPass1 = file2.Variables("v1")

    vPass1.SetContent "Value1",true

end sub

Obviously in the second qvw you want to open from the first, there must be defined a variable (v1) for every parameter you want to pass.

Hope it helps

Regards

MR

Bill_Britt
Former Employee
Former Employee

Hi,

Do a search for Document Chaining.

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
qlikview979
Specialist
Specialist
Author

Hi

thanks for sharp reply

can you explain with one example ?

Not applicable

Have you tried this:

Create a button

go to Action tab

Add Action

Choose External from the Action type Window

Choose Open QlikView Document from the Action Window

Specify the document that you want to link to

Mark the check box Transfer State

This is all yo need I think.

mrossoit
Creator II
Creator II

Regards

MR

mrossoit
Creator II
Creator II

If you want to automatically change selections on your second qvw you could create an event on a field resident in your first qvw.

The event fill a variable with the concatenation of values you selected.

Another event on the first qvw executes the macro when that variable has changed.

Finally an event on the second qvw on variable v1 changing, makes a selection on the same field using concatenated values written in v1.

Regards

MR