Skip to content
Discussion options

You must be logged in to vote

Hello,

If I got this right, it seems you'd like to go from querying for a KindOfQuantity like Length in your case, and be able to format Length values from metric to imperial (in code)?

Grigas had a good example in this reply, if you are looking to use the Presentation APIs.

I noticed you'd like to also know the phenomenon (what you refer as dimension) of the units associated with the KindOfQuantity? KindOfQuantityInfo contains the EC fullname for the persistence unit. You could then utilize a unitsProvider, like a SchemaUnitsProvider, to lookup that unit, and then retrieve the name for the phenomenon.

I have a quick example here that could show the workflow:

const koq = field.properties[0].

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@rhaines57
Comment options

@rhaines57
Comment options

@rhaines57
Comment options

@hl662
Comment options

hl662 May 8, 2025
Collaborator

@rhaines57
Comment options

Answer selected by rhaines57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants