Bug report #21906
constraints do not work in table "form view" or "table view"
|Affected QGIS version:||3.6.2||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29721|
Constraints seem to work when updating the attributes using the feature form that opens using the identify tool, but hey do not work in the table of attributes both in "table view" or "form view" (at least in "form view" is very unexpected to not work).
#2 Updated by Giovanni Manghi 9 months ago
Hi Matthias, thanks for the feedback
Matthias Kuhn wrote:
Do you have a proposal for expected behavior?
Should values just not be accepted and silently discarded or some feedback given and if yes, where and how.
well, I don't know what is possible to do in "table view" in terms of enforcing the constraints and show messages, if the answer is "nothing easy" then imho I would definitely block the save operation.
the "form view" is another thing: I can't see (of course I'm not a dev, so I may be wrong) why this form should not work as the form that pop-ups when identifying a feature, where the constraints work as expected. If possible I would make the "form view" work exactly as the "identify forms" (not sure it is the right name).