Child pages
  • JSPortal
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »


Unknown macro: {table}

{column:padding=0px|width=80px}{column}{column}{column}

Unknown macro: {tr}
Unknown macro: {th}

Property Summary

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

anchors
Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

background
The background color of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

borderType
The type, color and style of border of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

enabled
The enable state of the component, default true.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

fontType
The font type of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

foreground
The foreground color of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

formIndex
The Z index of this component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

groupID
A String representing a group ID for this component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

height
The height in pixels of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

initialSort
The default sort order for the rows displayed in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

multiLine
When set, portal rows can have a custom layout of fields, buttons, etc.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

name
The name of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSMethod

Unknown macro: {td}

onDrag
The method that is triggered when (non Design Mode) dragging occurs.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSMethod

Unknown macro: {td}

onDragEnd
The method that is triggered when (non Design Mode) dragging end occurs.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSMethod

Unknown macro: {td}

onDragOver
The method that is triggered when (non Design Mode) dragging over a component occurs.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSMethod

Unknown macro: {td}

onDrop
The method that is triggered when (non Design Mode) dropping occurs.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSMethod

Unknown macro: {td}

onRender
The method that is executed when the component is rendered.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

printSliding
Enables an element to resize based on its content and/or move when printing.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

printable
Flag that tells if the component should be printed or not when the form is printed.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

relationName
The name of the relationship between the table related to the currently active
form and the table you want to show data from in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

reorderable
When set, the portal rows can be re-ordered by dragging the column headers.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

resizable
When set the portal rows can be resized by users.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

rowHeight
The height of each row in pixels.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

scrollbars
Scrollbar options for the vertical and horizontal scrollbars.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

showHorizontalLines
When set, the portal displays horizontal lines between the rows.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

showVerticalLines
When set the portal displays vertical lines between the columns.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

sortable
When set, users can sort the contents of the portal by clicking on the column headings.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

styleClass
The name of the style class that should be applied to this component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

tabSeq
An index that specifies the position of the component in the tab sequence.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

transparent
Flag that tells if the component is transparent or not.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

visible
The visible property of the component, default true.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

width
The width in pixels of the component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

x
The x coordinate of the component on the form.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

y
The y coordinate of the component on the form.


Unknown macro: {table}

{column:padding=0px|width=80px}{column}{column}{column}

Unknown macro: {tr}
Unknown macro: {th}

Method Summary

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSButton

Unknown macro: {td}

getButton(name)
Retrieves a button from the portal based on the name of the button.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSButton[]

Unknown macro: {td}

getButtons()
Retrieves an array with all buttons in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

getField(name)
Retrieves a field from this portal based on the name of the field.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField[]

Unknown macro: {td}

getFields()
Retrieves an array with all fields in a portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

getIntercellSpacing()
The additional spacing between cell rows.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSLabel

Unknown macro: {td}

getLabel(name)
Retrieves a label from this portal based on the name of the label.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSLabel[]

Unknown macro: {td}

getLabels()
Retrieves all labels from the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

UUID

Unknown macro: {td}

getUUID()
Returns the UUID of this component.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSButton

Unknown macro: {td}

newButton(text, x, width, height, action)
Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newCalendar(dataprovider, x, width, height)
Creates a new calendar field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newCheck(dataprovider, x, width, height)
Creates a new checkbox field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newComboBox(dataprovider, x, width, height)
Creates a new combobox field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newField(dataprovider, displaytype, x, width, height)
Creates a new field on this form.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newHtmlArea(dataprovider, x, width, height)
Creates a new HTML Area field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newImageMedia(dataprovider, x, width, height)
Creates a new Image Media field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSLabel

Unknown macro: {td}

newLabel(txt, x, width, height)
Creates a new label on the form, with the given text, place and size.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSLabel

Unknown macro: {td}

newLabel(text, x, width, height, action)
Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newPassword(dataprovider, x, width, height)
Creates a new password field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newRadios(dataprovider, x, width, height)
Creates a new radio buttons field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newRtfArea(dataprovider, x, width, height)
Creates a new RTF Area field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newTextArea(dataprovider, x, width, height)
Creates a new text area field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newTextField(dataprovider, x, width, height)
Creates a new text field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

JSField

Unknown macro: {td}

newTypeAhead(dataprovider, x, width, height)
Creates a new type ahead field in the portal.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

setIntercellSpacing(width, height)
The additional spacing between cell rows.


Unknown macro: {table}

