Forum Discussion

bryan-riley's avatar
bryan-riley
Creator II
5 months ago

Displaying In-Line Units for xClass xProperties

Migrating from another system, they have a lot of properties that also include units. Like this: 

How can I modify the Extended Classification display to show units in line like this? 

My plan so far is to build out ItemTypes for each type of measurement (Length, Temperature, etc) similar to the default 'Measurement Units', including a conversion value to whatever base unit is decided. (Anyone know why there is a 'viewer' on this itemtype?) 

 

So then I could build xProperties linked to the ItemType for that type of unit, and add it to the xClass which would put the UoM as another line in the xProperties

So the question is how would I modify the xClass Display so that I could pair up the two properties and get an in-line display of the units? (and do it for some properties, not others, and for many properties within an xClass)

 

1 Reply

  • From my POV the "Viewer" property is to link the measurement units to applications like SSVC. 

    I think adding units to xProperties is possible and I like the idea, but it requires a lot of effort. You probably need to customize the xClass app on codetree and database level. First I would try to find the code that is used to "store" a specific xProperty value inside the database. Next the rendering for the Form element. Please keep in mind that we have the classic and new Form editor.... 

    How about a more trivial solution like this: Just write the unit next to the label?