Page History
...
The Solution Model has certain types of functions:
Type | Purpose |
---|---|
Clone | Copies of a certain objects can be created |
Create | These factory functions allow you to create specific objects which can be used at properties of other objects |
Get | Allows you to retrieve objects to be manipulated by the Solution Model |
New | Allows you to create new objects to be manipulated by the Solution Model |
Remove | Allow you to remove existing objects |
wrapMethodWithArguments | Allows you to get a method, wrap it with arguments and assign it to an event. |
With the Solution Model you can control different types of objects. Referring to these objects is done through so-called JS Objects and consist of constants, properties and/or functions.
The following list shows the objects which can be controlled by the Solution Model, its corresponding JS Object and from which JS Object it needs to be referenced from in order to use it:
Object | JS Object | Referenced from JS Object |
---|---|---|
Calculations | JSCalculation |
Styles | JSStyle |
Global variables | JSVariable |
Global methods | JSMethod |
Forms | JSForm |
Components | JSComponent | JSForm |
Form variables | JSVariable | JSForm |
Form methods | JSMethod | JSForm |
Form parts | JSPart | JSForm |
Beans | JSBean | JSForm |
Buttons | JSButton | JSForm |
Fields | JSField | JSForm |
Labels | JSLabel | JSForm |
Parts | JSPart | JSForm |
Portals | JSPortal | JSForm |
Tab panels | JSTabPanel | JSForm |
Tabs | JSTab | JSTabPanel |
Relations | JSRelation |
Relation items | JSRelationItem | JSRelation |
Value lists | JSValueList |
Media | JSMedia |
Note | ||
---|---|---|
| ||
A list of all these JS Objects and their corresponding constants, properties and functions can be found under the SolutionModel node in the Solution Explorer of the Developer. |
...
Code Block |
---|
var formVariable = form.newFormVariablenewVariable('myFormVariable', JSFieldJSVariable.TEXT_FIELD ); |
To get existing form variable myFormVariable:
Code Block |
---|
var formVariable = form.getFormVariablegetVariable('myFormVariable'); |
To change its default value to abc:
...
To remove existing form variable myFormVariable:
Code Block |
---|
form.removeFormVariableremoveVariable('myFormVariable'); |
Form Methods
...