Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vlad_komarov
Partner - Specialist III
Partner - Specialist III

Independent "Back Selection" functionality

Hello,

In my application I am doing some UI manipulations based on list of items selected in the list box.

I need to create a “Back Selection” functionality for this Field and this functionality should be independent from standard QV Back / Forward operations.

Seems like straightforward process: using “SelectinField” action with parameter of string constructed from items selected one step back.

I am using the a variable vBack = '(' & Concat({$1}[FIELD_1], '|') &')' which gives me the proper sting in all cases except one:

It return ALL items listed in FIELD_1 when I am selecting any item first time the selection is made (after no selections were made).

I was trying to use GetFieldSelections() or GetSelectedCount(), but they do not have a SetAnalysis option for Previous step {$1}.

Any suggestions about how to handle this issue?


Regards,

Vladimir

5 Replies
settu_periasamy
Master III
Master III

Hi,

May be like this..

vBack  = If(GetSelectedCount([FIELD_1])>0,'(' & Concat({$1}[FIELD_1], '|') &')' ,'')

jonathandienst
Partner - Champion III
Partner - Champion III

Is that really a problem? Selecting all items is the same as selecting nothing (assuming no nulls). Is that not the correct 'back' state when you make your first selection?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

Jonathan,

Yes, in QV selections terms, "No Selections" = "All Selected". But I am using these selections to activate corresponding columns in a large straight table. So "No Selections" means no columns are visible. Selecting all items will force all columns in straight table to be displayed. Trying to avoid that...

Vladimir

Not applicable

it sounds like what you want to do is make the coluns conditional.  You can use the conditional attribute on an expression or dimension - when you activate you would place the expression that you would want to column to appear.  If the expression is not satisfied, the dimsion or expression does not appear

vlad_komarov
Partner - Specialist III
Partner - Specialist III
Author

Adam,

I am pretty familiar with "Conditional" option and how to show/hide individual column(s).

The question was about different thing - how to use List Box selections to activate this option in each column.


Vladimir