Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

3 conditional images

I want to show 3 different images in a qlikview document. i have the data of images in my model (Img#., Image location, image name)

The 3 conditions:

  • image 1 need to be shown when there is no selection made in a row (listbox).
  • image 2 need to be shown when there is a selection made in a row (listbox)
  • Image 3 need to be shown when there is no selection possible in a row (listbox)

Thanks a lot.

1 Solution

Accepted Solutions
rphpacheco
Creator III
Creator III

Try is expression

if(GetPossibleCount([SPEC Version]) < 1,'qmem://<bundled>/BuiltIn/cross_r.png',

if(GetSelectedCount([SPEC Version]) > 0, 'qmem://<bundled>/BuiltIn/check_g.png',

'qmem://<bundled>/BuiltIn/check.png'

)

)

View solution in original post

6 Replies
rphpacheco
Creator III
Creator III

Could you post an example for better understanding?

Not applicable
Author

Image 1:

1.jpg

No selection made need to give result:
unselected.png

Image2:

2.jpg

Selection made need to give result:

selected.png

Image 3:

3.jpg

No selection possible need to give result:

unable.png

A bit the same then the LED selection style, but that gives me design issues. thats wy i'm looking for this kind of solution. Thanks

Anonymous
Not applicable
Author

Hello, try is expression

if(isnull(GetFieldSelections([SPEC Version])) and GetPossibleCount([SPEC Version])>0,'No selection made need to give result:',If(GetPossibleCount([SPEC Version]) = 0,'No selection possible need to give result:','Selection made need to give result'))

rphpacheco
Creator III
Creator III

Try is expression

if(GetPossibleCount([SPEC Version]) < 1,'qmem://<bundled>/BuiltIn/cross_r.png',

if(GetSelectedCount([SPEC Version]) > 0, 'qmem://<bundled>/BuiltIn/check_g.png',

'qmem://<bundled>/BuiltIn/check.png'

)

)

Not applicable
Author

I think you didnt get the question:

it need to give the result as the image. not the sentence a "text object" image to be correct.

Not applicable
Author

Thanks a lot! with some small adjustments this seem to work

=if(GetPossibleCount([SPEC Version]) < 1,'qmem://img#/2',

if(GetSelectedCount([SPEC Version]) > 0, 'qmem://img#/3',

'qmem://img#/1'

)

)