Bug report #21906

constraints do not work in table "form view" or "table view"

Added by Giovanni Manghi almost 5 years ago. Updated almost 5 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Vectors
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

Description

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).

History

#1 Updated by Matthias Kuhn almost 5 years ago

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.

#2 Updated by Giovanni Manghi almost 5 years 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).

Also available in: Atom PDF