The css classes to be output for html tag. |
|
The id to be output for html tag. |
|
Get/set container height. |
|
The name of the component. |
|
returns the layouts package name |
|
returns the layouts spec name |
|
The style definition to be output in html tag. |
|
The tag type for html output. |
|
|
Returns a JSLayoutContainer that has the given name throughout the whole form hierarchy. |
|
Returns a JSWebComponent that has the given name through the whole hierarchy of JSLayoutContainers |
|
Returns a JSBean that has the given name. |
|
Returns all JSBeans of this form. |
|
Returns all JSBeans of this form. |
|
Returns a JSButton that has the given name. |
|
Returns all JSButtons of this form, including the ones without a name. |
|
Returns all JSButtons of this form, including the ones without a name. |
|
Returns a JSComponent that has the given name; if found it will be a JSField, JSLabel, JSButton, JSPortal, JSBean, JSWebComponent or JSTabPanel. |
|
Returns a array of all the JSComponents that a form has; they are of type JSField,JSLabel,JSButton,JSPortal,JSBean, JSWebComponents or JSTabPanel. |
|
Returns a array of all the JSComponents that a form has; they are of type JSField,JSLabel,JSButton,JSPortal,JSBean, JSWebComponent or JSTabPanel. |
|
The field with the specified name. |
|
Returns all JSField objects of this form, including the ones without a name. |
|
Returns all JSField objects of this form, including the ones without a name. |
|
Returns a JSLabel that has the given name. |
|
Returns all JSLabels of this form (not including its super form), including the ones without a name. |
|
Returns all JSLabels of this form (optionally including it super forms labels), including the ones without a name. |
|
Returns a JSLayoutContainer that has the given name of this container. |
|
Returns all JSLayoutContainers objects of this container |
|
Returns a JSPortal that has the given name. |
|
Returns all JSPortal objects of this form (not including the ones from the parent form), including the ones without a name. |
|
Returns all JSPortal objects of this form (optionally also the ones from the parent form), including the ones without a name. |
|
Returns a JSTabPanel that has the given name. |
|
Returns all JSTabPanels of this form (not including the ones from the parent form), including the ones without a name. |
|
Returns all JSTabPanels of this form (optionally the ones from the parent form), including the ones without a name. |
|
Returns a JSWebComponent that has the given name that is a child of this layout container. |
|
Returns all JSWebComponents of this form/container. |
|
Returns all JSWebComponents of this form/container. |
|
Creates a new JSBean object on the form - including the name of the JSBean object; the classname the JSBean object is based on, the "x" and "y" position of the JSBean object in pixels, as well as the width and height of the JSBean object in pixels. |
|
Creates a new button on the form with the given text, place, size and JSMethod as the onAction event triggered action. |
|
Creates a new JSField object on the form with the displayType of CALENDAR - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of CHECK (checkbox) - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of COMBOBOX - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of HTML_AREA - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of IMAGE_MEDIA - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSLabel object on the form - including the text of the label, the "x" and "y" position of the label object in pixels, the width and height of the label object in pixels. |
|
Creates a new JSLabel object on the form - including the text of the label, the "x" and "y" position of the label object in pixels, the width and height of the label object in pixels and a JSMethod action such as the method for an onAction event. |
|
Create a new layout container. |
|
Creates a new JSField object on the form with the displayType of LISTBOX - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of MULTISELECT_LISTBOX - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of PASSWORD - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSPortal object on the form - including the name of the JSPortal object; the relation the JSPortal object is based on, the "x" and "y" position of the JSPortal object in pixels, as well as the width and height of the JSPortal object in pixels. |
|
Creates a new JSField object on the form with the displayType of RADIOS (radio buttons) - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of RTF_AREA (enables more than one line of text to be displayed in a field) - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of SPINNER - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSTabPanel object on the form - including the name of the JSTabPanel object, the "x" and "y" position of the JSTabPanel object in pixels, as well as the width and height of the JSTabPanel object in pixels. |
|
Creates a new JSField object on the form with the displayType of TEXT_AREA - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of TEXT_FIELD - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSField object on the form with the displayType of TYPE_AHEAD - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
Creates a new JSWebComponent (spec based component) object on the RESPONSIVE form. |
|
Creates a new JSWebComponent (spec based component) object on the form. |
|
Remove a layout container (with all its children) from hierarchy. |
|
Removes a JSBean that has the specified name. |
|
Removes a JSButton that has the specified name. |
|
Removes a component (JSLabel, JSButton, JSField, JSPortal, JSBean, JSTabpanel, JSWebComponent) that has the given name. |
|
Removes a JSField that has the given name. |
|
Removes a JSLabel that has the given name. |
|
Removes a JSPortal that has the given name. |
|
Removes a JSTabPanel that has the given name. |
|
Removes a JSWebComponent that has the specified name. |
|
|
The css classes to be output for html tag. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.cssClasses = 'myContainer'; |
|
|
|
|
The id to be output for html tag. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.elementId = 'rowCol'; |
|
|
|
|
Get/set container height. This is only used for CSS Position Container. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.height = 300; |
|
|
|
|
The name of the component. Through this name it can also accessed in methods. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.name = 'col1'; |
|
|
|
|
returns the layouts package name |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
returns the layouts spec name |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
The style definition to be output in html tag. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.style = "background-color:'red'"; |
|
|
|
|
The tag type for html output. Default value is 'div'. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.tagType = 'span'; |
|
|
|
|
Get/set x location. Location is used for ordering in html output. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.x = 100;; |
|
|
|
|
Get/set Y location. Location is used for ordering in html output. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.y = 100;; |
|
|
|
|
|
findLayoutContainer(name) |
|
Returns a JSLayoutContainer that has the given name throughout the whole form hierarchy. |
|
|
Parameters the specified name of the container |
|
|
|
|
Sample var container = myForm.findLayoutContainer("row1");
application.output(container.name); |
|
|
|
|
Returns a JSWebComponent that has the given name through the whole hierarchy of JSLayoutContainers |
|
|
Parameters the specified name of the web component |
|
|
|
|
Sample var btn = myForm.findWebComponent("mycomponent");
application.output(mybean.typeName); |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.getAttribute('class'); |
|
|
|
|
Returns a JSBean that has the given name. |
|
|
Parameters the specified name of the bean |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var btn = myForm.getBean("mybean");
application.output(mybean.className); |
|
|
|
|
Returns all JSBeans of this form. |
|
|
Returns Array the list of all JSBeans on this forms |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var beans = myForm.getBeans();
for (var b in beans)
{
if (beans[b].name != null)
application.output(beans[b].name);
} |
|
|
|
|
getBeans(returnInheritedElements) |
|
Returns all JSBeans of this form. |
|
|
Parameters true to also return the elements from parent form |
|
|
|
|
Returns Array the list of all JSBeans on this forms |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var beans = myForm.getBeans();
for (var b in beans)
{
if (beans[b].name != null)
application.output(beans[b].name);
} |
|
|
|
|
Returns a JSButton that has the given name. |
|
|
Parameters the specified name of the button |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var btn = myForm.getButton("hello");
application.output(btn.text); |
|
|
|
|
Returns all JSButtons of this form, including the ones without a name. |
|
|
Returns Array the list of all JSButtons on this forms |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var buttons = myForm.getButtons();
for (var b in buttons)
{
if (buttons[b].name != null)
application.output(buttons[b].name);
else
application.output(buttons[b].text + " has no name ");
} |
|
|
|
|
getButtons(returnInheritedElements) |
|
Returns all JSButtons of this form, including the ones without a name. |
|
|
Parameters true to also return the elements from parent form |
|
|
|
|
Returns Array the list of all JSButtons on this forms |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var buttons = myForm.getButtons();
for (var b in buttons)
{
if (buttons[b].name != null)
application.output(buttons[b].name);
else
application.output(buttons[b].text + " has no name ");
} |
|
|
|
|
Returns a JSComponent that has the given name; if found it will be a JSField, JSLabel, JSButton, JSPortal, JSBean, JSWebComponent or JSTabPanel. |
|
|
Parameters the specified name of the component |
|
|
|
|
Returns JSComponent a JSComponent object (might be a JSField, JSLabel, JSButton, JSPortal, JSBean, JSWebComponent or JSTabPanel) |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var cmp = frm.getComponent("componentName");
application.output("Component type and name: " + cmp); |
|
|
|
|
Returns a array of all the JSComponents that a form has; they are of type JSField,JSLabel,JSButton,JSPortal,JSBean, JSWebComponents or JSTabPanel. |
|
|
Returns Array an array of all the JSComponents on the form. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.getForm("myForm");
var components = form.getComponents();
for (var i in components)
application.output("Component type and name: " + components[i]); |
|
|
|
|
getComponents(returnInheritedElements) |
|
Returns a array of all the JSComponents that a form has; they are of type JSField,JSLabel,JSButton,JSPortal,JSBean, JSWebComponent or JSTabPanel. |
|
|
Parameters true to also return the elements from the parent form |
|
|
|
|
Returns Array an array of all the JSComponents on the form. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.getForm("myForm");
var components = form.getComponents();
for (var i in components)
application.output("Component type and name: " + components[i]); |
|
|
|
|
The field with the specified name. |
|
|
Parameters the specified name of the field |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.getForm("myForm");
var field = form.getField("myField");
application.output(field.dataProviderID); |
|
|
|
|
Returns all JSField objects of this form, including the ones without a name. |
|
|
Returns Array all JSField objects of this form |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var fields = frm.getFields();
for (var f in fields)
{
var fname = fields[f].name;
if (fname != null)
application.output(fname);
} |
|
|
|
|
getFields(returnInheritedElements) |
|
Returns all JSField objects of this form, including the ones without a name. |
|
|
Parameters true to also return the elements from the parent form |
|
|
|
|
Returns Array all JSField objects of this form |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var fields = frm.getFields();
for (var f in fields)
{
var fname = fields[f].name;
if (fname != null)
application.output(fname);
} |
|
|
|
|
Returns a JSLabel that has the given name. |
|
|
Parameters the specified name of the label |
|
|
|
|
Returns JSComponent a JSLabel object (or null if the label with the specified name does not exist) |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var label = frm.getLabel("myLabel");
application.output(label.text); |
|
|
|
|
Returns all JSLabels of this form (not including its super form), including the ones without a name. |
|
|
Returns Array all JSLabels on this form |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var labels = frm.getLabels();
for (var i in labels)
{
var lname = labels[i].name;
if (lname != null)
application.output(lname);
} |
|
|
|
|
getLabels(returnInheritedElements) |
|
Returns all JSLabels of this form (optionally including it super forms labels), including the ones without a name. |
|
|
Parameters true to also return the elements from parent form |
|
|
|
|
Returns Array all JSLabels on this form |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var labels = frm.getLabels();
for (var i in labels)
{
var lname = labels[i].name;
if (lname != null)
application.output(lname);
} |
|
|
|
|
Returns a JSLayoutContainer that has the given name of this container.
Use findLayoutContainer() method to find a JSLayoutContainter through the hierarchy |
|
|
Parameters the specified name of the container |
|
|
|
|
Sample var container = myForm.getLayoutContainer("row1");
application.output(container.name); |
|
|
|
|
Returns all JSLayoutContainers objects of this container |
|
|
Returns Array all JSLayoutContainers objects of this container |
|
|
Sample var frm = solutionModel.getForm("myForm");
var containers = frm.getLayoutContainers();
for (var c in containers)
{
var fname = containers[c].name;
application.output(fname);
} |
|
|
|
|
Returns a JSPortal that has the given name. |
|
|
Parameters the specified name of the portal |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var portal = frm.getPortal("myPortal");
portal.initialSort = 'my_table_text desc'; |
|
|
|
|
Returns all JSPortal objects of this form (not including the ones from the parent form), including the ones without a name. |
|
|
Returns Array an array of all JSPortal objects on this form |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var portals = frm.getPortals();
for (var i in portals)
{
var p = portals[i];
if (p.name != null)
application.output(p.name);
else
application.output("unnamed portal detected");
} |
|
|
|
|
getPortals(returnInheritedElements) |
|
Returns all JSPortal objects of this form (optionally also the ones from the parent form), including the ones without a name. |
|
|
Parameters true to also return the elements from parent form |
|
|
|
|
Returns Array an array of all JSPortal objects on this form |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var portals = frm.getPortals();
for (var i in portals)
{
var p = portals[i];
if (p.name != null)
application.output(p.name);
else
application.output("unnamed portal detected");
} |
|
|
|
|
Returns a JSTabPanel that has the given name. |
|
|
Parameters the specified name of the tabpanel |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var tabPanel = frm.getTabPanel("myTabPanel");
var tabs = tabPanel.getTabs();
for (var i=0; i<tabs.length; i++)
application.output("Tab " + i + " has text " + tabs[i].text); |
|
|
|
|
Returns all JSTabPanels of this form (not including the ones from the parent form), including the ones without a name. |
|
|
Returns Array an array of all JSTabPanel objects on this form |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var tabPanels = frm.getTabPanels();
for (var i in tabPanels)
{
var tp = tabPanels[i];
if (tp.name != null)
application.output("Tab " + tp.name + " has text " + tp.text);
else
application.output("Tab with text " + tp.text + " has no name");
} |
|
|
|
|
getTabPanels(returnInheritedElements) |
|
Returns all JSTabPanels of this form (optionally the ones from the parent form), including the ones without a name. |
|
|
Parameters true to also return the elements from parent form |
|
|
|
|
Returns Array an array of all JSTabPanel objects on this form |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var frm = solutionModel.getForm("myForm");
var tabPanels = frm.getTabPanels();
for (var i in tabPanels)
{
var tp = tabPanels[i];
if (tp.name != null)
application.output("Tab " + tp.name + " has text " + tp.text);
else
application.output("Tab with text " + tp.text + " has no name");
} |
|
|
|
|
Returns a JSWebComponent that has the given name that is a child of this layout container.
Use findWebComponent() to find a webcomponent through the hierarchy |
|
|
Parameters the specified name of the web component |
|
|
|
|
Sample var btn = myForm.getWebComponent("mycomponent");
application.output(mybean.typeName); |
|
|
|
|
Returns all JSWebComponents of this form/container.
If this method is called on a form, then it will return all web components on that form.
If the form is responsive, it will return the web components from all the containers. |
|
|
Returns Array the list of all JSWebComponent on this forms |
|
|
Sample var webComponents = myForm.getWebComponents();
for (var i in webComponents)
{
if (webComponents[i].name != null)
application.output(webComponents[i].name);
} |
|
|
|
|
getWebComponents(returnInheritedElements) |
|
Returns all JSWebComponents of this form/container.
If this method is called on a form, then it will return all web components on that form.
If the form is responsive, it will return the web components from all the containers. |
|
|
Parameters true to also return the elements from parent form |
|
|
|
|
Returns Array the list of all JSWebComponents on this forms |
|
|
Sample var webComponents = myForm.getWebComponents(false);
for (var i in webComponents)
{
if (webComponents[i].name != null)
application.output(webComponents[i].name);
} |
|
|
|
|
newBean(name, className, x, y, width, height) |
|
Creates a new JSBean object on the form - including the name of the JSBean object; the classname the JSBean object is based on, the "x" and "y" position of the JSBean object in pixels, as well as the width and height of the JSBean object in pixels. |
|
|
Parameters the specified name of the JSBean object |
|
the class name of the JSBean object |
|
the horizontal "x" position of the JSBean object in pixels |
|
the vertical "y" position of the JSBean object in pixels |
|
the width of the JSBean object in pixels |
|
the height of the JSBean object in pixels |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', 'db:/server1/table1', null, true, 800, 600);
var bean = form.newBean('bean','com.servoy.extensions.beans.dbtreeview.DBTreeView',200,200,300,300);
forms['newForm1'].controller.show(); |
|
|
|
|
newButton(txt, x, y, width, height, action) |
|
Creates a new button on the form with the given text, place, size and JSMethod as the onAction event triggered action. |
|
|
Parameters the x coordinate of the button location on the form |
|
the y coordinate of the button location on the form |
|
the method assigned to handle an onAction event |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var method = form.newMethod('function onAction(event) { application.output("onAction intercepted on " + event.getFormName()); }');
var button = form.newButton('myButton', 10, 10, 100, 30, method);
application.output("The new button: " + button.name + " has the following onAction event handling method assigned " + button.onAction.getName()); |
|
|
|
|
newCalendar(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of CALENDAR - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of CALENDAR |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var calendar = form.newCalendar(myDataProvider, 100, 100, 200, 200);
forms['newForm1'].controller.show(); |
|
|
|
|
newCheck(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of CHECK (checkbox) - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of CHECK (checkbox) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var calendar = form.newCheck(myDataProvider, 100, 100, 200, 200);
forms['newForm1'].controller.show(); |
|
|
|
|
newComboBox(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of COMBOBOX - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of COMBOBOX |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var calendar = form.newComboBox(myDataProvider, 100, 100, 200, 200);
forms['newForm1'].controller.show(); |
|
|
|
|
newField(dataprovider, type, x, y, width, height) |
|
Creates a new JSField object on the form - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the display type of the JSField object (see the Solution Model -> JSField node for display types) |
|
the horizontal "x" position of the JSField object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object (of the specified display type) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var variable = form.newVariable('myVar', JSVariable.TEXT);
variable.defaultValue = "'This is a default value (with triple quotes)!'";
var field = form.newField(variable, JSField.TEXT_FIELD, 100, 100, 200, 200);
forms['newForm1'].controller.show(); |
|
|
|
|
newHtmlArea(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of HTML_AREA - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a JSField object on the form with the displayType of HTML_AREA |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var textProvider = form.newVariable('myVar',JSVariable.TEXT);
textProvider.defaultValue = "'This is a triple quoted text!'";
var htmlArea = myListViewForm.newHtmlArea(textProvider,100,100,100,100);
forms['newForm1'].controller.show(); |
|
|
|
|
newImageMedia(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of IMAGE_MEDIA - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of IMAGE_MEDIA |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var myMediaVar = form.newVariable("media", JSVariable.MEDIA);
var imageMedia = form.newImageMedia(myMediaVar,100,100,200,200)
forms['newForm1'].controller.show(); |
|
|
|
|
newLabel(txt, x, y, width, height) |
|
Creates a new JSLabel object on the form - including the text of the label, the "x" and "y" position of the label object in pixels, the width and height of the label object in pixels. |
|
|
Parameters the specified text of the label object |
|
the horizontal "x" position of the label object in pixels |
|
the vertical "y" position of the label object in pixels |
|
the width of the label object in pixels |
|
the height of the label object in pixels |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var label = form.newLabel('The text on the label', 140, 140, 50, 20);
forms['newForm1'].controller.show(); |
|
|
|
|
newLabel(txt, x, y, width, height, action) |
|
Creates a new JSLabel object on the form - including the text of the label, the "x" and "y" position of the label object in pixels, the width and height of the label object in pixels and a JSMethod action such as the method for an onAction event. |
|
|
Parameters the specified text of the label object |
|
the horizontal "x" position of the label object in pixels |
|
the vertical "y" position of the label object in pixels |
|
the width of the label object in pixels |
|
the height of the label object in pixels |
|
the event action JSMethod of the label object |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var label = form.newLabel('The text on the label', 140, 140, 50, 20);
forms['newForm1'].controller.show(); |
|
|
|
|
newLayoutContainer(position) |
|
Create a new layout container. The position is used to determine the generated order in html markup.
This method can only be used in responsive forms.
If you want to use default values and so on from a layout package (like 12grid) or if you use the solution model
to create a form that is saved back into the workspace (servoyDeveloper.save(form)) then you have to set the
packageName and specName properties. So that it works later on in the designer. |
|
|
Parameters the position of JSWebComponent object in its parent container |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var container = form.newLayoutContainer(1); |
|
|
|
|
newListBox(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of LISTBOX - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of LISTBOX |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', 'myServer', 'myTable', null, true, 800, 600);
var list = form.newListBox(myDataProvider, 100, 100, 200, 200);
forms['newForm1'].controller.show(); |
|
|
|
|
newMultiSelectListBox(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of MULTISELECT_LISTBOX - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of MULTISELECT_LISTBOX |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', 'myServer', 'myTable', null, true, 800, 600);
var calendar = form.newMultiSelectListBox(myDataProvider, 100, 100, 200, 200);
forms['newForm1'].controller.show(); |
|
|
|
|
newPassword(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of PASSWORD - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of PASSWORD |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var pass = form.newPassword(scopes.globals.aVariable, 100, 100, 70, 30);
forms['newForm1'].controller.show(); |
|
|
|
|
newPortal(name, relation, x, y, width, height) |
|
Creates a new JSPortal object on the form - including the name of the JSPortal object; the relation the JSPortal object is based on, the "x" and "y" position of the JSPortal object in pixels, as well as the width and height of the JSPortal object in pixels. |
|
|
Parameters the specified name of the JSPortal object |
|
the relation of the JSPortal object |
|
the horizontal "x" position of the JSPortal object in pixels |
|
the vertical "y" position of the JSPortal object in pixels |
|
the width of the JSPortal object in pixels |
|
the height of the JSPortal object in pixels |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', 'db:/server1/table1', null, true, 800, 600);
var relation = solutionModel.newRelation('parentToChild','db:/server1/table1','db:/server2/table2',JSRelation.INNER_JOIN);
relation.newRelationItem('another_parent_table_id', '=', 'another_child_table_parent_id');
var portal = form.newPortal('portal',relation,200,200,300,300);
portal.newField('someColumn',JSField.TEXT_FIELD,200,200,120);
forms['newForm1'].controller.show(); |
|
|
|
|
newRadios(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of RADIOS (radio buttons) - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a JSField object with the displayType of RADIOS (radio buttons) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', myDatasource, null, true, 800, 600);
var vlist = solutionModel.newValueList('options',JSValueList.CUSTOM_VALUES);
vlist.customValues = "value1\nvalue2\nvalue3";
var radios = form.newRadios('columnDataProvider',100,100,200,200);
radios.valuelist = vlist; |
|
|
|
|
newRtfArea(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of RTF_AREA (enables more than one line of text to be displayed in a field) - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a JSField object with the displayType of RTF_AREA |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1',myDatasource,null,true,800,600);
var rtf_area = form.newRtfArea('columnDataProvider',100,100,100,100);
forms['newForm1'].controller.show(); |
|
|
|
|
newSpinner(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of SPINNER - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a new JSField object on the form with the displayType of SPINNER |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1', 'myServer', 'myTable', null, true, 800, 600);
var spinner = form.newSpinner(myDataProvider, 10, 460, 100, 20);
forms['newForm1'].controller.show(); |
|
|
|
|
newTabPanel(name, x, y, width, height) |
|
Creates a new JSTabPanel object on the form - including the name of the JSTabPanel object, the "x" and "y" position of the JSTabPanel object in pixels, as well as the width and height of the JSTabPanel object in pixels. |
|
|
Parameters the specified name of the JSTabPanel object |
|
the horizontal "x" position of the JSTabPanel object in pixels |
|
the vertical "y" position of the JSTabPanel object in pixels |
|
the width of the JSTabPanel object in pixels |
|
the height of the JSTabPanel object in pixels |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('parentForm','db:/server1/parent_table',null,false,640,480);
var childOne = solutionModel.newForm('childOne','db:/server1/child_table',null,false,400,300);
childOne.newField('child_table_text', JSField.TEXT_FIELD,10,10,100,20);
var parentToChild = solutionModel.newRelation('parentToChild','db:/server1/parent_table','db:/server1/child_table',JSRelation.INNER_JOIN);
parentToChild.newRelationItem('parent_table_id','=','child_table_parent_id');
var childTwo = solutionModel.newForm('childTwo','db:/server1/my_table',null,false,400,300);
childTwo.newField('my_table_image', JSField.IMAGE_MEDIA,10,10,100,100);
var tabPanel = form.newTabPanel('tabs',10,10,620,460);
tabPanel.newTab('tab1','Child One',childOne,parentToChild);
tabPanel.newTab('tab2','Child Two',childTwo);
forms['parentForm'].controller.show(); |
|
|
|
|
newTextArea(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of TEXT_AREA - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSTabPanel object in pixels |
|
the vertical "y" position of the JSTabPanel object in pixels |
|
the width of the JSTabPanel object in pixels |
|
the height of the JSTabPanel object in pixels |
|
|
|
|
Returns JSField a JSField object with the displayType of TEXT_AREA |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1',myDatasource,null,true,800,600);
var globalVar = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
globalVar.defaultValue = "'Type your text in here'";
var textArea = form.newTextArea(globalVar,100,100,300,150);
forms['newForm1'].controller.show(); |
|
|
|
|
newTextField(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of TEXT_FIELD - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a JSField object with the displayType of TEXT_FIELD |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1',myDatasource,null,true,800,600);
//choose the dataprovider or jsvariable you want for the Text Field
var x = null;
//global jsvariable as the dataprovider
//x = solutionModel.newGlobalVariable('globals', 'myGlobal',JSVariable.TEXT);
//x.defaultValue = "'Text from a global variable'";
//or a form jsvariable as the dataprovider
//x = form.newVariable('myFormVar',JSVariable.TEXT);
//x.defaultValue = "'Text from a form variable'";
var textField = form.newTextField(x,100,100,200,50);
//or a column data provider as the dataprovider
//textField.dataProviderID = columnTextDataProvider;
forms['newForm1'].controller.show(); |
|
|
|
|
newTypeAhead(dataprovider, x, y, width, height) |
|
Creates a new JSField object on the form with the displayType of TYPE_AHEAD - including the dataprovider/JSVariable of the JSField object, the "x" and "y" position of the JSField object in pixels, as well as the width and height of the JSField object in pixels. |
|
|
Parameters the specified dataprovider name/JSVariable of the JSField object |
|
the horizontal "x" position of the JSfield object in pixels |
|
the vertical "y" position of the JSField object in pixels |
|
the width of the JSField object in pixels |
|
the height of the JSField object in pixels |
|
|
|
|
Returns JSField a JSField object with the displayType of TYPE_AHEAD |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newForm1',myDatasource,null,true,800,600);
var vlist = solutionModel.newValueList('options',JSValueList.CUSTOM_VALUES);
vlist.customValues = "value1\nvalue2\nvalue3";
var typeAhead = form.newTypeAhead(columnTextDataProvider,100,100,300,200);
typeAhead.valuelist = vlist;
forms['newForm1'].controller.show(); |
|
|
|
|
newWebComponent(name, type, position) |
|
Creates a new JSWebComponent (spec based component) object on the RESPONSIVE form. |
|
|
Parameters the specified name of the JSWebComponent object |
|
the webcomponent name as it appears in the spec |
|
the position of JSWebComponent object in its parent container |
|
|
|
|
Sample var form = solutionModel.newForm('newForm1', 'db:/server1/table1', null, true, 800, 600);
var container = myForm.getLayoutContainer("row1")
var bean = container.newWebComponent('bean','mypackage-testcomponent',1); |
|
|
|
|
newWebComponent(name, type, x, y, width, height) |
|
Creates a new JSWebComponent (spec based component) object on the form. |
|
|
Parameters the specified name of the JSWebComponent object |
|
the webcomponent name as it appears in the spec |
|
the horizontal "x" position of the JSWebComponent object in pixels |
|
the vertical "y" position of the JSWebComponent object in pixels |
|
the width of the JSWebComponent object in pixels |
|
the height of the JSWebComponent object in pixels |
|
|
|
|
Sample var form = solutionModel.newForm('newForm1', 'db:/server1/table1', null, true, 800, 600);
var bean = form.newWebComponent('bean','mypackage-testcomponent',200,200,300,300);
forms['newForm1'].controller.show(); |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.putAttribute('class','container fluid'); |
|
|
|
|
Remove a layout container (with all its children) from hierarchy. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample layoutContainer.remove(); |
|
|
|
|
Removes a JSBean that has the specified name. Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the JSBean to be removed |
|
|
|
|
Returns Boolean true if the JSBean has been removed; false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.getForm('myform');
form.removeBean('mybean') |
|
|
|
|
Removes a JSButton that has the specified name. Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the JSButton to be removed |
|
|
|
|
Returns Boolean true if the JSButton has been removed; false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.newForm('newFormX',myDatasource,null,true,800,600);
var b1 = form.newButton('This is button1',100,100,200,50,null);
b1.name = 'b1';
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX'); if (form.removeButton('b1') == true) application.output('Button has been removed ok'); else application.output('Button could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var b2 = form.newButton('Click here to remove button1',100,230,200,50,jsmethod);
b2.name = 'b2';
forms['newFormX'].controller.show(); |
|
|
|
|
Removes a component (JSLabel, JSButton, JSField, JSPortal, JSBean, JSTabpanel, JSWebComponent) that has the given name. It is the same as calling "if(!removeLabel(name) && !removeButton(name) ....)".
Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the component to be deleted |
|
|
|
|
Returns Boolean true if component has been successfully deleted; false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.newForm('newFormX','db:/server1/parent_table',null,true,1000,750);
var jsbutton = form.newButton('JSButton to delete',100,100,200,50,null);
jsbutton.name = 'jsb';
var jslabel = form.newLabel('JSLabel to delete',100,200,200,50,null);
jslabel.name = 'jsl';
jslabel.transparent = false;
jslabel.background = 'green';
var jsfield = form.newField('scopes.globals.myGlobalVariable',JSField.TEXT_FIELD,100,300,200,50);
jsfield.name = 'jsf';
var relation = solutionModel.newRelation('parentToChild','db:/server1/parent_table','db:/server1/child_table',JSRelation.INNER_JOIN);
relation.newRelationItem('parent_table_id', '=', 'child_table_id');
var jsportal = form.newPortal('jsp',relation,100,400,300,300);
jsportal.newField('child_table_id',JSField.TEXT_FIELD,200,200,120);
var childOne = solutionModel.newForm('childOne','db:/server1/child_table',null,false,400,300);
childOne.newField('child_table_id', JSField.TEXT_FIELD,10,10,100,20);
var childTwo = solutionModel.newForm('childTwo','server1','other_table',null,false,400,300);
childTwo.newField('some_table_id', JSField.TEXT_FIELD,10,10,100,100);
var jstabpanel = form.newTabPanel('jst',450,30,620,460);
jstabpanel.newTab('tab1','Child One',childOne,relation);
jstabpanel.newTab('tab2','Child Two',childTwo);
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX');\n if ((form.removeComponent('jsb') == true) && (form.removeComponent('jsl') == true) && (form.removeComponent('jsf') == true) && (form.removeComponent('jsp') == true) & (form.removeComponent('jst') == true)) application.output('Components removed ok'); else application.output('Some component(s) could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove form components',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show(); |
|
|
|
|
Removes a JSField that has the given name. Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the JSField to remove |
|
|
|
|
Returns Boolean true is the JSField has been successfully removed; false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.newForm('newFormX',myDatasource,null,true,800,600);
var jsfield = form.newField(scopes.globals.myGlobalVariable,JSField.TEXT_FIELD,100,300,200,50);
jsfield.name = 'jsf';
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX');\n if (form.removeComponent('jsf') == true) application.output('Field has been removed ok'); else application.output('Field could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove the field',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show(); |
|
|
|
|
Removes a JSLabel that has the given name. Returns true if removal successful, false otherwise |
|
|
Parameters the specified name of the JSLabel to be removed |
|
|
|
|
Returns Boolean true if the JSLabel with the given name has successfully been removed; false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var form = solutionModel.newForm('newFormX',myDatasource,null,true,1000,750);
var jslabel = form.newLabel('JSLabel to delete',100,200,200,50,null);
jslabel.name = 'jsl';
jslabel.transparent = false;
jslabel.background = 'green';
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX'); if (form.removeComponent('jsl') == true) application.output('Label has been removed'); else application.output('Label could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove the green label',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show(); |
|
|
|
|
Removes a JSPortal that has the given name. Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the JSPortal to be removed |
|
|
|
|
Returns Boolean true if the JSPortal has successfully been removed; false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newFormX',myDatasource,null,true,800,600);
var relation = solutionModel.newRelation('parentToChild','db:/server1/myTable','db:/server1/myOtherTable',JSRelation.INNER_JOIN);
relation.newRelationItem('parent_table_id', '=', 'child_table_id');
var jsportal = form.newPortal('jsp',relation,100,400,300,300);
jsportal.newField('child_table_id',JSField.TEXT_FIELD,200,200,120);
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX');\n if (form.removeComponent('jsp') == true) application.output('Portal removed ok'); else application.output('Portal could not be deleted'); forms['newFormX'].controller.recreateUI();}");
var removerButton = form.newButton('Click here to remove the portal',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show(); |
|
|
|
|
Removes a JSTabPanel that has the given name. Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the JSTabPanel to be removed |
|
|
|
|
Returns Boolean true is the JSTabPanel has been successfully removed, false otherwise |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = solutionModel.newForm('newFormX','db:/server1/parent_table',null,false,800,600);
var childOne = solutionModel.newForm('childOne','db:/server1/child_table',null,false,400,300);
childOne.newField('child_table_text', JSField.TEXT_FIELD,10,10,100,20);
var parentToChild = solutionModel.newRelation('parentToChild','db:/server1/parent_table','db:/server1/child_table',JSRelation.INNER_JOIN);
parentToChild.newRelationItem('parent_table_id','=','child_table_id');
var childTwo = solutionModel.newForm('childTwo','db:/server1/another_table',null,false,400,300);
childTwo.newField('columnDataProvider', JSField.TEXT_FIELD,10,10,100,100);
var tabPanel = form.newTabPanel('jst',10,10,620,460);
tabPanel.newTab('tab1','Child One',childOne,parentToChild);
tabPanel.newTab('tab2','Child Two',childTwo);
var jsmethod = form.newMethod("function removeMe(event) { var form = solutionModel.getForm('newFormX');\n if (form.removeComponent('jst') == true)\n application.output('TabPanel has been removed ok');\n else\n application.output('TabPanel could not be deleted');\n forms['newFormX'].controller.recreateUI();\n}");
var removerButton = form.newButton('Click here to remove the tab panel',450,500,250,50,jsmethod);
removerButton.name = 'remover';
forms['newFormX'].controller.show(); |
|
|
|
|
Removes a JSWebComponent that has the specified name. Returns true if removal was successful, false otherwise. |
|
|
Parameters the specified name of the JSWebComponent to be removed |
|
|
|
|
Returns Boolean true if the JSWebComponent has been removed; false otherwise |
|
|
Sample var form = solutionModel.getForm('myform');
form.removeWebComponent('mybean') |
|
|
|
|
|
|