Feature request #6361
Edit widget “Unique values”
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||15629|
There is a possibility in the layer properties window, Fields tab to define Edit widgets. One of them is just opposite what the name suggest – “Unique values”. In most DBMS unique is UNIQUE – no duplication is allowed. The name of this widget should be changed.
By the way – there is also a widget “UUID generator”. Funny! UUID means Universally Unique IDentifier.
#2 Updated by Nathan Woodrow almost 8 years ago
zirneklitis - wrote:
In most DBMS unique is UNIQUE – no duplication is allowed
This is what happens. If you are using a database based provider for a layer it will do a GROUP BY to return the unique values for that column. I have never had it return a item more then once.
Funny! UUID means Universally Unique IDentifier.
Not sure what the issue is. The widget is a Universally Unique Identifier generator.
#3 Updated by zirneklitis - almost 8 years ago
The problematic name is for widget “Unique values”. The “UUID generator” was mentioned to point to the quite opposite use of the word “unique” into the same window. The “UUID generator” works as expected. No the same with “Unique values”.
When the widget “Unique values” is chosen with editable option on, any value could be entered. Look at the example of entered values:
As You can see, there is no uniqueness.
When the widget “Unique values” is chosen with editable option off, only existing values could be chosen.