Bug report #12210

QGIS Server: value relations with multiple values are not properly resolved

Added by Andreas Neumann over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Jürgen Fischer
Category:QGIS Server
Affected QGIS version:2.6.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20399

Description

In case of a value relation widget there is the option to select multiple values. QGIS then stores them in a text column with curly brackets and commas as a separator.

Like: {1,3,7}

QGIS server should then resolve these values, replace the codes with their text representation and output them eg. as: Meier,Müller,Schmid

Currently, QGIS server returns the raw values like {1,3,7}. In case of only a single value, the output is fine.


I also noticed that when resolving value relations, QGIS server always adds round parenthesis around the value, which wasn't the case before. These parentheses should be removed.

value_relation_widget.png - See how the widget is defined in QGIS Desktop (41.4 KB) Andreas Neumann, 2015-02-16 03:11 AM

qgis_server_value_relation_feature_info_result.png - See result in FeatureInfo response - note the row with "Bauherr" (13.4 KB) Andreas Neumann, 2015-02-16 03:11 AM

Associated revisions

Revision ceceebdf
Added by Jürgen Fischer over 9 years ago

server getfeatureinfo: delegate value representation to editor widgets (fixes #12210)

History

#2 Updated by Jürgen Fischer over 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF