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.