U4-1401 - v6: Setting a property's value doesn't save the value immediately

Created by Sebastiaan Janssen 07 Jan 2013, 11:29:27 Updated by Sebastiaan Janssen 25 Sep 2013, 10:09:50

Relates to: U4-1363

Relates to: U4-2921

Parent for: U4-1214

In the old API you would do this:

document.getProperty("bodyText").Value = "

Hello world

"; This would immediately save the value to the database. In the new API this behavior (which was confusing) has been fixed and you need to explicitly save the changes. Previously calling the .Save() method didn't really do anything and the advise was always to skip doing that. Now it is required in order for the changes to be saved:

document.getProperty("bodyText").Value = "

Hello world

"; document.Save();

Note: This behavior has changed for Document and Media only, other classes like User will follow in a later release but it can't hurt to change your code to include an explicit .Save() for those at this point as well.


Priority: Normal

Type: Feature (planned)

State: Fixed


Difficulty: Normal


Backwards Compatible: False

Fix Submitted:

Affected versions: 6.0.0

Due in version: 6.0.0


Story Points: