QGIS: Can I mimic the "open" action with python and manipulate the field content used
I am using QGIS actions (type: "open") to link ECM searches to objects on the map.
The basic syntax is very simple:
protocol://searchterm1=[%"field1"%]&searchterm2=[%"field2"%]However, some fields used for the search contain spaces and the system can't handle them. For example, "York" works. "South Hampshire" however doesn't.
Can I somehow mimic the open action with python, and use it to manipulate the value from the field? Like picking the first word before a space and using only that for the search?
أكثر...
I am using QGIS actions (type: "open") to link ECM searches to objects on the map.
The basic syntax is very simple:
protocol://searchterm1=[%"field1"%]&searchterm2=[%"field2"%]However, some fields used for the search contain spaces and the system can't handle them. For example, "York" works. "South Hampshire" however doesn't.
Can I somehow mimic the open action with python, and use it to manipulate the value from the field? Like picking the first word before a space and using only that for the search?
أكثر...