Rename an attribute

Turbovix7 years ago

Anton, in the previous version it was possible to rename some attributes, however in this version 3.15 this possibility does not exist. If you have some way to do it using the computed attributes, I'd like an example.

Thank you!

Anton Tananaev7 years ago

You can't rename existing attributes, but you can add a new computed attribute with any name you want. Then there is also an option to hide attributes using ui.hidePositionAttributes parameter. This allows essentially to get the same result as with aliases; it's a bit more work, but it's much more flexible.

Turbovix7 years ago

Anton, do I need to create a new row for each attribute I want to hide?
For if I add more than one, they are nullified.

<entry key='ui.hidePositionAttributes'>Potência Válido</entry>

Another thing, the configuration below is correct? It did not work!

<entry key = 'geocoder.format'>%h %r %u %t %d %s %c </entry>
Anton Tananaev7 years ago

For "hidePositionAttributes" parameter you should use attribute key, not translation.

Address format configuration seems correct, except you have space after slash which makes it invalid XML.

Turbovix7 years ago

thank you!

Tracker CWB7 years ago

Hi, could anyone help me with a sample of the attribute handling?
The example below did not work

<entry key='ui.hidePositionAttributes'>{type versionVw index out1 altitude}</ entry>
Anton Tananaev7 years ago

Why do you have curly brackets there?

Turbovix7 years ago

The line should have the following formatting!

<entry key='ui.hidePositionAttributes'>XXXXXXXX</entry>
Tracker CWB7 years ago

I used the same way to hide the ignition, but it keeps appearing

<entry key='ui.hidePositionAttributes'>iginition</entry>

https://www.dropbox.com/s/78e81jdz3bel6rw/attributes.png?dl=0

Turbovix7 years ago
<entry key='ui.hidePositionAttributes'>ignition</entry>

"ignition"

Anton Tananaev7 years ago

Wait, ui.hidePositionAttributes is a user attribute, not a configuration option.

Tracker CWB7 years ago

unfortunately did not work, "ignition" also with "altitude"
Any other ideas?

Turbovix7 years ago

I suggest you do it through the web interface, click on the gear + server + attributes + "+" and choose to hide attributes of positions. Once chosen, enter the values you want to hide:

Example: in1 && in2 && in3 && out1 && out2

https://www.dropbox.com/s/ve72ycuq4ezosdw/Captura%20de%20tela%20de%202018-01-10%2019-32-03.png?dl=0

Note, some attributes are not possible to hide!

Anton Tananaev7 years ago

Please read my comment!!!

Anton Tananaev7 years ago

You don't need && in there.