setItemReference()
Sets the reference of the Item being edited.
You would want to use this method so that you can set a common Item reference from your own database and the Learnosity Item bank, for example.
Examples
authorApp.setItemReference("my-new-item-reference");
Arguments
-
itemReference string
The Item reference used to identify the Item.
Maximum length is 150 characters.
Return value
- string
Returns the new Item reference if successful.
- boolean
Returns
false
if unable to set the Item reference, for example, when not in the Item editor view, or the new reference is the same as the current reference.