Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

dradoikov
New Contributor III

Running macro function in the loading script

Hello,


I have got the following problem: I want to export tables from the loading script and I am using macro function in the module:

function Export()

set qv = CreateObject("QlikTech.QlikView")

set doc = qv.OpenDoc("C:\Users\username\Desktop\ARP.qvw")

set chart = doc.GetSheetObject("CH09")

    chart.Export "D:\Data.txt", ", "

'doc.CloseDoc

'qv.Quit

end function

I cannot call it from the loading script.

Any advice is welcome.

Regards,

Daniel

1 Reply
MVP & Luminary
MVP & Luminary

Re: Running macro function in the loading script

It's not possible on this way. You will need to do it from outside of a load, see also: Macro running through load script or you could use a store-statement to an existing table to get the txt-file.

- Marcus