Duplicate
Creates a new document from a source document
session.Duplicate (
String pk
)
String pk
)
Parameters
pk
Primary key of the source document
Return values
None.
Examples
The following example creates a new operator by duplicating the operator with ID 12345 and changes their name and login.
var operator = xtk.operator.create() // Create an empty operator
operator.Duplicate("xtk:operator|12345") // Initialize by duplication
operator.name = "newLogin" // Customize
operator.label = "newUserDesc"
operator.save() // Save
Features

