cancel
Showing results for 
Search instead for 
Did you mean: 

How to show creator display name using metadata template on document library

douglascrp
World-Class Innovator
World-Class Innovator
Hi.

I'm trying to show the decorated property creator.displayName using metadata template, but I couln't do this.
When I try to add cm:creator, what I see is "[object Object]".
I also tried to show this property using {jsNode.properties.owner.displayName}, but not is shown in this case.

Can somebody help me with this?

Thanks in advance.
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

you see [object Object] because cm:creator is a complex object containing the user, first and last values. Unless you provide a custom renderer, this will not change if you attempt to render cm:creator directly.
For your owner example please keep in mind that this property is usually not set, except you have some actions that reassign ownerhsip. If you were to use the same approach for the creator, it should work.

Regards
Axel