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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro select Value

Hi,

I have a field "status" with 2 possible values (true/false). I'd like to have a button which select true by clicking.
I guess I'll have to handle this with a macro. I'm a newbie and haven't done anything with macros.
So, thanks for your help.

7 Replies
Not applicable
Author

sub selectTrue

ActiveDocument.Fields("status").Select "true"

end sub

you can attach above macro function - selectTrue - to the button to select status as true

Anonymous
Not applicable
Author

You can do it without macro in QlikView 9

Not applicable
Author

Hi,

LOAD * INLINE [
USER, X1, X2
"User 1", true, true
"User 2", false, true
"USer 3", true, false
"User 4", false, true
"User 5", true, true
];

I created a button (1) and used ActiveDocument.Fields("X1").Select "true" to select.

Now I'd like to select the X2 true. If Button 1 was activated first I only get the users that are X1 true and x2 true.
I'd like to select only the users with X2 true.

I tried ActiveDocument.Fields("X1").Clear

and then again X2 Select.
Unfortunately this isn't working.
Any ideas?

Thanks

Elzo

Not applicable
Author

That seems like it should work. Are you getting an exception in the macro or is nothing happening?

Here's a sample.

Not applicable
Author

Do you know how to do it in Qlikview 9 - i've tried using triggers but I can't get it to work.

Thanks

Helen

Anonymous
Not applicable
Author

Helen,
Same functionality in QV9, no macro needed. See attahced.

Not applicable
Author

Thats great thanks