Operation Types
The most common types of operations are described below:
Start Process
This operation type starts a process. When the Start Process operation type is selected the Configuration Tool displays the combo box containing all processes defined in the business space version. Select the process you want started when the operation is invoked. If the process has input then you may need to provide the value for this input. Two scenarios are possible:
- If the object defined as the process input is the same as the owner of the form, you don’t have to do anything, as the system will automatically provide the input when the process starts.
- If the object defined as the process input is different from the owner of the form, you must specify the input in the “Value” column of the “Process Input Table”. Click on the appropriate cell in the “Value” column and enter the process input as the reference attribute of the form owner. For example, let us assume that we are creating a Forum management system where we have a
Topicand aForumobjects defined. TheTopicobject has a single reference attribute namedMyForumthat refers to theForumwhere theTopicbelongs. Let us assume also that we are editing the form of theTopicobject and we want to define the operation that starts thePostNewTopicprocess, which allows posting a new topic from the form of the existing one. Let us assume that thePostNewTopicprocess requires Forum as its input. When defining the operation we would define the operation type that starts the PostNewTopic process and we would specifyTopic.MyForumin the “Value” column of the Process Input Table (note thatTopicis the owner of the form we are editing) as the process input.
Run Query
An operation of this type runs the specified query. When the “Run Query” operation type is selected the Configuration Tool displays the combo box containing all queries defined in the business space version. Select the query you want run when the operation is invoked.
Create Document
An operation of this type generates a document from the specified document template or report and displays the resulting document (see Document Generation). When the Create Document operation type is selected the Configuration Tool displays the combo box containing all document templates defined in the business space version. Select the document template you want to generate the document from when the operation is invoked. Alternatively you can let users choose the document at run-time from the list of pre-configured document templates or user-defined documents.
Delete Object
An operation of this type deletes the instance of the business object being edited (a warning is displayed before the object is deleted). This operation type has no parameters.
Edit
An operation of this type allows editing a different form of the business object from the one shown currently (if one is defined). Select the name of the form to be edited and the form section to be displayed when editing starts.
View
An operation of this type shows a form of a business object. Select a form you want to show when the operation is invoked.
Create Object
An operation of this type allows creating an instance of an object. Select the name of the object to create and the form of the object to be used during creation.
Execute Javascript
An operation of this type executes the specified Javascript. This can be used by advanced developers who are familiar with Javascript. One of the common uses of this operation is integration of custom Cordova plugins for native mobile applications. This is described in detail in the Programmer’s Reference Guide. When a script is executed the following Javascript objects are available:
parser(controller of the corresponding widgetcontext– an array of objects containing objectName and objectId of the record that the operation is for