Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
zagzebski
Contributor

Setting Variable with Text Box Trigger vs Field Event Trigger

I am trying to set a variable:

Variable = vVariable1

Value  =If(GetSelectedCount(District)>1,vVariable1,GetFieldSelections(District))

If I create this trigger from a  text box this works perfectly fine. But when I try to do the exact same thing on a field (District) event trigger nothing happens.

Any thoughts?

Thanks,

Z

1 Reply
shawn-qv
Contributor

Re: Setting Variable with Text Box Trigger vs Field Event Trigger

You may have to play around with setting the trigger OnSelect / OnChange or (possibl) both.

Alternatively, you may consider moving this condition into the Expression of your chart (instead of using triggers, which may often have unexpected results).

S.