Sets a flag that indicates whether the constraint is dynamic or not.
eOk if the operation completed successfully, or an appropriate error code otherwise.