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.

This situation should be avoided, which leads to the conclusion that loosely coupled in combination with<br />

non-hierarchical dimensions should be used with care.<br />

Note!<br />

The Total Mode (as set on the chart’s Expressions page) is set to Expression Total (default) in all the cases<br />

above. If the Sum of Rows mode is used there is no difference between the two cases.<br />

14.14 Alternate States<br />

Description<br />

<strong>QlikView</strong> allows users to detach a chart from the underlying data model. When a chart is detached, the<br />

object no longer responds to user selections. When the user re-attaches the object, it instantly updates to<br />

reflect the current state of the selections.<br />

Alternate States are similar to this. The <strong>QlikView</strong> developer can create multiple states within a <strong>QlikView</strong><br />

document and apply these states to specific objects within the document. The end-user can create copies of<br />

these objects (server objects) and then put those objects into different states.<br />

The most important difference between Detach and Alternate States is that ALL objects in a given state will<br />

respond to user selections made in that state. Objects in a given state are not affected by user selections in<br />

the other states.<br />

Alternate States are not accessible in the load script. They are a UI feature.<br />

The developer invokes the Alternate States dialog from Alternate States... button on the Document Properties:<br />

General tab. The <strong>QlikView</strong> developer can create any number of states within the <strong>QlikView</strong> document<br />

and provides a name for each state created. Once Alternate States functionality is enabled, the<br />

<strong>QlikView</strong> developer can also create new states from within screen objects. End-users who access <strong>QlikView</strong><br />

documents from a <strong>QlikView</strong> Server can make use of Alternate States but cannot create Alternate States.<br />

Note!<br />

Alternates States functionality is enabled by a <strong>QlikView</strong> developer and should be used with caution as it<br />

can cause great confusion with end-users.<br />

State Identifiers<br />

The state names created by the <strong>QlikView</strong> developer are known as State Identifiers. There are two states that<br />

are always available; default state and inherited. The default state is the state where most <strong>QlikView</strong> usage<br />

occurs and is represented by $. The <strong>QlikView</strong> document is always in the default state. Objects can inherit<br />

states from higher level objects, such as sheets and containers. This means that states are inherited as such:<br />

Document - Sheet - Sheet Objects. The sheets and sheet objects are always in the inherited state unless overridden<br />

by the <strong>QlikView</strong> developer.<br />

Logical Behavior when Using Alternate States<br />

Pressing the Clear button affects all states. However, a menu item has been added to the Clear button dropdown<br />

menu that allows a user clear the selections of a specific state.<br />

Pressing the Back and Forward buttons affects all states. There is no mechanism to move back and forward<br />

through specific states.<br />

Pressing the Lock and Unlock buttons affects all states. It is not possible to lock and unlock specific states<br />

with these buttons. It is possible to lock specific fields in states by using the right-click menu on list boxes<br />

in a specific state.<br />

The menu items in the Selections menu apply to all states. There is no mechanism to affect specific states in<br />

this menu.<br />

122

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

Saved successfully!

Ooh no, something went wrong!