how to access doc properties with AlfrescoJavaScript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2010 12:53 PM
Hi…
I want to be able to put the custom metadata of the file-to-be-approved in the body of an email in my process definition. I tried to access a document like they do in doc_info.ftl. I put:
Thanks
I want to be able to put the custom metadata of the file-to-be-approved in the body of an email in my process definition. I tried to access a document like they do in doc_info.ftl. I put:
document.name + "\n" + document.properties['custom:myCustomField'];
, but I get:ReferenceError: "document" is not defined.
Thanks
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2010 11:49 AM
Try: bpm_package.children[0].properties["my
roperty"]

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2010 01:41 PM
Thank you! I also just came across this:
http://wiki.alfresco.com/wiki/FreeMarker_Template_Cookbook#Simple_Examples
http://wiki.alfresco.com/wiki/FreeMarker_Template_Cookbook#Simple_Examples
