Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nstefaniuk
Creator III
Creator III

Load data in the script with a macro

Hello all.

I am searching for a way to load data from a macro in the script, without using a temporay file.

I have a macro that extracts data from a specific source, unreachable by the standard connectors. The data is stored in a csv file created on the fly. Then I can read the csv file with the standard script.

I am searching for a direct way to add the data in a Qlikview table with the macro, to avoid the temporary csv file. I could loop on data and create an INLINE line for each row, but it would be ugly and I fear that the perfomance would be low.

Thanks a lot for your help on this issue.

10 Replies
nstefaniuk
Creator III
Creator III
Author

Rob,

Sorry for the delay. I work on this subject evening at home, and a bit during the lunch.

The global variables works, true. But it's VERY difficult to do VB under qlikview (switch between Script and Module, no debug, unexpected and random behavior in the call of subs and functions).

Moreover I have got an amazing issue about global variables "locked" that were randomly unavailable in 1 load.

Finally, I have 4 solutions:

- the file created by unsafe macro

- the file created by external batch

- the rows concatenated and splitted by subfield

- use of global Array in VB.

Thanks a lot, I can close this thread