Wiki source code of Action
Hide last authors
2.1 | 1 | This object represents the definition of an application's action. | |
1.1 | 2 | ||
2.1 | 3 | == Properties == | |
1.1 | 4 | === Id === | |
2.1 | 5 | sysId of the action. | |
1.1 | 6 | ||
7 | |||
8 | === Name === | ||
2.1 | 9 | Name of the action. | |
1.1 | 10 | ||
11 | |||
12 | === Title === | ||
2.1 | 13 | Title of the action. | |
1.1 | 14 | ||
15 | |||
2.1 | 16 | Example: Create an option listing all actions of an application | |
1.1 | 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 |