| Syntax |
|
| Documentation | Function $createDocumentItem creates a document item:
document_contents, the contents of the document to be created document_annotation, the annotation of the document to be created (optional).
returned by calling $getCurrent{b}. |
| Examples | |
If a document named 'create-howto' does not exist on the current branch, create it:
$if{$existsDocumentItem{$get{title}}}
$//A document named 'create-howto' already exists. $//Trying to create another with the same name would cause an exception to be thrown } { $//Create it $createDocumentItem{$get{title}}{some_contents}{some_annotation} } |
|
| Group | Branch |
| Minimum required transaction-mode: | UPDATE=TREE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 3 |