Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
dradoikov
Partner
Partner

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
marcus_sommer
MVP & Luminary
MVP & Luminary

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