WEBCOMPONENT item definition
Defines a generic form field that can receive an external widget, in a grid-based layout.
Syntax
WEBCOMPONENT item-tag = field-name [ , attribute-list ] ;
- item-tag is an identifier that defines the name of the item tag in the layout section.
- field-name identifies the name of the screen record field.
- attribute-list defines the aspect and behavior of the form item.
Form attributes
COLOR
, COLOR WHERE
, COMPONENTTYPE
, COMMENT
, DEFAULT
, FONTPITCH
, HEIGHT
, HIDDEN
, INCLUDE
, JUSTIFY
, NOT NULL
, NOENTRY
, PROPERTIES
, REQUIRED
, SCROLLBARS
, SIZEPOLICY
, STYLE
, STRETCH
, TAG
, TABINDEX
, TITLE
, UNSORTABLE
, UNSIZABLE
, UNHIDABLE
, UNMOVABLE
, VALIDATE LIKE
, WIDTH
.
Style attributes
Common: backgroundColor
, border
, fontFamily
, fontSize
, fontStyle
, fontWeight
, localAccelerators
, showAcceleratorInToolTip
, textColor
, textDecoration
.
Class-specific: none.
Usage
Define the rendering and behavior of a web component item tag,
with an WEBCOMPONENT
element in the ATTRIBUTES
section.
For more details about this item type, see WEBCOMPONENT item type.
Example
LAYOUT
GRID
{
[f1 ]
[ ]
[ ]
...
[f2 ]
[ ]
[ ]
...
}
END
END
ATTRIBUTES
-- URL-based web component (recommended):
WEBCOMPONENT f1 = FORMONLY.mymap,
STRETCH=BOTH;
-- gICAPI web component:
WEBCOMPONENT f2 = FORMONLY.mycal,
COMPONENTTYPE="Calendar", -- lookup "Calendar.html",
PROPERTIES = (
type = "gregorian",
week_start = 2,
days_off = ( 1, 7 )
),
STRETCH=BOTH, STYLE="regular";