QGIS/resources/function_help/json/represent_value
Matthias Kuhn a97d846471
Single parameter version of represent_value
Becuase `represent_value("fieldname")` is much shorter to write and in 98%
there is no need to specify the name separately as
`represent_value("fieldname", 'fieldname')`.
2017-09-29 10:58:18 +02:00

14 lines
697 B
Plaintext

{
"name": "represent_value",
"type": "function",
"description": "Returns the configured representation value for a field value. It depends on the configured widget type. Often, this is useful for 'Value Map' widgets.",
"arguments": [
{"arg":"value", "description": "The value which should be resolved. Most likely a field." },
{"arg":"fieldName", "description": "The field name for which the widget configuration should be loaded. (Optional)"}
],
"examples": [
{ "expression":"represent_value(\"field_with_value_map\")", "returns":"Description for value"},
{ "expression":"represent_value('static value', 'field_name')", "returns":"Description for static value"}
]
}