{column:padding=0px|width=100%}{column}

Unknown macro: {tr}
Unknown macro: {th}

Property Details

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
anchors
Unknown macro: {tr}
Unknown macro: {td}

Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.

If opposite anchors are activated then the component with grow or
shrink with the window. For example if Top and Bottom are activated,
then the component will grow/shrink when the window is vertically
resized. If Left and Right are activated then the component
will grow/shrink when the window is horizontally resized.

If opposite anchors are not activated, then the component will
keep a constant distance from the sides of the window which
correspond to the activated anchors.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var strechAllDirectionsLabel = form.newLabel('Strech all directions', 10, 10, 380, 280);
strechAllDirectionsLabel.background = 'red';
strechAllDirectionsLabel.anchors = SM_ANCHOR.ALL;	
var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280);
strechVerticallyLabel.background = 'green';
strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH;
var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140);
strechHorizontallyLabel.background = 'blue';
strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST;
var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100);
stickToTopLeftCornerLabel.background = 'orange';
stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; // This is equivalent to SM_ANCHOR.DEFAULT 
var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100);
stickToBottomRightCornerLabel.background = 'pink';
stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
background
Unknown macro: {tr}
Unknown macro: {td}

The background color of the component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var greenLabel = form.newLabel('Green',10,10,100,50);
greenLabel.background = 'green'; // Use generic names for colors.	
var redField = form.newField('parent_table_text',JSField.TEXT_FIELD,10,110,100,30);
redField.background = '#FF0000'; // Use RGB codes for colors.
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
borderType
Unknown macro: {tr}
Unknown macro: {td}

The type, color and style of border of the component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
//HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model.
var field = form.newField('my_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.borderType = solutionModel.createBorder(1,'#ff0000');;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
enabled
Unknown macro: {tr}
Unknown macro: {td}

The enable state of the component, default true.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.enabled = false;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
fontType
Unknown macro: {tr}
Unknown macro: {td}

The font type of the component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var label = form.newLabel('Text here', 10, 50, 100, 20);
label.fontType = solutionModel.createFont('Times New Roman',1,14);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
foreground
Unknown macro: {tr}
Unknown macro: {td}

The foreground color of the component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var labelWithBlueText = form.newLabel('Blue text', 10, 10, 100, 30);
labelWithBlueText.foreground = 'blue'; // Use generic names for colors.
var fieldWithYellowText = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
fieldWithYellowText.foreground = '#FFFF00'; // Use RGB codes for colors.
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
formIndex
Unknown macro: {tr}
Unknown macro: {td}

The Z index of this component. If two components overlap,
then the component with higher Z index is displayed above
the component with lower Z index.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var labelBelow = form.newLabel('Green', 10, 10, 100, 50);
labelBelow.background = 'green';	
labelBelow.formIndex = 10;
var fieldAbove = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 30);
fieldAbove.background = '#FF0000';
fieldAbove.formIndex = 20;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
groupID
Unknown macro: {tr}
Unknown macro: {td}

A String representing a group ID for this component. If several
components have the same group ID then they belong to the same
group of components. Using the group itself, all components can
be disabled/enabled or made invisible/visible.
The group id should be a javascript compatible identifier to allow access of the group in scripting.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('someForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var label = form.newLabel('Green', 10, 10, 100, 20);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
label.groupID = 'someGroup';
field.groupID = 'someGroup';	
forms['someForm'].elements.someGroup.enabled = false;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
height
Unknown macro: {tr}
Unknown macro: {td}

The height in pixels of the component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
initialSort
Unknown macro: {tr}
Unknown macro: {td}

The default sort order for the rows displayed in the portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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.initialSort = 'child_table_text desc';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
multiLine
Unknown macro: {tr}
Unknown macro: {td}

When set, portal rows can have a custom layout of fields, buttons, etc. displayed for each
matching row (rather than the default "grid").

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp',rel,10,10,620,460);
// Set the fields some distance apart horizontally. By default this distance
// is ignored and the components are put in a grid.
var idField = childrenPortal.newTextField('child_table_id', 0, 100, 20);
idField.background = 'yellow';
var textField = childrenPortal.newTextField('child_table_text',150,100,20);
textField.background = 'green';
var parentIdField = childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
parentIdField.background = 'orange';
// Disable the grid placing of components, and make the distance between components
// become active.
childrenPortal.multiLine = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
name
Unknown macro: {tr}
Unknown macro: {td}

The name of the component. Through this name it can also accessed in methods.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('someForm', 'example_data', 'parent_table', 'null', false, 620, 300);
var label = form.newLabel('Label', 10, 10, 150, 150);
label.name = 'myLabel'; // Give a name to the component.
forms['someForm'].controller.show()
// Now use the name to access the component.
forms['someForm'].elements['myLabel'].text = 'Updated text';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
onDrag
Unknown macro: {tr}
Unknown macro: {td}

The method that is triggered when (non Design Mode) dragging occurs.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSMethod]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
onDragEnd
Unknown macro: {tr}
Unknown macro: {td}

