Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

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

$
0
0

Hi,

 

I am coding an ECMA script for a workflow in Adobe CQ5.5. I am not able to set a node property with String[] value. Here is an exception occured

 

Caused by: org.mozilla.javascript.EvaluatorException: The choice of Java constructor setProperty matching JavaScript argument types (string,object) is 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 you please help me to set the node with String [] property value.

 

Thanks!

 

-Ram


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>