Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Macro Issue ??!

hi guys.
I have a problem in QlikView and I do not understand or it may come from.
I created a macro to export fields in a csv file.
I did several test on my test server and my production server, here are the results:

Test server:

in heavy client: it works
in heavy client web view: it does not work
on the portal: it works

Production server:

In heavy client: it works
in heavy client web view: it does not work
on the portal does not work

I have verified that this is the same config between the two servers, and also that my macro is compatible ajax /



an idea?

sub ExtractCSV

set cs = ActiveDocument.GetSheetObject("CH44")

cs.export "\\10.200.132.32\partage\Marketing Clients\"&ActiveDocument.Variables("Event_ID").GetContent.String&".csv" , ","

end sub

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I found the problem dudes.

i juste upgrade QV 11282 to 11440.

and now it works perfectly

thanks

View solution in original post

14 Replies
jerrysvensson
Partner - Specialist II
Partner - Specialist II

Macros in Webview runs serverside.

Make sure that the QlikView service account has access to :\\10.200.132.32\partage\Marketing

Anonymous
Not applicable
Author

the same :

sub ExtractCSV

set cs = ActiveDocument.GetSheetObject("CH44")

cs.ServerSideExportEx "\\10.200.132.32\partage\Marketing Clients\"&ActiveDocument.Variables("Event_ID").GetContent.String&".csv" , ","

end sub

jerrysvensson
Partner - Specialist II
Partner - Specialist II

Yes.

But if you log on to the QVS using the service account, do you have write access to share?

Anonymous
Not applicable
Author

and my QVSVC has the write to access & share to the target folder

jerrysvensson
Partner - Specialist II
Partner - Specialist II

Have you checked the setting "Allow unsafe macros" on the server?

It should be enabled.

Anonymous
Not applicable
Author

option enabled.

jerrysvensson
Partner - Specialist II
Partner - Specialist II

Have you looked at trusted sites settings in Internet Explorer?

Sometimes you need to add the QVS to the clients trusted sites.

Also try adding \\10.200.132.32 to trusted sites.

Anonymous
Not applicable
Author

The macro worked well under IE, the problem is i'm under firefox.

jerrysvensson
Partner - Specialist II
Partner - Specialist II

Are you running Ajax in both IE and FF?