The method that is triggered when (non Design Mode) dragging end occurs.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSMethod]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
onDragOver
Unknown macro: {tr}
Unknown macro: {td}

The method that is triggered when (non Design Mode) dragging over a component occurs.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSMethod]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
onDrop
Unknown macro: {tr}
Unknown macro: {td}

The method that is triggered when (non Design Mode) dropping occurs.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSMethod]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
onRender
Unknown macro: {tr}
Unknown macro: {td}

The method that is executed when the component is rendered.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSMethod]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
portal.onRender = form.newFormMethod('function onRender(event) { event.getElement().bgcolor = \'#00ff00\' }');
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
printSliding
Unknown macro: {tr}
Unknown macro: {td}

Enables an element to resize based on its content and/or move when printing.
The component can move horizontally or vertically and can grow or shrink in
height and width, based on its content and the content of neighboring
components.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var slidingLabel = form.newLabel('Some long text here', 10, 10, 5, 5);
slidingLabel.printSliding = SM_PRINT_SLIDING.GROW_HEIGHT | SM_PRINT_SLIDING.GROW_WIDTH;
slidingLabel.background = 'gray';
forms['printForm'].controller.showPrintPreview();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
printable
Unknown macro: {tr}
Unknown macro: {td}

Flag that tells if the component should be printed or not when the form is printed.

By default components are printable.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var printedField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var notPrintedField = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 40, 100, 20);
notPrintedField.printable = false; // This field won't show up in print preview and won't be printed.
forms['printForm'].controller.showPrintPreview()
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
relationName
Unknown macro: {tr}
Unknown macro: {td}

The name of the relationship between the table related to the currently active
form and the table you want to show data from in the portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
// Create the portal based on one relation.
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
var idField = childrenPortal.newTextField('child_table_id', 0, 100, 20);
var textField = childrenPortal.newTextField('child_table_text',150,100,20);
var parentIdField = childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
// Now make the portal be based on another relation.
childrenPortal.relationName = 'parent_to_smaller_children';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
reorderable
Unknown macro: {tr}
Unknown macro: {td}

When set, the portal rows can be re-ordered by dragging the column headers.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.reorderable = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
resizable
Unknown macro: {tr}
Unknown macro: {td}

When set the portal rows can be resized by users.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
// Make the columns resizable. By default they are not resizable.
childrenPortal.resizable = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
rowHeight
Unknown macro: {tr}
Unknown macro: {td}

The height of each row in pixels. If 0 or not set, the height defaults to 10.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.rowHeight = 30;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
scrollbars
Unknown macro: {tr}
Unknown macro: {td}

Scrollbar options for the vertical and horizontal scrollbars. Each of the
vertical and horizontal scrollbars can be configured to display all the time,
to display only when needed or to never display.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var noScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 10, 10, 100, 100);
noScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_NEVER | SM_SCROLLBAR.VERTICAL_SCROLLBAR_NEVER;
var neededScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 120, 10, 100, 100);
neededScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_AS_NEEDED | SM_SCROLLBAR.VERTICAL_SCROLLBAR_AS_NEEDED;
var alwaysScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 230, 10, 100, 100);
alwaysScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_ALWAYS | SM_SCROLLBAR.VERTICAL_SCROLLBAR_ALWAYS;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
showHorizontalLines
Unknown macro: {tr}
Unknown macro: {td}

When set, the portal displays horizontal lines between the rows.

NOTE:
In a multi-line portal, a horizontal line is only displayed
in the selected row; to display a horizontal line in all rows, add a
line to the portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.showHorizontalLines = true;
childrenPortal.showVerticalLines = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
showVerticalLines
Unknown macro: {tr}
Unknown macro: {td}

When set the portal displays vertical lines between the columns.

NOTE:
In a multi-line portal, a vertical line is only displayed
in the selected row; to display a vertical line in all rows, add
a line to the portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.showHorizontalLines = true;
childrenPortal.showVerticalLines = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
sortable
Unknown macro: {tr}
Unknown macro: {td}

When set, users can sort the contents of the portal by clicking on the column headings.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.sortable = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
styleClass
Unknown macro: {tr}
Unknown macro: {td}

The name of the style class that should be applied to this component.

When defining style classes for specific component types, their names
must be prefixed according to the type of the component. For example
in order to define a class names 'fancy' for fields, in the style
definition the class must be named 'field.fancy'. If it would be
intended for labels, then it would be named 'label.fancy'. When specifying
the class name for a component, the prefix is dropped however. Thus the
field or the label will have its styleClass property set to 'fancy' only.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var style = solutionModel.newStyle('myStyle','field.fancy { background-color: yellow; }');
form.styleName = 'myStyle'; // First set the style on the form.
field.styleClass = 'fancy'; // Then set the style class on the field.
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
tabSeq
Unknown macro: {tr}
Unknown macro: {td}

An index that specifies the position of the component in the tab sequence. The components
are put into the tab sequence in increasing order of this property. A value of 0 means
to use the default mechanism of building the tab sequence (based on their location on the form).
A value of -2 means to remove the component from the tab sequence.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
// Create three fields. Based on how they are placed, by default they will come one
// after another in the tab sequence.
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var fieldTwo = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
var fieldThree = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 70, 100, 20);
// Set the third field come before the first in the tab sequence, and remove the 
// second field from the tab sequence.
fieldOne.tabSeq = 2;
fieldTwo.tabSeq = SM_DEFAULTS.IGNORE;
fieldThree.tabSeq = 1;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
transparent
Unknown macro: {tr}
Unknown macro: {td}

Flag that tells if the component is transparent or not.

The default value is "false", that is the components
are not transparent.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
// Load an image from disk an create a Media object based on it.
var imageBytes = plugins.file.readFile('d:/ball.jpg');
var media = solutionModel.newMedia('ball.jpg', imageBytes);
// Put on the form a label with the image.
var image = form.newLabel('', 10, 10, 100, 100);
image.imageMedia = media;
// Put two fields over the image. The second one will be transparent and the
// image will shine through.
var nonTransparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 20, 100, 20);
var transparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
transparentField.transparent = true;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
visible
Unknown macro: {tr}
Unknown macro: {td}

The visible property of the component, default true.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Boolean]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.visible = false;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
width
Unknown macro: {tr}
Unknown macro: {td}

The width in pixels of the component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
x
Unknown macro: {tr}
Unknown macro: {td}

The x coordinate of the component on the form.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
y
Unknown macro: {tr}
Unknown macro: {td}

The y coordinate of the component on the form.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[Number]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
Unknown macro: {tr}
Unknown macro: {td}


Unknown macro: {table}

{column:padding=0px|width=100%}{column}

Unknown macro: {tr}
Unknown macro: {th}

Method Details

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getButton
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSButton

Unknown macro: {span}

getButton

Unknown macro: {span}

(name)

Unknown macro: {tr}
Unknown macro: {td}

Retrieves a button from the portal based on the name of the button.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters\\\{String} name – The name of the button to retrieve.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSButton] – A JSButton instance that corresponds to the button with the specified name.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getButtons
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSButton[]

Unknown macro: {span}

getButtons

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}

Retrieves an array with all buttons in the portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSButton][] – An array with all buttons in the portal.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getField
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

getField

Unknown macro: {span}

(name)

Unknown macro: {tr}
Unknown macro: {td}

Retrieves a field from this portal based on the name of the field.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters\\\{String} name – The name of the field to retrieve.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance corresponding to the field with the specified name.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getFields
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField[]

Unknown macro: {span}

getFields

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}

Retrieves an array with all fields in a portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField][] – An array with JSField instances corresponding to all fields in the portal.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getIntercellSpacing
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

String

Unknown macro: {span}

getIntercellSpacing

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}

The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[String] – A java.awt.Dimension object holding the horizontal and vertical intercell spacing.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var spacing = childrenPortal.getIntercellSpacing();
application.output("horizontal spacing: " + spacing.width);
application.output("vertical spacing: " + spacing.height);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getLabel
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSLabel

Unknown macro: {span}

getLabel

Unknown macro: {span}

(name)

Unknown macro: {tr}
Unknown macro: {td}

Retrieves a label from this portal based on the name of the label.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters\\\{String} name – The name of the label to retrieve.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSLabel] – A JSLabel instance corresponding to the label with the specified name.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getLabels
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSLabel[]

Unknown macro: {span}

getLabels

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}

Retrieves all labels from the portal.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSLabel][] – An array of JSLabel instances corresponding to all labels in the portal.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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';
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getUUID
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

UUID

Unknown macro: {span}

getUUID

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}

Returns the UUID of this component.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {tr}
Unknown macro: {td}

Returns
[UUID]

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var button_uuid = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newButton
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSButton

Unknown macro: {span}

newButton

Unknown macro: {span}

(text, x, width, height, action)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSButton] – A JSButton instance representing the newly created button.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newCalendar
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newCalendar

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new calendar field in the portal. It is equivalent to calling "newField"
with the type JSField.CALENDAR.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created calendar.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newCalendar('my_table_date', 0, 60, 20);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newCheck
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newCheck

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new checkbox field in the portal. It is equivalent to calling "newField"
with the type JSField.CHECKS.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created checkbox field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newComboBox
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newComboBox

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new combobox field in the portal. It is equivalent to calling "newField"
with the type JSField.COMBOBOX.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created combobox field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newField
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newField

Unknown macro: {span}

(dataprovider, displaytype, x, width, height)

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newHtmlArea
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newHtmlArea

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new HTML Area field in the portal. It is equivalent to calling "newField"
with the type JSField.HTML_AREA.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created HTML Area field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var html = childrenPortal.newHtmlArea('my_table_html', 180, 60, 50);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newImageMedia
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newImageMedia

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new Image Media field in the portal. It is equivalent to calling "newField"
with the type JSField.IMAGE_MEDIA.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created Image Media field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var img = childrenPortal.newImageMedia('my_table_image', 240, 60, 50);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newLabel
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSLabel

Unknown macro: {span}

newLabel

Unknown macro: {span}

(txt, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new label on the form, with the given text, place and size.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSLabel] – A JSLabel instance that represents the newly created label.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newLabel
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSLabel

Unknown macro: {span}

newLabel

Unknown macro: {span}

(text, x, width, height, action)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSLabel] – A JSLabel instance that represents the newly created label.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newPassword
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newPassword

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new password field in the portal. It is equivalent to calling "newField"
with the type JSField.PASSWORD.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created password field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var pwd = childrenPortal.newPassword('my_table_text', 300, 60, 20);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newRadios
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newRadios

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new radio buttons field in the portal. It is equivalent to calling "newField"
with the type JSField.RADIOS.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created radio buttons.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newRtfArea
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newRtfArea

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new RTF Area field in the portal. It is equivalent to calling "newField"
with the type JSField.RTF_AREA.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created RTF Area field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var rtf = childrenPortal.newRtfArea('my_table_rtf', 420, 60, 50);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newTextArea
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newTextArea

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new text area field in the portal. It is equivalent to calling "newField"
with the type JSField.TEXT_AREA.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created text area field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var tarea = childrenPortal.newTextArea('my_table_text', 480, 60, 50);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newTextField
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newTextField

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new text field in the portal. It is equivalent to calling "newField"
with the type JSField.TEXT_FIELD.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created text field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var tfield = childrenPortal.newTextField('my_table_text', 540, 60, 20);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
newTypeAhead
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

JSField

Unknown macro: {span}

newTypeAhead

Unknown macro: {span}

(dataprovider, x, width, height)

Unknown macro: {tr}
Unknown macro: {td}

Creates a new type ahead field in the portal. It is equivalent to calling "newField"
with the type JSField.TYPE_AHEAD.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {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.

Unknown macro: {tr}
Unknown macro: {td}

Returns
[JSField] – A JSField instance that corresponds to the newly created type ahead field.

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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;
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
setIntercellSpacing
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

setIntercellSpacing

Unknown macro: {span}

(width, height)

Unknown macro: {tr}
Unknown macro: {td}

The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.

Unknown macro: {tr}
Unknown macro: {td}

Since
Replace with version info

Unknown macro: {tr}
Unknown macro: {td}

Parameters\\\{Number} width – The horizontal spacing between cells.
{Number} height – The vertical spacing between cells.

Unknown macro: {tr}
Unknown macro: {td}

Returns
void

Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {div}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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);
Unknown macro: {tr}
Unknown macro: {td}
  • No labels