qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.59k stars 3.01k forks source link

QGIS Server: GetProjectSettings lists field type with QString instead of boolean #16795

Closed qgib closed 5 years ago

qgib commented 11 years ago

Author Name: Andreas Neumann (@andreasneumann) Original Redmine Issue: 7924 Affected QGIS version: master Redmine category:qgis_server Assignee: Marco Hugentobler


I sometimes use boolean data types represented with checkboxes. In QWC (QGIS web client) I want to display them with yes/no instead of "t" and "f". I need to therefore detect these boolean values.

In the output of the GetProjectSettings reponse I get the type as QString. I cannot use the edit type, because in this setup the edit type is set to "Hidden". I want to hide them in QGIS desktop but show them in QGIS Web Client.

So, is there a chance that the boolean values (set to boolean in Postgis) would be reported as boolean and not as a QString?


example output of GetProjectSettings:


in the above example all of the "Betroffen_xxx" attributes are actually of type boolean, but are reported as "QString".

qgib commented 11 years ago

Author Name: Andreas Neumann (@andreasneumann)


Alternatively it would be useful to have an additional column in the fields tab called "Desktop" that separates the "Hidden" from the widget choice.

This would be even more flexible and elegant.

qgib commented 10 years ago

Author Name: Andreas Neumann (@andreasneumann)


This was already implemented in QGIS server a while ago.