AnsweredAssumed Answered

Get all values of node property.

Question asked by madzi on May 15, 2012
Latest reply on May 28, 2012 by afaust

I have node (own type) with some property.
How i can get all stored values of this property in my JS code ?

I can search all nodes and get value of this property in loop, like:

function getPropValues(myProperty) {
    var i, nodes, result = {};
    nodes = search.luceneSearch("TYPE:\"cm:MyNodeType\"");
    for (i = 0; i < nodes.length; i++) {
    return result;
but i think, the solve may be easier.