Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

smitaranikr04
New Contributor III

Object Specific Default selection

Hi GUYS,

Can anyone help with object specific default selection.

I have six charts in a sheet(minimized state), but I want default selection for only three charts, when i click to other charts those selection should be cleared.

13 Replies

Re: Object Specific Default selection

You can add alternate states to your document if you're using QV11 or newer. You can add those on the General tab of the document properties window. After creating them you can assign them to sheet objects on the General tab of the objects properties window. Selections in one alternate state don't influence selections in other alternate states or the default state. This way you can make sheet objects react only to a specific set of selections, those made in a specific alternate state.


talk is cheap, supply exceeds demand
smitaranikr04
New Contributor III

Re: Object Specific Default selection

is there any other work around for this problem?as user can not go and change the states they want us to set likewise

Re: Object Specific Default selection

You can try using bookmarks. That makes it easy to save and restore selections. However if you don't use alternate states there is only one selection state (at a time) in your document and it will apply to all sheet objects.


talk is cheap, supply exceeds demand

Re: Object Specific Default selection

Hi Rajashmita,

you could use triggers and actions i.e. when entering different sheets, that hold the specific charts.

e.g the trigger OnActivateSheet of one sheet could have the actions "Selection/Select in Field" with Field an Searchstring defined per field.

The OnLeaveSheet trigger could clear all selections using the action "Selection/Clear All".

Hope this helps

regards

Marco

smitaranikr04
New Contributor III

Re: Object Specific Default selection

ya Gysbert, I can use bookmark in the expression but i have that field as dimension in the chart,so it will display other values also that are not selected.

smitaranikr04
New Contributor III

Re: Object Specific Default selection

Could you please share any example how using trigger I can apply particular selection to specific charts in a sheet?

smitaranikr04
New Contributor III

Re: Object Specific Default selection

On activate sheet whatever action we apply it will be applied to all objects on that particular sheet, not specific object

Not applicable

Re: Object Specific Default selection

Rajashmita,

Please post a sample app to help us understand your requirement better.

SK

smitaranikr04
New Contributor III

Re: Object Specific Default selection

trial.jpg

In the above picture When I select Student as Gopi that is affecting both Charts(Mark Details and Category),But I want only one chart should have that default selection .With applying sheet trigger on open I want Student as Gopi should be selected by default for the Mark Details alone.

Community Browser