...
...
The Solution Model is the blueprint of your developed solution. You can modify its blueprint during runtime, but the object still needs to be actually built to become available to the user. Compare it to building a house and where certain rules apply when you want to make changes to the already built house.
...
Note | ||
---|---|---|
| ||
Manipulating solutions and modules are not applicable for the Solution Model because they are not relevant during deployment. At this point the collection of solutions and modules have become one flat solution. Therefore, no (references to) solutions and modules can be made with the Solution Model. |
...
The Solution Model has certain types of functions:
...
Code Block |
---|
solutionModel.removeStyle('myStyle'); |
...
To create a new global variable with name myGlobalVariable of type TEXT:
...
Code Block |
---|
solutionModel.removeGlobalVariable('myGlobalVariable'); |
...
To create a new global method with name myGlobalMethod:
...
Note | ||
---|---|---|
| ||
To test to what type of object the retrieved component belongs to, you need to use the JavaScript operator instanceof. For example, if you want to find out if the component is a button, use: component instanceof JSButton |
...
To create a new form variable with name myFormVariable:
...
Code Block |
---|
form.removeFormVariable('myFormVariable'); |
...
To create a new form method with name myFormMethod:
...
Code Block |
---|
form.removeFormMethod('myFormMethod'); |
...
To create a new body:
Code Block |
---|
var part = form.newPart(JSPart.BODY, 20); |
...
Code Block |
---|
form.removePortal('myPortal'); |
...
To create a new tab with name myTabPanel:
...
Code Block |
---|
solutionModel.removeRelation('myRelation'); |
...
To create a new value list with name myValueList:
...