Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
Highlighted

Clearing Alternate State

Why the native  'Clear' button  or 'Clear All' created as button does not clear  all states?

My example below:

States: Current and New,

Trigger on 'New' State Listobox to to choose from 'Current' list box.

The selection box below (in Current state) still have selection after the Clear button is pressed.

The 'Clear' icon within the box does not work either.

Just changing the selections from being divided by '|'

(From expression)

to ','

I found out as well  that the 'Current Selection' box  must have one field in it.

You can clear everything but one field need to stay inside the box.

3 Replies
MVP
MVP

Re: Clearing Alternate State

Could you post a small sample QVW?

Re: Clearing Alternate State

Hi Stefan.

Thank you for replay.

I can not from current data not sure if I can replicate that example somehow diffrent

Any thoughts without saying the example?

My expression to pick up the entry from the Current state is:

(as a trigger on field ,'On select')

=replace(replace('(' & Concat(DISTINCT {Movement_NewLevel_1, '|') & ')',' ','?'),'&','?')

MVP & Luminary
MVP & Luminary

Re: Clearing Alternate State

Maybe you could instead of a clear-action use a selection-action with: = null() to clear your field. Normally it worked reliable for this purpose whereby I never tried it by using states.

- Marcus