21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

79 Internal Macro Interpreter<br />

<strong>QlikView</strong> objects are accessible via automation from inside <strong>QlikView</strong> by means of the built-in scripting<br />

engine.<br />

79.1 Invoking Macros<br />

Macros written in VBScript or JScript, inside a <strong>QlikView</strong> document can be invoked in a number of different<br />

ways:<br />

Document Events:<br />

l A macro can be run after opening a <strong>QlikView</strong> document.<br />

l A macro can be run after script re-execution.<br />

l A macro can be run after the Reduce Data command.<br />

l A macro can be run after a selection in any field in a document.<br />

l A macro can be run when the value of any variable changes in a document.<br />

Macros that are invoked from document events are created from the Document Properties: Triggers (page<br />

425) page.<br />

Sheet Events:<br />

l A macro can be run after a sheet is activated.<br />

l A macro can be run when a sheet is deactivated.<br />

Macros that are invoked from sheet events are created from the Sheet Properties: Triggers (page 452) page.<br />

Sheet Object Events:<br />

l A macro can be run after a sheet object is activated.<br />

l A macro can be run when a sheet object is deactivated.<br />

Macros that are invoked from sheet object events are created from the Sheet Properties: Triggers (page 452)<br />

page.<br />

Button Events:<br />

l A button can be defined as a macro button.<br />

A macro that is invoked from a macro button event is created from the button's Actions (page 532) page.<br />

Field Events:<br />

l A macro can be run when a selection has been made in a specified field, see Fields (page 169).<br />

l A macro can be run when a selection is made in any field which is logically associated to a specified<br />

field.<br />

l A macro can be run when selections are locked in a specific field.<br />

l A macro can be run when selections are unlocked in a specific field.<br />

Macros that are invoked from field events are created from the Document Properties: Triggers (page 425)<br />

page.<br />

873

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!