cancel
Showing results for 
Search instead for 
Did you mean: 

Using vocabulary to display a label associated with a value(id) stored in Nuxeo.

karl_harris_
Star Collaborator
Star Collaborator

I want to take a database field and use vocabularies to display (Read Only) a Label that is associated with (mapped to) the contents of the field. The field contains the vocabulary id and I want to display the label associated with it.

Can this be done in Studio? Is there a widget available to do this?

Do I need to write an widget to take the field value and return the label from the vocabulary?

1 REPLY 1

Daniel_deLamare
Champ on-the-rise
Champ on-the-rise

Old thread, but for future reference, this worked for me in a template.

<h:outputText value="#{nxdir:getLabelFromId(directoryName, id)}" />

I suspect it is possible to do the same thing using a single vocabulary widget in read only mode.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.