How to show creator display name using metadata template on document library
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2013 09:22 AM
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2013 10:58 AM
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
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
