You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/core/basic-code-examples.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ For more details on **Rhino** scripting you can check [the Mozilla Rhino documen
13
13
14
14
> **Note**:
15
15
>
16
-
> Object code can be written in Java (or JavaScript which will be executed by the Rhino server-side engine, just like the executed fields), but good practice is to prefer Java language which
16
+
> Object code can be written in Java (or JavaScript which will be executed by the Rhino server-side engine, just like the executed fields), but good practice is to prefer Java language which
17
17
> include a compilation step and ensure that the syntax of the script is correct. In advanced use cases that are not part of this tutorial, the use of Java gives access > to all of the classic application development tools: step-by-step debugging, unit tests, development in a Java IDE, code quality analysis with Sonar etc..
18
18
19
19
> Examples are provided both in Rhino and Java so as you can see the syntax differences.
-`[IMAGERESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]` : Image resource URL (without quotes)
82
+
-`[ICONRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]` : Icon resource URL (without quotes)
83
+
-`[CSSRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]` : CSS stylesheet resource URL (without quotes)
84
+
-`[JSRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]` : JavaScript resource URL (without quotes)
85
85
-`[HTMLRESOURCEURL:<resource code>[:<OBJECT|EXTOBJECT|DISPOSITION>:<business object or external object or disposition name>]]` : HTML resource URL (without quotes)
-`[TABLE]`: the current object table name (when applicable)
131
-
-`[OBJECTID]`: the current object's row ID
132
-
-`[OBJECTNAME]` or `[OBJNAME]`: the current object name
133
-
-`[OBJECTLABEL]` or `[OBJLABEL]`: the current object label
134
-
-`[OBJECTINSTANCENAME]` or `[OBJINST]`: the current object instance name
135
-
-`[PARENTOBJECT]` or `[PARENT]`: the current object parent object
136
-
-`[PARENTOBJECTNAME]` or `[PARENTNAME]`: the current object parent object name
137
-
-`[PARENTOBJECTLABEL]` or `[PARENTLABEL]`: the current object parent object label
138
-
-`[PARENTOBJECTINSTANCENAME]` or `[PARENTINSTANCENAME]` or `[PARENTINST]`: the current object parent object instance name
139
-
-`[CHILDOF:<parent object name>[:<optional parent ref field>]]`: check if current object is child object of specified object (thru optional specified ref field)
140
-
-`[PANELOF:<parent object name>[:<optional parent ref field>]]`: check if current object is panel child object of specified object (thru optional specified ref field)
141
-
-`[REFFROM:<object name>[:<optional ref field>]]` or `[REFERENCEDFROM:<object name>[:<optional ref field>]]`: check if current object is referenced object from specified object (thru optional specified ref field)
142
-
-`[DATAMAPFROM:<object name>]` or `[DATAMAPPEDFROM:<object name>]`: check if current object is data mapped object from specified object
143
-
-`[CONTEXT:<context>]`: check if in specified context
144
-
-`[OBJECTSTATUS]` or `[STATUS]`: the object current status (if object has a status)
145
-
-`[OBJECTOLDSTATUS]` or `[OLDSTATUS]`: the old object status if any (if object has a status, not available on lists)
146
-
-`[OBJECTSTATUSCHANGED]` or `[STATUSCHANGED]`: check if the object status has changed
147
-
-`[ISNEW]`: Check if object is in creation
148
-
-`[ISCOPIED]`: Check if object is in creation as a copy
149
-
-`[ROWID]`: Row ID value
150
-
-`[FIELD:<name>]` or `[INPUT:<input name>]`: the specified field
151
-
-`[COLUMN:<field input name>]`: the specified field column name
152
-
-`[LABEL:<field input name>]`: the specified field label
153
-
-`[VALUE:<field input name>]`: the specified input field current value
154
-
-`[OLDVALUE:<field input name>]`: the specified input field old value (not available on lists)
155
-
-`[PARAM:<parameter name>]`: object parameter value
131
+
-`[OBJECTID]`: the current object's row ID
132
+
-`[OBJECTNAME]` or `[OBJNAME]`: the current object name
133
+
-`[OBJECTLABEL]` or `[OBJLABEL]`: the current object label
134
+
-`[OBJECTINSTANCENAME]` or `[OBJINST]`: the current object instance name
135
+
-`[PARENTOBJECT]` or `[PARENT]`: the current object parent object
136
+
-`[PARENTOBJECTNAME]` or `[PARENTNAME]`: the current object parent object name
137
+
-`[PARENTOBJECTLABEL]` or `[PARENTLABEL]`: the current object parent object label
138
+
-`[PARENTOBJECTINSTANCENAME]` or `[PARENTINSTANCENAME]` or `[PARENTINST]`: the current object parent object instance name
139
+
-`[CHILDOF:<parent object name>[:<optional parent ref field>]]`: check if current object is child object of specified object (thru optional specified ref field)
140
+
-`[PANELOF:<parent object name>[:<optional parent ref field>]]`: check if current object is panel child object of specified object (thru optional specified ref field)
141
+
-`[REFFROM:<object name>[:<optional ref field>]]` or `[REFERENCEDFROM:<object name>[:<optional ref field>]]`: check if current object is referenced object from specified object (thru optional specified ref field)
142
+
-`[DATAMAPFROM:<object name>]` or `[DATAMAPPEDFROM:<object name>]`: check if current object is data mapped object from specified object
143
+
-`[CONTEXT:<context>]`: check if in specified context
144
+
-`[OBJECTSTATUS]` or `[STATUS]`: the object current status (if object has a status)
145
+
-`[OBJECTOLDSTATUS]` or `[OLDSTATUS]`: the old object status if any (if object has a status, not available on lists)
146
+
-`[OBJECTSTATUSCHANGED]` or `[STATUSCHANGED]`: check if the object status has changed
147
+
-`[ISNEW]`: Check if object is in creation
148
+
-`[ISCOPIED]`: Check if object is in creation as a copy
149
+
-`[ROWID]`: Row ID value
150
+
-`[FIELD:<name>]` or `[INPUT:<input name>]`: the specified field
151
+
-`[COLUMN:<field input name>]`: the specified field column name
152
+
-`[LABEL:<field input name>]`: the specified field label
153
+
-`[VALUE:<field input name>]`: the specified input field current value
154
+
-`[OLDVALUE:<field input name>]`: the specified input field old value (not available on lists)
155
+
-`[PARAM:<parameter name>]`: object parameter value
156
156
157
157
> **Note**: The UI URLs and grant level tags are also available at business object level.
0 commit comments