Wiki source code of Action
Show last authors
1 | This object represents the definition of an application's action. |
2 | |
3 | == Properties == |
4 | === Id === |
5 | sysId of the action. |
6 | |
7 | |
8 | === Name === |
9 | Name of the action. |
10 | |
11 | |
12 | === Title === |
13 | Title of the action. |
14 | |
15 | |
16 | Example: Create an option listing all actions of an application |
17 | var arr = new Array(); |
18 | var reg = System.Registry; |
19 | var app = reg.getApplication("rqRequest"); |
20 | if (app != null) { |
21 | var acts = app.getActions(); |
22 | var max = acts.length; |
23 | for (var i=0; i<max; i++) { |
24 | var act = acts[i]; |
25 | var opt = new sysOptionValue(); |
26 | opt.sysTitle = act.Title; |
27 | opt.sysValue = act.Name; |
28 | arr.push(opt); |
29 | } |
30 | } |
31 |