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

Createing a QVD from a chart

Hi

I have a pivot chart that I want to store data from.

I want to store them into a QVD every night.

I found a tread that stated:

Create a macro with

Set obj=ActiveDocument.GetSheetObject(CH18)

obj.ExportEX "C:\test.qvd", 4

So I tried by ctrl+m and inserted the above code.

But get the error "Object required: 'obj'"

I have not tried macro before, so I`m way out of my comfort zone.

BR

DJ

1 Solution

Accepted Solutions
Not applicable
Author

Well you can use the OnPostReload document trigger to run the created macro.

Is that suitable in your case ?

View solution in original post

5 Replies
Not applicable
Author

Hi Dan,

You just need to enclose the object ID within double quotes like this:

Set obj=ActiveDocument.GetSheetObject("CH18")

and the qvd will be created.

Anonymous
Not applicable
Author

HI JP

Will the macro start all by it self if a create a task and schedule it to say 00:10?

BR

DJ

Not applicable
Author

Well you can use the OnPostReload document trigger to run the created macro.

Is that suitable in your case ?

Anonymous
Not applicable
Author

Thanks for your input. Works like a charm.

BR

DJ

dmohanty
Partner - Specialist
Partner - Specialist

Hi Dan,

We have a similar requirement. It didn't work like a charm for us

Are you running the QVW with OnPostReload, manually or through Publisher/QMC?

Seems Publisher is not supporting the OnPostReload. I am able to store the Chart data into QVD, if I run the QVW manually with OnPostReload trigger, but QVD is not created when QVW is ran on QMC.

Please suggest.