cancel
Showing results for 
Search instead for 
Did you mean: 

Custom aspect properties not in ScriptNode

gmccullough
Champ on-the-rise
Champ on-the-rise
I've followed the tuts and created custom content model, have all of the Share parts working, can see and edit all the aspects and properties in the Share UI.  However, I can't access any of the properties from my webscript.  Using the following:

var node = search.findNode(noderef.toString());

returns correctly the item I'm looking for.  In the debugger, all the "stock" cm: properties are available, and the aspects are applied, but none of the aspect's properties are available in the node.properties array.

Is this correct?  I've seen many references that say I should be able to just do node.properties.myaspectproperty and viola, but no joy.
I've also attempted node.properties["mySmiley Tonguerop"], but like I said, using debugger I can visually tell none of the properties are there.

Maven sdk 2 beta 3
Alfresco 5.0.a

Help appreciated!
gene
2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager
node.properties["mySmiley Tonguerop"] should work.

Your node has not the aspect you are expecting.
Hyland Developer Evangelist

I apologize, I was thinking I was at the parent level.  Too many hours working out webscript architecture…
Thanks for responding and removing my blinders!