Is there a way to query a model condition to see if it is or is not currently active?

edited March 2, 2017 in Questions
Is there a way to query a model condition to see if it is or is not currently active?  In something i am working on, I'd use the status of the condition to go down one of two paths in the logic.

Comments

  • edited March 2, 2017
    There is an inactive property on Model Conditions that will be false if a Condition is active, trueif it is inactive.
  • edited November 23, 2016
    could you share the syntax used within an if statement in a snippet?
  • edited March 2, 2017
    var model = skuid.$M('MyModel');
    var condition = model.getConditionByName('MyConditionName',true);
    var conditionIsActive = !condition.inactive;
  • edited November 23, 2016
    Thank. I've got everything working.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!