How to set unitLabel in fitContribution dynamically (or workaround)

Former Member
Former Member
I let users set the unit of their data select in an app. I'd like to display their choice in the fitContribution. I can set the (numerical) value using FitContributor::Field.setData(...), but the unit is compiled from the fitField.unitLabel (i.e. a string-ressource) in fitcontributions.xml.

My ideas have been
- to change the string ressource --> propably impossible, because this is compiled code
- to add a fitField displayoing the unit --> seems like only numeric values are supported as fitContribution dat
So, does anybody have an idea?