Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue May 28, 2013 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented May 28, 2013

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
Copy link
Contributor Author

qgib commented May 28, 2013

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
Copy link
Contributor Author

qgib commented Jun 30, 2014

Author Name: Andreas Neumann (@andreasneumann)


This was already implemented in QGIS server a while ago.


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant