Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_mika
Master III
Master III

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
swuehl
MVP
MVP

Could you post a small sample QVW?

robert_mika
Master III
Master III
Author

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, '|') & ')',' ','?'),'&','?')

marcus_sommer

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