Announcement Announcement Module
Collapse
No announcement yet.
Property Constraint dependent on another property Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Property Constraint dependent on another property

    How can I implement a constraint that is dependent on the input of another property? I've searched through the sample apps and haven't found anything. Here's what i'm trying:

    Code:
    add("hitpoints", new Constraint() {
      public boolean test(Object object) {
        Integer value = (Integer) object;
        //need to lookup another property to determine if this is a valid input.
      }
    }

  • #2
    you need to use 'PropertiesConstraint'

    Comment


    • #3
      the PropertiesConstraint works great. Thanks!

      Comment

      Working...
      X