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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reference ListBox Show.Always/Show.Condition property in VB Macro.

Hello,

I am using a macro, I want to be able to make a listbox visible and invisible:

How do I reference(and set)

Show.Always
Show.Condition

for a Listbox ?

Thank in Advance !

Tim

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

That worked for me, thanks Deepak!

(I would still like to know how to reference those properties directly though)

View solution in original post

5 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

check out this forum...

http://community.qlik.com/forums/t/36579.aspx

Not applicable
Author

That worked for me, thanks Deepak!

(I would still like to know how to reference those properties directly though)

gandalfgray
Specialist II
Specialist II

You can do it like this:


sub setlb01
set LB = ActiveDocument.GetSheetObject("LB01")
set boxprop=LB.GetProperties
boxprop.Layout.Frame.Show.Always = false
boxprop.Layout.Frame.Show.Expression.v = "sum(Sales)>4000"
LB.SetProperties boxprop
end sub


Not applicable
Author

Thank You

Not applicable
Author

That worked for me too! A great way to control the show condition via macro.