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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is there any possibility to call a Macro in the ‘Edit Script’?

I have an application which uses some Macros to export sheet objects into Qvds when OnPostReload… In the charts(Straight Tables) I have used some set analysis expressions and need to export these values into qvds… As I know set analysis expressions cannot be done in the script.. (Or is there any possibility?)

When I deploy the application in qlikview server and use scheduled reloads, macros not working properly…

Therefore I wanted to know that is there any possibility to call the macros in the script?

Please help me on this issue

Thanks and regards

Nilupa



1 Solution

Accepted Solutions
vgutkovsky
Master II
Master II

Nilupa,

Yes, you can use macros in the script. The syntax for that would be something like:


Sub macroname ()
insert code here....
End sub
Call macroname()


Note there are no semicolons here.

But I'm not sure this would be appropriate in your case. How can you export sheet objects before the document finishes reloading?

View solution in original post

3 Replies
vgutkovsky
Master II
Master II

Nilupa,

Yes, you can use macros in the script. The syntax for that would be something like:


Sub macroname ()
insert code here....
End sub
Call macroname()


Note there are no semicolons here.

But I'm not sure this would be appropriate in your case. How can you export sheet objects before the document finishes reloading?

Not applicable
Author

Hi Vlad,

Thanks for your reply... Yes, it seems I can't do like that as you have mentioned...

Do you have any idea how can i achieve this..?

Thanks,

Nilupa

vgutkovsky
Master II
Master II

Take a look at Rob's post here, you may find it helpful: http://community.qlik.com/forums/t/17331.aspx

Regards,