changeId

changes the id of an element of a data collection

void changeId(string id,string newId,boolean silent);

Parameters

idstringthe old id of an item
newIdstringoptional, the new id; auto-generated if not set
silentbooleantrue - to prevent changing the id, otherwise false

Example

data.changeId("1", "22");

Change log

added in v6.4

Back to top