Form
The
Form
class has the following methods:
Name
Syntax
Description
declaration
DataSource declaration(String name)
Returns a form declaration object (Scalar, Array 1D, Array 2D, or ChoiceList) with the specified name.
formObject
FormObjectList formObject()
Returns the list of form objects.
formObject
FormObject formObject(String name)
Returns the form object with the specified name.
getName
String getName()
Returns the name of this form.
getParentForm
Form getParentForm()
Returns the parent form that contains this form. Useful for local cards in a card stack.
hasProperty
boolean hasProperty(String name)
Returns true if there is a modifiable property with the specified name.
method
MethodList method()
Returns the list of methods.
method
Method method(String name)
Gets a method with the specified name.
The
Form
class has the following properties:
Property
Value
Default
Description
icon
String
""
The name of the background image. Valid values are images defined in the Images > Libraries node in the Application Builder.
iconhalign
left
|
center
|
right
|
fill
|
repeat
center
Horizontal alignment for the background image.
iconvalign
top
|
center
|
bottom
|
fill
|
repeat
center
Vertical alignment for the background image.
title
String
Form N
The form title for an integer
N
.
Example Code
app.form("form1").set("icon", "compute.png");
app.form("form1").formObject("button1").set("enabled", false);
DataSource ds = app.form("form1").declaration("var");
For examples of how to use the
declaration
method, see
The Main Application Methods
.