I am trying to determine how to add a constraint on a Project Status field on an entity.
The case is I have a parent entity (Project) with 1 to many relation to sub entity (Project Tasks), but I only want to allow 1 Project Task Status set to "Active".
I know I can set a single drop list on the parent that says "Active Task" and just select the active one.
But I prefer to have status set on each task item with only 1 allowed to be Active. If I try to change another to active I would display error "Only 1 active task allowed.". Hopefully that make sense.
Any advice ? Thank you.
*This post is locked for comments
I have the same question (0)