Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Vinod
Creator
Creator

Hide and Show

Hi All. Please anyone tell me how to show and hide Object in QlikView using List Box Object. Thank You

Labels (1)
7 Replies
andrey_krylov
Specialist
Specialist

Like this?

vipin_mishra479
Creator II
Creator II

Hi. you can do it using variables

i give an example

Try this,

      Variable ->vhide

Value:

    =If(vhide = 0, 1, 0)

In chart, use vhide variable  in Layut-conditional  - show = vhide


with this variable you can show/hide all the object


Thanks !!

Vinod
Creator
Creator
Author

Application not opening.It is showing error.

Vinod
Creator
Creator
Author

Hi Vipin Mishra. I Know this logic. I wan't to know using List Box object.

andrey_krylov
Specialist
Specialist

Ok, then in load script add

LOAD * INLINE [

    Objects

    Object 1

    Object 2

    Object 3

];

Put List Box [Object] on sheet and in any object properties Layout -> Show-> Conditional paste


GetSelectedCount(Objects) > 0 and WildMatch('Object 1', $(=Chr(39)&Concat(Objects,Chr(39)&Chr(44)&Chr(39))&Chr(39)))


Now this object is visible only when you select "Object 1" in "Objects"

Vinod
Creator
Creator
Author

Thank You. It's working but I didn't understand this code $(=Chr(39)&Concat(Objects,Chr(39)&Chr(44)&Chr(39))&Chr(39))). Can You please explain.

andrey_krylov
Specialist
Specialist

It gives a string like 'Object 1', 'Object 2' - selected values of [Objects].

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/StringAggregat...