Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

Create a macro button for reloading the data

Dear all,

I would live to create a button in my Qlikview document that reloads the data. Therefore I have entered the following code in my script editor:

sub ReloadSave

ActiveDocument.Reload

end sub

After this I assigned a button with a macro (action) and the macroname:

ReloadSave()

It doesn't work however. Any thoughts on where I go wrong?

3 Replies
MVP
MVP

Re: Create a macro button for reloading the data

There is a action which can be used to reload, do you really want to use a Macro here?

Capture.PNG

beck110979
Valued Contributor III

Re: Create a macro button for reloading the data

Hi

Marc for your issue, you can use the macro as well:

Sub AutoReload

ActiveDocument.Reload

End Sub

and you can add: AutoReload under your Button: Action and add Macroname: AutoReload

i hope that helps

beck

Re: Create a macro button for reloading the data

Your macro-name is only ReloadSave and not ReloadSave() - but take a look on Sunny's suggestion and better use an action for this task.


- Marcus