Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSButton |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getButton |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Retrieves a button from the portal based on the name of the button. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} name – The name of the button to retrieve. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSButton – A JSButton instance that corresponds to the button with the specified name. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
var btn = childrenPortal.newButton('Click me!', 400, 100, 20, clickMethod);
btn.name = 'clickMeBtn'; // Give a name to the button, so we can retrieve it by name later.
// Retrieve the button by name and do something with it.
var btnBack = childrenPortal.getButton('clickMeBtn');
btnBack.background = 'yellow';
// Retrieve the button through the array of all buttons and do something with it.
var allButtons = childrenPortal.getButtons();
var btnBackAgain = allButtons[0];
btnBackAgain.foreground = 'red';
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getButtons|class=node}{tr:id=name}{td}h6.getButtons{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getButtons{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Retrieves an array with all buttons in the portal.{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSButton]\[] -- An array with all buttons in the portal.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSButton[] |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getButtons |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Retrieves an array with all buttons in the portal. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSButton[] – An array with all buttons in the portal. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
var btn = childrenPortal.newButton('Click me!', 400, 100, 20, clickMethod);
btn.name = 'clickMeBtn'; // Give a name to the button, so we can retrieve it by name later.
// Retrieve the button by name and do something with it.
var btnBack = childrenPortal.getButton('clickMeBtn');
btnBack.background = 'yellow';
// Retrieve the button through the array of all buttons and do something with it.
var allButtons = childrenPortal.getButtons();
var btnBackAgain = allButtons[0];
btnBackAgain.foreground = 'red';
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getField|class=node}{tr:id=name}{td}h6.getField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}getField{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}Retrieves a field from this portal based on the name of the field.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[String]} name -- The name of the field to retrieve.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance corresponding to the field with the specified name.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getField |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Retrieves a field from this portal based on the name of the field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} name – The name of the field to retrieve. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance corresponding to the field with the specified name. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newField('my_table_date', JSField.CALENDAR, 0, 60, 20);
var tfield = childrenPortal.newField('my_table_text', JSField.TEXT_FIELD, 60, 60, 20);
tfield.name = 'textField'; // Give a name to the field so we can retrieve it later by name.
// Retrieve the text field by its name and do something with it.
var textFieldBack = childrenPortal.getField('textField');
textFieldBack.background = 'yellow';
// Retrieve the calendar field through the array of all fields and do something with it.
var allFields = childrenPortal.getFields();
var calFieldBack = allFields[0];
calFieldBack.foreground = 'red';
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getFields|class=node}{tr:id=name}{td}h6.getFields{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getFields{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Retrieves an array with all fields in a portal.{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField]\[] -- An array with JSField instances corresponding to all fields in the portal.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField[] |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getFields |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Retrieves an array with all fields in a portal. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField[] – An array with JSField instances corresponding to all fields in the portal. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newField('my_table_date', JSField.CALENDAR, 0, 60, 20);
var tfield = childrenPortal.newField('my_table_text', JSField.TEXT_FIELD, 60, 60, 20);
tfield.name = 'textField'; // Give a name to the field so we can retrieve it later by name.
// Retrieve the text field by its name and do something with it.
var textFieldBack = childrenPortal.getField('textField');
textFieldBack.background = 'yellow';
// Retrieve the calendar field through the array of all fields and do something with it.
var allFields = childrenPortal.getFields();
var calFieldBack = allFields[0];
calFieldBack.foreground = 'red';
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getIntercellSpacing|class=node}{tr:id=name}{td}h6.getIntercellSpacing{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getIntercellSpacing{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.{td}{tr}{tr:id=ret}{td}*Returns*\\ [String] -- A java.awt.Dimension object holding the horizontal and vertical intercell spacing.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
id | getIntercellSpacing |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getIntercellSpacing |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getIntercellSpacing |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
The additional spacing between cell rows. Is composed from the horizontal spacing and the vertical spacing. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns String – A java.awt.Dimension object holding the horizontal and vertical intercell spacing. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var spacing = childrenPortal.getIntercellSpacing();
application.output("horizontal spacing: " + spacing.width);
application.output("vertical spacing: " + spacing.height);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLabel|class=node}{tr:id=name}{td}h6.getLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabel{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}Retrieves a label from this portal based on the name of the label.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[String]} name -- The name of the label to retrieve.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSLabel] -- A JSLabel instance corresponding to the label with the specified name.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSLabel |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getLabel |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Retrieves a label from this portal based on the name of the label. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} name – The name of the label to retrieve. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSLabel – A JSLabel instance corresponding to the label with the specified name. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20);
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20);
textLabel.name = 'textLabel'; // Give a name to this label, so we can retrieve it by name.
// Retrieve the second label by name.
var textLabelBack = childrenPortal.getLabel('textLabel');
textLabelBack.background = 'yellow';
// Retrieve the first label through the array of all labels.
var allLabels = childrenPortal.getLabels();
var calLabelBack = allLabels[0];
calLabelBack.foreground = 'red';
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLabels|class=node}{tr:id=name}{td}h6.getLabels{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabels{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Retrieves all labels from the portal.{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSLabel]\[] -- An array of JSLabel instances corresponding to all labels in the portal.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSLabel[] |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getLabels |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Retrieves all labels from the portal. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSLabel[] – An array of JSLabel instances corresponding to all labels in the portal. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20);
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20);
textLabel.name = 'textLabel'; // Give a name to this label, so we can retrieve it by name.
// Retrieve the second label by name.
var textLabelBack = childrenPortal.getLabel('textLabel');
textLabelBack.background = 'yellow';
// Retrieve the first label through the array of all labels.
var allLabels = childrenPortal.getLabels();
var calLabelBack = allLabels[0];
calLabelBack.foreground = 'red';
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUUID|class=node}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Returns the UUID of this component.{td}{tr}{tr:id=ret}{td}*Returns*\\ [UUID]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| UUID |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getUUID |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns the UUID of this component. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns UUID |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var button_uuid = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newButton|class=node}{tr:id=name}{td}h6.newButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]{span}{span:id=iets|style=float: left; font-weight: bold;}newButton{span}{span:id=iets|style=float: left;}\(text, x, width, height, action){span}{td}{tr}{tr:id=des}{td}Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[String]} text -- The text to be displayed on the button.
\{[Number]} x -- The x coordinate of the button. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the button.
\{[Number]} height -- The height of the button. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
\{[Object]} action -- The JSMethod object that should be executed when the button is clicked.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSButton] -- A JSButton instance representing the newly created button.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSButton |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newButton |
Span |
---|
| (text, x, width, height, action) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} text – The text to be displayed on the button. {Number} x – The x coordinate of the button. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the button. {Number} height – The height of the button. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. {Object} action – The JSMethod object that should be executed when the button is clicked. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSButton – A JSButton instance representing the newly created button. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newButton('Click me!', 400, 100, 20, clickMethod);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCalendar|class=node}{tr:id=name}{td}h6.newCalendar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newCalendar{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new calendar field in the portal. It is equivalent to calling "newField"
with the type JSField.CALENDAR.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created calendar.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newCalendar |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newCalendar |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new calendar field in the portal. It is equivalent to calling "newField" with the type JSField.CALENDAR. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created calendar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newCalendar('my_table_date', 0, 60, 20);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCheck|class=node}{tr:id=name}{td}h6.newCheck{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newCheck{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new checkbox field in the portal. It is equivalent to calling "newField"
with the type JSField.CHECKS.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created checkbox field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newCheck |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new checkbox field in the portal. It is equivalent to calling "newField" with the type JSField.CHECKS. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created checkbox field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var chk = childrenPortal.newCheck('my_table_options', 60, 60, 50);
chk.valuelist = vlist;
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newComboBox|class=node}{tr:id=name}{td}h6.newComboBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newComboBox{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new combobox field in the portal. It is equivalent to calling "newField"
with the type JSField.COMBOBOX.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created combobox field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newComboBox |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newComboBox |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new combobox field in the portal. It is equivalent to calling "newField" with the type JSField.COMBOBOX. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created combobox field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var cmb = childrenPortal.newComboBox('my_table_options', 120, 160, 20);
cmb.valuelist = vlist;
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newField|class=node}{tr:id=name}{td}h6.newField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newField{span}{span:id=iets|style=float: left;}\(dataprovider, displaytype, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new field on this form. The type of the field is specified by
using one of the JSField constants like JSField.TEXT\_FIELD.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} displaytype -- The display type of the field. Use constants from JSField for this parameter.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newField |
Span |
---|
| (dataprovider, displaytype, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new field on this form. The type of the field is specified by using one of the JSField constants like JSField.TEXT_FIELD. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} displaytype – The display type of the field. Use constants from JSField for this parameter. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var cal = childrenPortal.newField('my_table_date', JSField.CALENDAR, 0, 60, 20);
var chk = childrenPortal.newField('my_table_options', JSField.CHECKS, 60, 60, 50);
chk.valuelist = vlist;
var cmb = childrenPortal.newField('my_table_options', JSField.COMBOBOX, 120, 160, 20);
cmb.valuelist = vlist;
var html = childrenPortal.newField('my_table_html', JSField.HTML_AREA, 180, 60, 50);
var img = childrenPortal.newField('my_table_image', JSField.IMAGE_MEDIA, 240, 60, 50);
var pwd = childrenPortal.newField('my_table_text', JSField.PASSWORD, 300, 60, 20);
var radio = childrenPortal.newField('my_table_options', JSField.RADIOS, 360, 60, 50);
radio.valuelist = vlist;
var rtf = childrenPortal.newField('my_table_rtf', JSField.RTF_AREA, 420, 60, 50);
var tarea = childrenPortal.newField('my_table_text', JSField.TEXT_AREA, 480, 60, 50);
var tfield = childrenPortal.newField('my_table_text', JSField.TEXT_FIELD, 540, 60, 20);
var tahead = childrenPortal.newField('my_table_text', JSField.TYPE_AHEAD, 600, 60, 20);
tahead.valuelist = vlist;
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newHtmlArea|class=node}{tr:id=name}{td}h6.newHtmlArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newHtmlArea{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new HTML Area field in the portal. It is equivalent to calling "newField"
with the type JSField.HTML\_AREA.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created HTML Area field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newHtmlArea |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newHtmlArea |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new HTML Area field in the portal. It is equivalent to calling "newField" with the type JSField.HTML_AREA. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created HTML Area field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var html = childrenPortal.newHtmlArea('my_table_html', 180, 60, 50);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newImageMedia|class=node}{tr:id=name}{td}h6.newImageMedia{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newImageMedia{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new Image Media field in the portal. It is equivalent to calling "newField"
with the type JSField.IMAGE\_MEDIA.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created Image Media field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newImageMedia |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new Image Media field in the portal. It is equivalent to calling "newField" with the type JSField.IMAGE_MEDIA. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created Image Media field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var img = childrenPortal.newImageMedia('my_table_image', 240, 60, 50);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id= Table Body (tbody) |
---|
id | newLabel-String_Number_Number_Number |
---|
| |=}{:=}{td}h6.newLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: |
---|
|
|
|
| }[JSLabel]{span}{span:id=iets|style=float: left; Span |
---|
style | float: left; font-weight: |
---|
|
|
|
| }newLabel{span}{span:id=iets|style=float: left;}\(txt, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new label on the form, with the given text, place and size.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[String]} txt -- The text that will be displayed in the label.
\{[Number]} x -- The x coordinate of the label. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the label.
\{[Number]} height -- The height of the label. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSLabel] -- A JSLabel instance that represents the newly created label.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Span |
---|
| (txt, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new label on the form, with the given text, place and size. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} txt – The text that will be displayed in the label. {Number} x – The x coordinate of the label. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the label. {Number} height – The height of the label. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSLabel – A JSLabel instance that represents the newly created label. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20);
// This will result in a button being actually created, because we specify an action.
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20, clickMethod);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id= Table Body (tbody) |
---|
id | newLabel-String_Number_Number_Number_Object |
---|
| |=}{:=}{td}h6.newLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: |
---|
|
|
|
| }[]{span}{span:id=iets|style= }newLabel{span}{span:id=iets|style=float: left;}\(text, x, width, height, action){span}{td}{tr}{tr:id=des}{td}Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[String]} text -- The text that will be displayed in the label.
\{[Number]} x -- The x coordinate of the label. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the label.
\{[Number]} height -- The height of the label. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
\{[Object]} action -- The JSMethod object that should be executed when the label is clicked.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSLabel] -- A JSLabel instance that represents the newly created label.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Span |
---|
| (text, x, width, height, action) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} text – The text that will be displayed in the label. {Number} x – The x coordinate of the label. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the label. {Number} height – The height of the label. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. {Object} action – The JSMethod object that should be executed when the label is clicked. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSLabel – A JSLabel instance that represents the newly created label. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20);
// This will result in a button being actually created, because we specify an action.
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20, clickMethod);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newPassword|class=node}{tr:id=name}{td}h6.newPassword{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newPassword{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new password field in the portal. It is equivalent to calling "newField"
with the type JSField.PASSWORD.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created password field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newPassword |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newPassword |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new password field in the portal. It is equivalent to calling "newField" with the type JSField.PASSWORD. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created password field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var pwd = childrenPortal.newPassword('my_table_text', 300, 60, 20);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRadios|class=node}{tr:id=name}{td}h6.newRadios{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newRadios{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new radio buttons field in the portal. It is equivalent to calling "newField"
with the type JSField.RADIOS.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created radio buttons.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newRadios |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new radio buttons field in the portal. It is equivalent to calling "newField" with the type JSField.RADIOS. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created radio buttons. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var radio = childrenPortal.newRadios('my_table_options', 360, 60, 50);
radio.valuelist = vlist;
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRtfArea|class=node}{tr:id=name}{td}h6.newRtfArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newRtfArea{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new RTF Area field in the portal. It is equivalent to calling "newField"
with the type JSField.RTF\_AREA.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created RTF Area field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newRtfArea |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newRtfArea |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new RTF Area field in the portal. It is equivalent to calling "newField" with the type JSField.RTF_AREA. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created RTF Area field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var rtf = childrenPortal.newRtfArea('my_table_rtf', 420, 60, 50);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextArea|class=node}{tr:id=name}{td}h6.newTextArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextArea{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new text area field in the portal. It is equivalent to calling "newField"
with the type JSField.TEXT\_AREA.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created text area field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newTextArea |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newTextArea |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new text area field in the portal. It is equivalent to calling "newField" with the type JSField.TEXT_AREA. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created text area field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var tarea = childrenPortal.newTextArea('my_table_text', 480, 60, 50);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextField|class=node}{tr:id=name}{td}h6.newTextField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextField{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new text field in the portal. It is equivalent to calling "newField"
with the type JSField.TEXT\_FIELD.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created text field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newTextField |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newTextField |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new text field in the portal. It is equivalent to calling "newField" with the type JSField.TEXT_FIELD. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created text field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var tfield = childrenPortal.newTextField('my_table_text', 540, 60, 20);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTypeAhead|class=node}{tr:id=name}{td}h6.newTypeAhead{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newTypeAhead{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}Creates a new type ahead field in the portal. It is equivalent to calling "newField"
with the type JSField.TYPE\_AHEAD.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{td}{tr}{tr:id=ret}{td}*Returns*\\ [JSField] -- A JSField instance that corresponds to the newly created type ahead field.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
newTypeAhead |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| JSField |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| newTypeAhead |
Span |
---|
| (dataprovider, x, width, height) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Creates a new type ahead field in the portal. It is equivalent to calling "newField" with the type JSField.TYPE_AHEAD. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} dataprovider – The data provider for this field. Can be either a column name, or an instance of JSVariable. {Number} x – The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates. {Number} width – The width of the field. {Number} height – The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns JSField – A JSField instance that corresponds to the newly created type ahead field. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var tahead = childrenPortal.newTypeAhead('my_table_text', 600, 60, 20);
tahead.valuelist = vlist;
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setIntercellSpacing|class=node}{tr:id=name}{td}h6.setIntercellSpacing{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setIntercellSpacing{span}{span:id=iets|style=float: left;}\(width, height){span}{td}{tr}{tr:id=des}{td}The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.{td}{tr}{tr:id=prs}{td}*Parameters*\\ \{[Number]} width -- The horizontal spacing between cells.
\{[Number]} height -- The vertical spacing between cells.
{td}{tr}{tr:id=ret}{td}*Returns*\\void{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} Table Body (tbody) |
---|
id | setIntercellSpacing |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setIntercellSpacing |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| setIntercellSpacing |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
The additional spacing between cell rows. Is composed from the horizontal spacing and the vertical spacing. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Number} width – The horizontal spacing between cells. {Number} height – The vertical spacing between cells. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var childrenPortal = form.newPortal('pp',rel,10,10,620,460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',100,100,20);
childrenPortal.newTextField('child_table_parent_id', 200, 100, 20);
childrenPortal.setIntercellSpacing(5,10);
|
|
|
|
| {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |