cancel
Showing results for 
Search instead for 
Did you mean: 

Change the Property name

swardi
Champ in-the-making
Champ in-the-making
Hi everyboda,
i d like to change the content name when i update a content. is it possible to do that abd how?

Thanks.
1 REPLY 1

swardi
Champ in-the-making
Champ in-the-making
Here is the solution:

NamedValue[] titledProps = new NamedValue[2];
                titledProps[0] = Utils.createNamedValue(Constants.PROP_NAME, theNewName);
                titledProps[1] = Utils.createNamedValue(Constants.PROP_DESCRIPTION, descriptionNew);


                CMLUpdate update = new CMLUpdate(titledProps, pred, null);
                CML cml = new CML();
                cml.setUpdate(new CMLUpdate[] { update });

                WebServiceFactory.getRepositoryService().update(cml);