Table Body (tbody) |
---|
id | cloneComponent-String_JSComponent |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
cloneComponent |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Makes an exact copy of the given component (JSComponent/JSField/JSLabel) and gives it a new name. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} newName - the new name of the cloned component {JSComponent} component - the component to clone |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // get an existing field to clone.
var field = solutionModel.getForm("formWithField").getField("fieldName");
// make a clone/copy of the field
var clone = solutionModel.cloneComponent("clonedField",field); |
|
|
|
|
Table Body (tbody) |
---|
id | cloneComponent-String_JSComponent_JSForm |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
cloneComponent |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(newName, component, newParentForm) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Makes an exact copy of the given component (JSComponent/JSField/JSLabel), gives it a new name and moves it to a new parent form, specified as a parameter. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} newName - the new name of the cloned component {JSComponent} component - the component to clone {JSForm} newParentForm - the new parent form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // get an existing field to clone.
var field = solutionModel.getForm("formWithField").getField("fieldName");
// get the target form for the copied/cloned field
var form = solutionModel.getForm("targetForm");
// make a clone/copy of the field and re parent it to the target form.
var clone = solutionModel.cloneComponent("clonedField",field,form);
// show it
forms["targetForm"].controller.show(); |
|
|
|
|
Table Body (tbody) |
---|
id | cloneForm-String_JSForm |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Makes an exact copy of the given form and gives it the new name. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} newName - the new name for the form clone {JSForm} jsForm - the form to be cloned |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // get an existing form
var form = solutionModel.getForm("existingForm")
// make a clone/copy from it
var clone = solutionModel.cloneForm("clonedForm", form)
// add a new label to the clone
clone.newLabel("added label",50,50,80,20);
// show it
forms["clonedForm"].controller.show(); |
|
|
|
|
Table Body (tbody) |
---|
id | createBevelBorder-Number_String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createBevelBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(bevel_type, highlight_outer_color, highlight_inner_color, shadow_outer_color, shadow_inner_color) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a bevel border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} bevel_type - bevel border type (SM_BEVELTYPE.RAISED or SM_BEVELTYPE.LOWERED) {String} highlight_outer_color - bevel border highlight outer color {String} highlight_inner_color - bevel border highlight inner color {String} shadow_outer_color - bevel border shadow outer color {String} shadow_inner_color - bevel border shadow outer color |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createBevelBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00','#ff0000','#00ff00'); |
|
|
|
|
Table Body (tbody) |
---|
id | createEmptyBorder-Number_Number_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createEmptyBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(top_width, right_width, bottom_width, left_width) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create an empty border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} top_width - top width of empty border in pixels {Number} right_width - right width of empty border in pixels {Number} bottom_width - bottom width of empty border in pixels {Number} left_width - left width of empty border in pixels |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEmptyBorder(1,1,1,1); |
|
|
|
|
Table Body (tbody) |
---|
id | createEtchedBorder-Number_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createEtchedBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(bevel_type, highlight_color, shadow_color) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create an etched border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} bevel_type - bevel border type {String} highlight_color - bevel border highlight color {String} shadow_color - bevel border shadow color |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createEtchedBorder(SM_BEVELTYPE.RAISED,'#ff0000','#00ff00'); |
|
|
|
|
Table Body (tbody) |
---|
id | createFont-String_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createFont |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name - the name of the font {Number} style - the style of the font (PLAIN, BOLD, ITALIC or BOLD+ITALIC) {Number} size - the font size |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
var component = form.getComponent("someComponent")
component.fontType = solutionModel.createFont('Arial',SM_FONTSTYLE.BOLD,14); |
|
|
|
|
Table Body (tbody) |
---|
id | createLineBorder-Number_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createLineBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a line border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} thick - border thickness in pixels {String} color - color of the line border |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createLineBorder(1,'#ff0000'); |
|
|
|
|
Table Body (tbody) |
---|
id | createMatteBorder-Number_Number_Number_Number_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createMatteBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(top_width, right_width, bottom_width, left_width, color) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a matte border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} top_width - top width of matte border in pixels {Number} right_width - right width of matte border in pixels {Number} bottom_width - bottom width of matte border in pixels {Number} left_width - left width of matte border in pixels {String} color - border color |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createMatteBorder(1,1,1,1,"#00ff00"); |
|
|
|
|
Table Body (tbody) |
---|
id | createPageFormat-Number_Number_Number_Number_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createPageFormat |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(width, height, leftmargin, rightmargin, topmargin, bottommargin) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a page format string. Note: The unit specified for width, height and all margins MUST be the same. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} width - the specified width of the page to be printed. {Number} height - the specified height of the page to be printed. {Number} leftmargin - the specified left margin of the page to be printed. {Number} rightmargin - the specified right margin of the page to be printed. {Number} topmargin - the specified top margin of the page to be printed. {Number} bottommargin - the specified bottom margin of the page to be printed. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS); |
|
|
|
|
Table Body (tbody) |
---|
id | createPageFormat-Number_Number_Number_Number_Number_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createPageFormat |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a page format string. Note: The unit specified for width, height and all margins MUST be the same. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} width - the specified width of the page to be printed. {Number} height - the specified height of the page to be printed. {Number} leftmargin - the specified left margin of the page to be printed. {Number} rightmargin - the specified right margin of the page to be printed. {Number} topmargin - the specified top margin of the page to be printed. {Number} bottommargin - the specified bottom margin of the page to be printed. {Number} orientation - the specified orientation of the page to be printed; the default is Portrait mode |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS); |
|
|
|
|
Table Body (tbody) |
---|
id | createPageFormat-Number_Number_Number_Number_Number_Number_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createPageFormat |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a page format string. Note: The unit specified for width, height and all margins MUST be the same. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} width - the specified width of the page to be printed. {Number} height - the specified height of the page to be printed. {Number} leftmargin - the specified left margin of the page to be printed. {Number} rightmargin - the specified right margin of the page to be printed. {Number} topmargin - the specified top margin of the page to be printed. {Number} bottommargin - the specified bottom margin of the page to be printed. {Number} orientation - the specified orientation of the page to be printed; the default is Portrait mode {Number} units - the specified units for the width and height of the page to be printed; the default is pixels |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.defaultPageFormat = solutionModel.createPageFormat(612,792,72,72,72,72,SM_ORIENTATION.PORTRAIT,SM_UNITS.PIXELS); |
|
|
|
|
Table Body (tbody) |
---|
id | createRoundedBorder-Number_Number_Number_Number_String_String_String_String_NumberArray_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createRoundedBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(top_width, right_width, bottom_width, left_width, top_color, right_color, bottom_color, left_color, rounding_radius, border_style) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a special matte border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} top_width - top width of matte border in pixels {Number} right_width - right width of matte border in pixels {Number} bottom_width - bottom width of matte border in pixels {Number} left_width - left width of matte border in pixels {String} top_color - top border color {String} right_color - right border color {String} bottom_color - bottom border color {String} left_color - left border color {Number[]} rounding_radius - array with width/height of the arc to round the corners {String[]} border_style - the border styles for the four margins(top/left/bottom/left) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
// create a rectangle border (no rounded corners) and continous line
form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",0,null);
// create a border with rounded corners and dashed line (25 pixels drawn, then 25 pixels skipped)
// rounding_radius is an array of up to 8 numbers, order is: top-left,top-right,bottom-right,bottom-left (repetead twice - for width and height)
// form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",new Array(10,10,10,10),new Array(25,25)); |
|
|
|
|
Table Body (tbody) |
---|
id | createSpecialMatteBorder-Number_Number_Number_Number_String_String_String_String_Number_NumberArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createSpecialMatteBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| createSpecialMatteBorder |
Span |
---|
(top_width, right_width, bottom_width, left_width, top_color, right_color, bottom_color, left_color, rounding_radius, dash_pattern) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a special matte border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} top_width - top width of matte border in pixels {Number} right_width - right width of matte border in pixels {Number} bottom_width - bottom width of matte border in pixels {Number} left_width - left width of matte border in pixels {String} top_color - top border color {String} right_color - right border color {String} bottom_color - bottom border color {String} left_color - left border color {Number} rounding_radius - width of the arc to round the corners {Number[]} dash_pattern - the dash pattern of border stroke |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
// create a rectangle border (no rounded corners) and continous line
form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",0,null);
// create a border with rounded corners and dashed line (25 pixels drawn, then 25 pixels skipped)
// form.borderType = solutionModel.createSpecialMatteBorder(1,1,1,1,"#00ff00","#00ff00","#00ff00","#00ff00",10,new Array(25,25)); |
|
|
|
|
Table Body (tbody) |
---|
id | createTitledBorder-String_String_String_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createTitledBorder |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(title_text, font, color, title_justification, title_position) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Create a titled border string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} title_text - the text from border {String} font - title text font string {String} color - border color {Number} title_justification - title text justification {Number} title_position - bevel title text position |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',solutionModel.createFont('Arial',SM_FONTSTYLE.PLAIN,10),'#ff0000',SM_TITLEJUSTIFICATION.CENTER,SM_TITLEPOSITION.TOP); |
|
|
|
|
Table Body (tbody) |
---|
id | getDataSourceNode-String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDataSourceNode |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the specified data source node and returns information about the form (see JSDataSourceNode node). The JSDataSourceNode holds all calculations and foundset methods. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} dataSource - table data source |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var dsnode = solutionModel.getDataSourceNode('db:/example_data/customers');
var c = dsnode.getCalculation("myCalculation");
application.output("Name: " + c.getName() + ", Stored: " + c.isStored()); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the specified form object and returns information about the form (see JSForm node). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name - the specified name of the form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var myForm = solutionModel.getForm('existingFormName');
//get the style of the form (for all other properties see JSForm node)
var styleName = myForm.styleName; |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get an array of all forms. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSForm[] - an array of JSForm type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var forms = solutionModel.getForms()
for (var i in forms)
application.output(forms[i].name) |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get an array of forms, that are all based on datasource/servername. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} datasource - the datasource or servername |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSForm[] - an array of JSForm type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var forms = solutionModel.getForms(datasource)
for (var i in forms)
application.output(forms[i].name) |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get an array of forms, that are all based on datasource/servername and tablename. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} server - the datasource or servername {String} tablename - the tablename |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSForm[] - an array of JSForm type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var forms = solutionModel.getForms(datasource,tablename)
for (var i in forms)
application.output(forms[i].name) |
|
|
|
|
Table Body (tbody) |
---|
id | getGlobalMethod-String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getGlobalMethod |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets an existing global method by the specified name. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} scopeName - the scope in which the method is searched {String} name - the name of the specified global method |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var method = solutionModel.getGlobalMethod('globals', 'nameOfGlobalMethod');
if (method != null) application.output(method.code); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getGlobalMethods |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| The list of all global methods. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSMethod[] - an array of JSMethod type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var methods = solutionModel.getGlobalMethods('globals');
for (var x in methods)
application.output(methods[x].getName()); |
|
|
|
|
Table Body (tbody) |
---|
id | getGlobalMethods-String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getGlobalMethods |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| The list of all global methods. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} scopeName - limit to global methods of specified scope name |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSMethod[] - an array of JSMethod type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var methods = solutionModel.getGlobalMethods('globals');
for (var x in methods)
application.output(methods[x].getName()); |
|
|
|
|
Table Body (tbody) |
---|
id | getGlobalVariable-String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getGlobalVariable |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets an existing global variable by the specified name. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} scopeName - the scope in which the variable is searched {String} name - the specified name of the global variable |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var globalVariable = solutionModel.getGlobalVariable('globals', 'globalVariableName');
application.output(globalVariable.name + " has the default value of " + globalVariable.defaultValue); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getGlobalVariables |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets an array of all global variables. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSVariable[] - an array of JSVariable type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var globalVariables = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue); |
|
|
|
|
Table Body (tbody) |
---|
id | getGlobalVariables-String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getGlobalVariables |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets an array of all global variables. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} scopeName - limit to global vars of specified scope name |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSVariable[] - an array of JSVariable type elements |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var globalVariables = solutionModel.getGlobalVariables('globals');
for (var i in globalVariables)
application.output(globalVariables[i].name + " has the default value of " + globalVariables[i].defaultValue); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the specified media object; can be assigned to a button/label. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name - the specified name of the media object |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var myMedia = solutionModel.getMedia('button01.gif')
//now set the imageMedia property of your label or button
//myButton.imageMedia = myMedia
// OR
//myLabel.imageMedia = myMedia |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the list of all media objects. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSMedia[] - a list with all the media objects. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var mediaList = solutionModel.getMediaList();
if (mediaList.length != 0 && mediaList != null) {
for (var x in mediaList) {
application.output(mediaList[x]);
}
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getRelation |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets an existing relation by the specified name and returns a JSRelation Object. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} name - the specified name of the relation |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var relation = solutionModel.getRelation('name');
application.output("The primary server name is " + relation.primaryServerName);
application.output("The primary table name is " + relation.primaryTableName);
application.output("The foreign table name is " + relation.foreignTableName);
application.output("The relation items are " + relation.getRelationItems()); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getRelations |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets an array of all relations; or an array of all global relations if the specified table is NULL. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} datasource - the specified name of the datasource for the specified table |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| JSRelation[] - an array of all relations (all elements in the array are of type JSRelation) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var relations = solutionModel.getRelations( |
|
|
|
|
|