Set node property with String[] value, using ECMA script


hi,

 

i coding ecma script workflow in adobe cq5.5. not able set node property string[] value. here exception occured

 

caused by: org.mozilla.javascript.evaluatorexception: choice of java constructor setproperty matching javascript argument types (string,object) ambiguous; candidate constructors are:

    interface javax.jcr.property setproperty(java.lang.string,java.lang.string[])

    interface javax.jcr.property setproperty(java.lang.string,javax.jcr.value[]) (/etc/workflow/scripts/vanity-url-localizer.ecma#38)

 

could please me set node string [] property value.

 

thanks!

 

-ram

the code snippit of trying useful have tried initializing array , using set property value?  like:

 

var proparray = ['your string'];

 

workitem.setproperty('propname',proparray);



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support