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: 
EvanBarrick
Creator
Creator

Text Object Change based on Selection

I have a text object that has the following expression; 

=[Game Description] & ' - ' & eventDATE & ' - ' & Timestamp(TIME, 'h.mm TT')

 

These change to actual values once a selection is made from a filter pane.

I think it would be a good feature for inexperienced users to have the text object read 'Make  A Selection', which would then "disappear" (change to the associated values) once a selection is made in the filter pane.

Is this possible?

1 Solution

Accepted Solutions
sunny_talwar

May be like this

=If(Len(Trim(GetCurrentSelection())) = 0,
'Make A Selection',
[Game Description] & ' - ' & eventDATE & ' - ' & Timestamp(TIME, 'h.mm TT'))

View solution in original post

6 Replies
sunny_talwar

May be like this

=If(Len(Trim(GetCurrentSelection())) = 0,
'Make A Selection',
[Game Description] & ' - ' & eventDATE & ' - ' & Timestamp(TIME, 'h.mm TT'))
EvanBarrick
Creator
Creator
Author

I cannot get your solution to be accepted as proper syntax. Would I need to reference the field of 'eventDATE' anywhere near the GetCurrentSelections?

sunny_talwar

Is this based on selection in just EventDate field?

EvanBarrick
Creator
Creator
Author

Yes, only based on if a selection is made in that field.

EvanBarrick
Creator
Creator
Author

I was omitting a parenthesis. Your solution functions correctly. Thank you.

sunny_talwar

For just selection in eventDATE, you can try this

=If(GetSelectedCount(eventDATE) = 0,
'Make A Selection',
[Game Description] & ' - ' & eventDATE & ' - ' & Timestamp(TIME, 'h.mm TT'))