Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | comalaSetState(pageId, workflowState, [comment]) | Package | comala | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Sets the workflow state of the page using the Comala Document Management add-on. |
Sets the workflow state of the page using the Comala Document Management add-on.
Parameters
HTML Table-plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
pageId | Integer | Yes | The selected page to change the workflow state on. | workflowState | String | Yes | Name of the workflow state to be set to. | comment | String | Yes | Comment to be added to the Comala workflow history. | |
Return Type
Boolean
Example
Code Block |
---|
|
Somereturn code; |
...
comalaSetState(getPage("TST", "Demo Page"), "Approved", "Page was approved by: " + currentUserFullName()); |
Returns 'true'
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "comala_routines" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|
We've encountered an issue exporting this macro. Please try exporting this page again later.