Neolane - JavaScript API - v6.1.0

Unknown
Duplicate
Creates a new document from a source document
session.Duplicate (
    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
Schema: xtk:session
Static: No
Const: No
Key only: No

jsapi-en

previous page start next page