Wiki source code of Action

Last modified by Maurice Gasco on 2018/06/06 18:33

Hide last authors
Maurice Gasco 2.1 1 This object represents the definition of an application's action.
Maurice Gasco 1.1 2
Maurice Gasco 2.1 3 == Properties ==
Maurice Gasco 1.1 4 === Id ===
Maurice Gasco 2.1 5 sysId of the action.
Maurice Gasco 1.1 6
7
8 === Name ===
Maurice Gasco 2.1 9 Name of the action.
Maurice Gasco 1.1 10
11
12 === Title ===
Maurice Gasco 2.1 13 Title of the action.
Maurice Gasco 1.1 14
15
Maurice Gasco 2.1 16 Example: Create an option listing all actions of an application
Maurice Gasco 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
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation