cancel
Showing results for 
Search instead for 
Did you mean: 

how to set properties?

targa2000
Champ in-the-making
Champ in-the-making
I can get properties:

     var propObj = document.getProperties();

how do I set properties?

    document.setProperties(propObj);

produces:

exception occurred: Cannot find function setProperties.
1 REPLY 1

billerby
Champ on-the-rise
Champ on-the-rise
Found this in the wiki:

// change the name of this document
document.properties.name = "Backup of " + document.properties.name;
// add a new property string
document.properties["cm:locale"] = mylocalenode;
// save the property modifications
document.save();

It looks lite you have to set the properties one by one.

/Erik