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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

82 Using Macros in QV Documents on the<br />

QV-Server<br />

82.1 Macros on <strong>QlikView</strong> Server<br />

<strong>QlikView</strong> Server can execute macros in <strong>QlikView</strong> documents. Due to client-server environment some considerations<br />

must be taken when using macros.<br />

When using <strong>QlikView</strong> as a client all macros are executed in the client. In this case more operations can be<br />

permitted.<br />

Note!<br />

Using macros extensively may lead to potential problems with macros executing in parallel instead of as<br />

sequentially, as a designer might have intended/assumed.<br />

82.2 Macro functionality limitations<br />

Functionality that will normally work well in macros in the <strong>QlikView</strong> Server environment with any type of<br />

client is:<br />

l Logical operations such as clearing or selecting in fields<br />

l Operations related to variables<br />

The following types of functionality are not to be used in the <strong>QlikView</strong> Server environment , as they may<br />

cause unexpected results:<br />

l Layout operations acting on the properties of sheets and sheet objects via SetProperties<br />

l Operations changing document or user settings<br />

l All operations related to the script, including Reload<br />

l Data reduction operations, e.g. ReduceData<br />

l Operations such as Save and Open document<br />

Note!<br />

Layout operations acting on the properties of Server objects are supported.<br />

82.3 Macro trigger limitations<br />

The following triggers will work as usual in the <strong>QlikView</strong> Server environment regardless of which client is<br />

used:<br />

Document.OnAnySelect<br />

Field.OnSelect<br />

Field.OnChange<br />

Field.OnUnlock<br />

Document.OnPressMacroButton<br />

Variable.OnChange<br />

Variable.OnInput<br />

The following triggers are not to be used in the <strong>QlikView</strong> Server environment, since they lack meaning or<br />

may cause unexpected results:<br />

OnPostReduceData<br />

OnPostReload<br />

883

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

Saved successfully!

Ooh no, something went wrong!