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

attribute table - Possibility to override display field label #637

Open
2 of 8 tasks
Gaetanbrl opened this issue Aug 8, 2023 · 4 comments
Open
2 of 8 tasks

attribute table - Possibility to override display field label #637

Gaetanbrl opened this issue Aug 8, 2023 · 4 comments

Comments

@Gaetanbrl
Copy link
Contributor

Gaetanbrl commented Aug 8, 2023

Description

With the aim of display complexe attributes for many users profils, some users asked to rename many fiels.
This seems not possibile in mapstore config (attribute table plugin).

With this enhancement, it could be possible to display a label for a specific attribute/field name to ease user understanding.

Here an example to rename "s_r0.6" field name by "scenario_0.6" with new displayLabel config property (could be another prop name) :

{
  "name": "FeatureEditor",
  "cfg": {
    "maxZoom": 21,
    "customEditorsOptions": {
      "rules": [
        {
          "regex": {
            "attribute": "s_r0.6",
            "url": "regex to match a specific url",
            "typeName": "layerName"
          },
          "displayLabel": "scenario_0.6"
        }
      ]
    }
  }
}

@offtherailz @tdipisa Is it a complicated / acceptable contribution ? I will create a dedicated ticket if acceptable.

What do you thing about this enhancement ?

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Mapstore2georchestra improvement
  • Mapstore2 improvement
  • Other... Please describe:
@Gaetanbrl
Copy link
Contributor Author

Gaetanbrl commented Aug 8, 2023

@tdipisa
Copy link
Collaborator

tdipisa commented Aug 8, 2023

@Gaetanbrl as far as I understand you need this that will be available starting from v2023.02.00

@Gaetanbrl
Copy link
Contributor Author

thanks @tdipisa, It's a great feature !

Just to undestand, if we change an alias for a random field, the attribute table (featureEditor) will display this alias into header col label ?

@tdipisa
Copy link
Collaborator

tdipisa commented Aug 8, 2023

@Gaetanbrl yes, the alias is used in the whole application (eg. style editor, filter layer and so on) where the attribute name is displayed somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants