You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a Postgis layer that has columns with boolean values and I want to display each of them using different values, e.g. Active - Inactive, Yes - No etc.
By making the settings in the "representation for check state" area, I noticed that they aren't propagated to the table and I only see 't' and 'f'.
There is however a time when the values I've setup appear.. when I click the value in the attribute table..
As a workaround I can setup a value map type of widget, but that messes up the custom ui's for those who use them (and I do).
I tested with master and 2.12.3 on Debian Stretch
The text was updated successfully, but these errors were encountered:
It's boolean (I already wrote that in the issue definition).
My expectations were/are: for a boolean field, I can setup whatever is displayed in the attribute table etc. for the True and for False values.
Am I having wrong expectations?
If so, what is the purpose for the "representation for Checked state" of the checkbox widget.
yes. If the datatype is boolean then the only thing you can write into the column is t/f. You can use other datatypes and the "boolean" edit widget to have the users write whatever you want using the checkbox in the qgis table of attributes.
From my perspective, as the widget knows it has a boolean field, I could set it up to display anything I wanted as behind the scenes it would have saved 't' and 'f'.
Author Name: Tudor Bărăscu (@tudorbarascu)
Original Redmine Issue: 14203
Affected QGIS version: 2.12.2
Redmine category:attribute_table
I'm trying to add a Postgis layer that has columns with boolean values and I want to display each of them using different values, e.g. Active - Inactive, Yes - No etc.
By making the settings in the "representation for check state" area, I noticed that they aren't propagated to the table and I only see 't' and 'f'.
There is however a time when the values I've setup appear.. when I click the value in the attribute table..
As a workaround I can setup a value map type of widget, but that messes up the custom ui's for those who use them (and I do).
I tested with master and 2.12.3 on Debian Stretch
The text was updated successfully, but these errors were encountered: