Javascript API - acess to aspect properties

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2014 02:19 PM
Hi !
I am creating a script for a rule which create a reference for a file B to A where A references B.
I am working on a Windows 7 64 bits with Alfresco 4.2.e
My problem is that I can't find the aspect properties…
The aspect : cm : referencing, the property : cm:references
visible on Share, editable…
absent on the list of properties (document.getPropertyName(true)
present on the list of aspects (in document.aspects which is an array of strings)
but I need to know the referenced file to continue my script.
Somebody knows how to do?
I am creating a script for a rule which create a reference for a file B to A where A references B.
I am working on a Windows 7 64 bits with Alfresco 4.2.e
My problem is that I can't find the aspect properties…
The aspect : cm : referencing, the property : cm:references
visible on Share, editable…
absent on the list of properties (document.getPropertyName(true)
present on the list of aspects (in document.aspects which is an array of strings)
but I need to know the referenced file to continue my script.
Somebody knows how to do?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2014 04:20 PM
cm:references is an association ,not a property.
If your node has cm:referencing aspect,just using
For detail information ,please refer to https://wiki.alfresco.com/wiki/4.0_JavaScript_API
If your node has cm:referencing aspect,just using
mynode.assocs["cm:references"][0];// for target associations of the node mynode.sourceAssocs["cm:references"][0];//for source associations to this node
For detail information ,please refer to https://wiki.alfresco.com/wiki/4.0_JavaScript_API

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2014 01:16 PM
Thank you
Merci beaucoup
Merci beaucoup

