If an external web application is integrated in the DeskClient via 'Tools' or browser tab, it can trigger (document) actions via hyperlinks. The following actions also work within the preview view of a document inside the DeskClient.
These URIs are only working when the page is called within a browser in the DeskClient. Technically the DeskClient's browser implementation intercepts URIs starting with the prefix sophora:// and performs the action defined by the URI's suffix. The following table shows all currently available actions. If an error occurs because invalid parameters were passed, an exception is thrown. If an error occurs while performing the action, an error dialog is displayed.
sophora://document/setProperty
Sets value to property of the specified document. Additionally, the document can be re-published if it was published before, has no working version and publishImmediately is set to 'true'.
Parameters
uuid: The UUID of the document the specified property should be set to.property: The name of the property which should be set.value: The value which should be set for the passed property.publishImmediately: Defines whether document should be published immediately after property was set. Allows 'true' or 'false'. Optional, default is 'false'.
Example
sophora://document/setProperty?uuid=0c03b298-3e68-47e6-9a0f-c4b84887b3ba&property=sophora:teletextText&value=test&publishImmediately=true
sophora://document/registerForDocumentChanged
Allows to register for "document changed" events. To use, call this URL with remove=false. You must implement the following JavaScript function in your page, which is invoked whenever a document change occurs:
function
sophora_documentChanged(uuid, stateChange)
{
// ... do something...
}