CRTOBJDFN

The Create Object Definition (CRTOBJDFN) command defines an object and its attribute. An object could be a simple grafical feature, a control or a sofisticated feature with link, image or system-command and reacting to Event such as click, right-click etc...

See also related commands.

Parameters Index

Object (OBJ)

Specifies the object you want to define.

This is a required parameter.

Qualifier 1: Object

*DDSSRC
*DDSSRC can be used only when the cmd is specified within a DDS source. To specify this cmd within a DDS source you have to use the following format, in complement of the cmd statement ADDOBJCNT:

     A          R FMT1
     A . . .
      *%%IW CRTOBJDFN OBJ(*DDSSRC)
      *%%IW        OBJTYPE(...)
      *%%IW        . . .
      *%%IW ADDOBJCNT OBJ(*DDSSRC)
      *%%IW        TOLEVEL(*DDSSRC)
     A . . .

The parameter value *DDSSRC assume the format or field name preceding the command insertion, like does any DDS keyword.

Nota: To insert the cmd within a DDS source, type-in the cmd in another session, use F14=cmd string and then do a copy/past to the DDS source.

name
Specify the name of the object you want to define.

Qualifier 2: Collection

DEFAULT
The collection named DEFAULT is used. (Collections are object's containers.)
name
Specify the name of the collection which contain the object you want to define.

Nota: To define new COLLECTION use the cmd: IWEB/CRTCLC

Object type (OBJTYPE)

Specifies the object's type you want to define.

Nota: The command will prompt a different set of parameters according to the type of object you select. Any other parameters will be ignored.

This is a required parameter.

BGCOLOR
Background color. Can be connected at *FIELD or *FORMAT level.
BORDER
Border. Can be connected at *FIELD or *FORMAT level.
BUTTON
Button. Can be connected at *FORMAT level.
CALCULATOR
Button to a pop-up calculator. Can be connected at *FIELD level.
CALENDAR
Button to a pop-up calendar for 1 field. Can be connected at *FIELD level.
CALENDAR2
Button to a pop-up calendar for 2 fields. Can be connected at *FIELD level.
CALENDAR3
Button to a pop-up calendar for 3 fields. Can be connected at *FIELD level.
CONSTANT
Constant text. Can be connected at *FORMAT level.
CHECKBOX
Check-box. Can be connected at *FIELD level.
COLHEAD
Column heading. (used for subfile, iWeb transforms them in Table-object). Can be connected at *FIELD level (or *FORMAT level for new object).
COLFILTER
Column filter. (To be used if your application contains filter input field for subfile column). Can be connected at *FIELD level.
COLOR
Color. Can be connected at *FIELD or *FORMAT level.
COLORCHOOSER
Button to a pop-up color chooser. Can be connected at *FIELD level.
FIELDBUTTON
Button anchored to a field. Can be connected at *FIELD level.
FIELDCONSTANT
Constant field. Can be connected at *FIELD level (field type "constant")
FIELDIMG
Image anchored to a field. Can be connected at *FIELD level.
FIELDLINK
Link anchored to a field. Can be connected at *FIELD level.
FIELDVIEW
Change a field position and/or alignment, with absolute or relative coordinates. Can be connected at *FIELD level.
FIELDSTYLE
Style of a field. Can be connected at *FIELD level.
FKEY
Function Key. Can be connected at *FORMAT level.
FKEYBAR
Specifies the status and the position of the function key bar. Can be connected at *FORMAT level.
FONT
Font. Can be connected at *FIELD or *FORMAT level.
FORMATVIEW
Change a format position, with absolute or relative coordinates. Can be connected at *FORMAT level.
FRAME
Frame. Can be connected at *FORMAT level.
IGNORE
Ignore. Can be connected at *FIELD level.
IMG
Image. Can be connected at *FORMAT level.
INITIALVALUE
Initial value of an input field. Can be connected at *FIELD level.
LINE
Horizontal Line. Can be connected at *FORMAT level.
LINK
Link. Can be connected at *FORMAT level.
LISTBOX
List box. Can be connected at *FIELD level.
MENUSTYLE
Menu style. It has to be used in connection with TEMPLATE keyword.
NONDISPLAY
Non display attribute. Can be connected at *FIELD level.
PROTECT
Protect attribute. Can be connected at *FIELD level.
RADIOVAR
Radio button(s). Can be connected at *FIELD level.
REPLACEPATTERN
Replace pattern attribute.

To be used to remove '. . . .' or replace '-------' with a line. Can be connected at *FIELD level.

SCANHEX
Scan field for hexadecimal values interpretation. Can be connected at *FIELD level. (needs a program reconversion)
SFLVIEW
Subfile view.

Used to specify the view of a SFL: Specify column view/order, Tab panel view for multi-line subfile. Can be connected at *FORMAT level.

STYLE
Style of a format and all of its components, including fields. Can be connected at *FORMAT level.
TABLESTYLE
Table style. (for iWeb, subfile are transformed to Table). Can be connected at *FORMAT level.
TAB
Tab panel. Can be connected at *FORMAT level.
TEMPLATE
Template which groups styles from different components. It is not connected at *FORMAT or *FIELD level but referenced directly in the applet within the html page in the following format:
<param name="template" value="COLLECTION/TEMPLATE.xml">
TITLE
Title (show in the title-bar). Can be connected at *FIELD level.
TOOLBARBUTTON
Tool Bar Button. Can be connected at *FORMAT level.
TOOLTIP
Tooltip. Can be connected at *FIELD or *FORMAT level.
UNHIDE
Unhide a hidden field, define a top & left position and a field usage. Can be connected at *FIELD level.

'Description' text (TEXT)

Specifies the text description of the object you define.

*BLANK
No text is specified.
character-value
Specify the the text description.

Image path or expression (IMG)

Specifies the adress of the image.

character-value
Specify the adress path as a string or an expression.

Example you may use:

  • /iweb/graphics/icons/i.gif
  • /iweb/graphics/icons/question.gif
  • /iweb/graphics/icons/email.gif
  • /iweb/graphics/icons/commentballoon.gif

'Label' text (LABEL)

Specifies the label of a link or a button.

character-value
Specify the label text.

'Constant' text (CONSTANT)

Specifies the text of a constant.

character-value
Specify the text.

Outside position (OUTSIDE)

Specifies the position of images outside the original frameset. Images can be positionned outside the original frameset of converted display. By selecting this parameter you may position images in the margin of the applet (The parameters TOP and LEFT will therefore be ignored).

*NONE
The image will be inside the original frameset.
character-value
Specify the outside position as: TOPLEFT, TOPCENTER, TOPRIGHT, BOTLEFT, BOTCENTER, BOTRIGHT, LEFTTOP, LEFTCENTER, LEFTBOT, RIGHTTOP, RIGHTCENTER, RIGHTBOT, CORNERTOPLEFT, CORNERTOPRIGHT, CORNERBOTLEFT, CORNERBOTRIGHT.

Background image path (BGIMG)

Specifies the path of a background image. By selecting this parameter with the parameter BGPOS you will have an image in the background of the applet.

character-value
Specify the adress path as a string or an expression.

Example you may use:

  • /iweb/graphics/background/alaska.jpg
  • /iweb/graphics/background/sunset.jpg
  • /iweb/graphics/background/pacificSky.jpg
  • /iweb/graphics/background/sky.jpg
  • /iweb/graphics/background/sky2.jpg
  • /iweb/graphics/background/sky3.jpg

Background position (BGPOS)

Specifies the position of the background image. By selecting this parameter with the parameter BGIMG you will have an image in the background

*NONE
The image will not appear.
character-value
Specify the background position as: TOPLEFT, TOPCENTER, TOPRIGHT, BOTLEFT, BOTCENTER, BOTRIGHT, LEFTCENTER, CENTER, RIGHTCENTER

Background image repeat (BGREP)

Specifies a background image occurences.

*NONE
The image will not be repeated.
character-value
Specify the occurence as: REPEAT (makes the image repeat horizontally and vertically), REPEAT-X (makes the image repeat horizontally to create a single band of images from one side to the other), REPEAT-Y (makes the image repeat vertically to create a single band of images from one side to the other)

Line type (LINE)

Specifies the line type.

HORIZONTAL
Horizontal line.
VERTICAL
Vertical line.

FIELDVIEW

Change a field position and/or alignment, with absolute or relative coordinates.

Top position in character unit (TOP)

Specifies the top position of an object.

decimal-number
Specify the number, in character unit, of the top position.

Left position in char. unit (LEFT)

Specifies the left position of an object.

decimal-number
Specify the number, in character unit, of the left position.

Length in char. unit (LENGTH)

Specifies the length of an object.

*END
For Horizontal line: the length goes from the LEFT up to the end of the screen width. For Vertical line: the length goes from the TOP up to the end of the screen high.
decimal-number
Specify the length in character unit of the object.

Position (POSITION)

Specifies position of an object.

ABSOLUTE
Absolute position.
RELATIVE
Relative position, minus or plus to the original field (for FIELDVIEW) or format (for FORMATVIEW) position.

Width in character/pixel unit (WIDTH)

Specifies the width size of an object.

decimal-number
Specify the width size.
  • The size is interpreted as character unit.
  • For the object type IMG, when the parameter OUTSIDE is specified, the size is interpreted as pixel unit.
  • For the object type FIELDVIEW, FORMATVIEW or UNHIDE, width, when specified, is considered as a container size.

Height in character/pixel unit (HEIGHT)

Specifies the height size of an object.

decimal-number
Specify the height size.
  • The size is interpreted as character unit.
  • For the object type IMG, when the parameter OUTSIDE is specified, the size is interpreted as pixel unit.
  • For the object type FIELDVIEW, FORMATVIEW or UNHIDE, height, when specified is considered as a container size.

Field content alignment(ALIGN)

Specifies the alignment.

*NONE
No alignment.
RIGHT
Rigth alignment.
LEFT
Left alignment.
CENTER
Center alignment.

Unit in character/pixel unit (UNIT)

Specifies the unit for width and height.

character-value
Specify the unit for width and height size as CHAR (character) or PIXEL (pixel).

Href link or expression (HREF)

Specifies the Hypertext Reference of a link.

All HREF protocols are usable, for instance:

character-value
Specify the Hypertext Reference as a string or an expression.

Border (BORDER)

Specifies the border (style, size and color)

'Tooltip' text or expression (TOOLTIP)

Specifies the tooltip content. A tooltip is a small box that appears near an object in a graphical user interface (GUI) when a pointer or other cursor controlled by a mouse passes over or rests on that object and which contains a brief text message identifying or explaining the object.

character-value
Specify the tooltip as a string or an expression.

Tooltip color (TOOLTCOL)

Specifies the color (forground and background) of the tooltip.

Tooltip font (TOOLTFONT)

Specifies the font (family and size) of the tooltip.

Tooltip border (TOOLTBORD)

Specifies the border (style, size and color) of the tooltip.

BgColor in hexadecimal (BGCOLOR)

Specifies the background color of an object. The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).

You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.

Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.

FFFFFF
White color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the background color.

Color in hexadecimal (COLOR)

Specifies the foreground color of an object. (foreground color is usualy associed to the text). The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).

You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.

Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.

000000
Black color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the foreground color.

Title (TITLE)

Specifies the title of the frame. You can specify its text, position and color.

Element 1: 'Title' text

character-value
Specify the text of title.

Element 2: Title position

TOPUPPERLEFT
Top upper left position
TOPUPPERCENTER
Top upper center position
TOPUPPERRIGHT
Top upper right position
TOPLEFT
Top left position
TOPCENTER
Top center position
TOPRIGHT
Top right position
TOPUNDERLEFT
Top under left position
TOPUNDERCENTER
Top under center position
TOPUNDERRIGHT
Top under right position
BOTUPPERLEFT
Top upper left position
BOTUPPERCENTER
Top upper center position
BOTUPPERRIGHT
Top upper right position
BOTLEFT
Bottom left position
BOTCENTER
Bottom center position
BOTRIGHT
Bottom right position
BOTUNDERLEFT
Bottom under left position
BOTUNDERCENTER
Bottom under center position
BOTUNDERRIGHT
Bottom under right position

Element 3: Title color in hexadecimal

Specifies the foreground color of an object. (foreground color is usualy associed to the text). The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).

You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.

Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.

000000
Black color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the foreground color.

Function Key (FKEY)

Specifies function key(s) layout and status.

CA-CF01, CA-CF24
Command attention or command function key.
ENTER
Enter function key.
ROLLUP
RollUp function key.
ROLLDOWN
RollDown function key.
HOME
Home function key.
PRINT
Print function key.
PAGEDOWN
PageDown function key.
PAGEUP
PageUp function key.
HELP
Help function key.
*ALL
All function key.

Status (STATUS)

Specifies the status of a function key.

*DISABLED
The function key is disabled.
*ENABLED
The function key is enabled.
*INVISIBLE
The function key is invisible (but still enabled if it was).
*VISIBLEIFTEXT
The function key is visible only if its description text appears on the display. Function key desciption text are reconised if they are in the 4 bottom lines of the display and containning the string "Fxx" or "cmdxx" (where xx is from 01 to 24) or one of the literal ENTER, ROLLUP, ROLLDOWN, HOME, PRINT, PAGEDOWN, PAGEUP, HELP.

Function Key Bar Position(FKEYBARPOS)

Specifies the position of the function bar.

*BOT
Bottom (default).
*TOP
Top.

Function Key Bar Status (STATUS)

Specifies the status of a function key bar.

*DISABLED
The function key bar is disabled.
*ENABLED
The function key bar is enabled.
*INVISIBLE
The function key bar is invisible (but still enabled if it was).
*VISIBLEIFTEXT
The function key bar is visible only if its description text appears on the display. Function key desciption text are reconised if they are in the 4 bottom lines of the display and containning the string "Fxx" or "cmdxx" (where xx is from 01 to 24) or one of the literal ENTER, ROLLUP, ROLLDOWN, HOME, PRINT, PAGEDOWN, PAGEUP, HELP.

'Initial value' text (INITVALUE)

Specifies the initial value of a field.

character-value
Specify the value.

Button action (BUTTONACT)

Specifies the action of a button. The is the action returned to the host program.

SYSCMD
Execute a system command on the host iSeries. (By choosing this value you have to enter also the SYSCMD parameter).
LINK
Link to a URL. (By choosing this value you have to enter also the HREF parameter).
F01-F24
Simulate the press function key F01-F24.
ENTER
Simulate the press Enter.
*NONE
No action or returned to the host program.

System command (SYSCMD)

Specifies the system command that will be executed. This command could be any CL command. Approach to the Object Oriented Programming (OOP).

character-value
Specify the system command as a string or an expression.

Evaluate field(s) expression (EVAL)

Specifies the expression value of a field. Approach to the Object Oriented Programming (OOP).

You can specify 100 values for this parameter.

Element 1: Field name

variable-name
Specify a display field name. (It could from any usage of: I, O, B, or H) When the field is coming from another format than the connected one you can specify it as a prefix followed with a coma '.': FormatName.FieldName

Nota: When used for an object type FIELDIMG, FIELDLINK or FIELDBUTTON, you can specify the reserved word &THIS. &THIS is for a generic field which will be the field(s) to which the object is connected. (These objects type could only be connected at *FIELD level)

Element 2: Eval value expression

character-value
Specify the field value as a string or an expression.

'Field value' or expression (FLDEVAL)

Specifies the field value. Approach to the Object Oriented Programming (OOP).

character-value
Specify the field value as a string or an expression.

Date format (CALENDAR)

Specifies the date format to be returned from the pop-up calendar.

*MDY
*DMY
*YMD
*JUL
*ISO
*USA
*EUR
*JIS
DDMMYY
MMDDYY
YYMMDD
YYDDD
YYYYMMDD
MMDDYYYY
DDMMYYYY

2 fields calendar (CALENDAR2)

Specifies the 2 fields name and corresponding date format to be returned from the pop-up calendar.

Element 1: 1st Field name

name
Specify the name of the first field.

Element 2: 1st Date format

YY
MM
DD
DDD
YYYY

Element 3: 2nd Field name

name
Specify the name of the second field.

Element 4: 2nd Date format

YY
MM
DD
DDD
YYYY

3 fields calendar (CALENDAR3)

Specifies the 3 fields name and corresponding date format to be returned from the pop-up calendar.

Element 1: 1st Field name

name
Specify the name of the first field.

Element 2: 1st Date format

YY
MM
DD
DDD
YYYY

Element 3: 2nd Field name

name
Specify the name of the second field.

Element 4: 2nd Date format

YY
MM
DD
DDD
YYYY

Element 5: 3rd Field name

name
Specify the name of the second field.

Element 6: 3rd Date format

YY
MM
DD
DDD
YYYY

'Value *ON' text (VALUEON)

Specifies the value to be passed as input when the check box is ON. (the check box is checked)

character-value
Specify the value.

'Value *OFF' text (VALUEOFF)

Specifies the value to be passed as input when the check box is OFF. (the check box is unchecked)

character-value
Specify the value.

Header "check/uncheck all" checkbox (CHECKALL)

Specifies, for table field, the use of a header "check/uncheck all" checkbox. This parameter is ignored when the field connected is not a SFL field.

character-value
Specify the value.
  • *YES (In the header of the field column will appear a "check/uncheck all" checkbox)
  • *NO (None checkbox will appear in the header of the field column)

'Format.field' name (COLFILTER)

Specifies the name of the field, preceded with its format name, which represent a application filter column.

character-value
Specify the format.field name.

Font (FONT)

Specifies the font (family and size)

Input field color (INPUTCOL)

Specifies the color (forground and background) of the input field(s).

Input field font (INPUTFONT)

Specifies the font (family and size) of the input field(s).

Input field border (INPUTBORD)

Specifies the border (style, size and color) of the input field(s).

Output field color (OUTPUTCOL)

Specifies the color (forground and background) of the output field(s).

Output field font (OUTPUTFONT)

Specifies the font (family and size) of the output field(s).

Output field border (OUTPUTBORD)

Specifies the border (style, size and color) of the output field(s).

CONST field color (CONSTCOL)

Specifies the color (forground and background) of the Constant field(s).

CONST field font (CONSTFONT)

Specifies the font (family and size) of the Constant field(s).

CONST field border (CONSTBORD)

Specifies the border (style, size and color) of the Constant field(s).

Table header color (SFL) (HEADCOL)

Specifies the color (forground and background) of the table header(s).

Table header font (SFL) (HEADFONT)

Specifies the font (family and size) of the table header(s).

Table header border (SFL) (HEADBORD)

Specifies the border (style, size and color) of the table header(s).

Table odd line color (SFL) (ODDCOL)

Specifies the color (forground and background) of the table odd line(s).

Table even line color (SFL) (EVENCOL)

Specifies the color (forground and background) of the table even line(s).

Table line font (SFL) (TABLEFONT)

Specifies the font (family and size) of the table line(s).

Table grid style (SFL) (TABLEGRID)

Specifies the grid style.

Element 1: Gridstyle

*NONE
Use the default grid style.
HORIZONTAL
Show only horizontal lines.
VERTICAL
Show only vertical lines.
BOTH
Show horizontal and vertical lines.

Element 2: Size in pixel

1
1 pixel
decimal-number
Specify the size of border in pixel unit.

Element 3: Color in hexadecimal

000000
Black color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the foreground color.

Field button position (FLDBTNPOS)

Specifies the position of a field button.

*LEFT
Left position outside the field.
*RIGHT
Right position outside the field.
*FIELD
Use this value only for connection towards field type "constant" or field usage "output". The field(s) connected will be transformed in button.

Background logo path (LOGO)

Specifies the background logo path of the menu frame.

/iweb/graphics/sfondoApplet.jpg
Default local path.
character-value
Specify the path of the background logo menu.

Menu icon path (MENUICON)

Specifies the path of the icon menu.

character-value
Specify the path.

Menu color (MENUCOL)

Specifies the color (forground and background) of the menu(s).

Menu font (MENUFONT)

Specifies the font (family and size) of the menu(s).

Item icon path (ITEMICON)

Specifies the path of the item menu.

character-value
Specify the <...>

Item color (ITEMCOL)

Specifies the color (forground and background) of the menu item(s).

Item font (ITEMFONT)

Specifies the font (family and size) of the menu item(s).

Values' label (LISTBOX)

Specifies a list of values and corresponding labels for a listbox.

You can specify 100 values for this parameter.

Element 1: Value

character-value
Specify the value passed and monitored by the program.

Element 2: Type

*CHAR
The type of the value is character.
*DEC
The type of the value is numeric.

Element 3: 'Label' text

character-value
Specify the label that will appears on the listbox interface.

Tab (TAB)

Specifies a list of format tab panel.

You can specify 100 values for this parameter.

Element 1: 'Tab panel' text

character-value
Specify the text of the tab panel.

Element 2: Tab panel action

F01-F24
Command function key.
ENTER
Enter function key.
ROLLUP
RollUp function key.
ROLLDOWN
RollDown function key.
HOME
Home function key.
PRINT
Print function key.
PAGEDOWN
PageDown function key.
PAGEUP
PageUp function key.
HELP
Help function key.

Element 3: 'Associed format name' text

character-value
Specify the format name associed to the tab panel.

Multi table line view style (MLINEVIEW)

For multi-line SFL, specifies the multi line view style: ALLINONE (all subsequent line are placed to the left), MULTILINE (all subsequent line are in a different line), TALETAB (all line are "tabbed")

SFL Tab panel/line (TABLETAB)

Specifies a list of SFL tab panel.

You can specify 100 values for this parameter.

Element 1: 'SFL Tab panel' text

character-value
Specify the text of the tab panel.

Element 2: SFL line

decimal-number
Specify the corresponding SFL line number (as for the 1st, 2nd, etc...).

SFL column view (COLVIEW)

Specifies the SFL column view.

You can specify 100 values for this parameter.

Element 1: 'SFL field name' text

character-value
Specify the name a SFL field.

Element 2: SFL line

decimal-number
Specify the order view (as for the 1st, 2nd, etc...).

Freeze SFL field (FREEZEFLD)

Specifies a list of SFL field to freeze for SFLTAB.

You can specify 100 values for this parameter.

character-value
Specify the name of a SFL field.

'Header' text or expression (COLHEAD)

Specifies a column heading. Column heading are used for SFL fields (subfile are transformed to Table for iWeb). You may use this parameter:

character-value
Specify the column heading as a string or an expression.

Pattern (PATTERN)

Specifies a pattern.

character-value
Specify the pattern.

Minimum occurence pattern (MINOCC)

Specifies the minimum occurence for the pattern.

decimal-number
Specify the minimum occurence for the pattern.

Underlined (UL)

Underlined.

character-value
Specify if the pattern is underlined.

Replacement pattern (REPLACE)

Specifies the replacement pattern.

character-value
Specify the replacement pattern OR
  • *BLANK (the pattern will be replaced with blank)
  • *TRIM (the pattern will be removed and any remaining characters will be shifted to the left),
  • *LINE (the pattern will be replaced with a flat line)
  • *LINERAISED (the pattern will be replaced with a raised line)
  • *LINELOWERED (the pattern will be replaced with a lowered line)

Field use (USE)

Specifies the use of the field.

character-value
Specify the usage of the field as for:
  • I (Input)
  • B (Both)
  • O (Output)

Adapt (ADAPT)

Specifies the container adaptation of the field when the use is OUTPUT only.

character-value
Specify if the height has to be adapted to the output contents. (This functionality is mainly used for table, list of notes...)

Sequence order (SEQORD)

Specifies the sequence order of the position of a function key description.

decimal-number
Specify the order number of the function key position.

Blank line optimisationtion (BLANKLINE)

Specifies the optimisation of the blank line of the display.

character-value
Specify the optimisation of the display blank lines as for:
  • COMPRESSED
  • PERSISTENT (remains as it is)

List box or Radio Button values (LISTBOXVAL)

Specifies the values separated by ","(comma) of a list box or radio buttons.

character-value
Specify the values separated by ","(comma) of a list box or radio buttons.

Example you may use:

  • A,E,U

List box or Radio Button labels (LISTBOXLAB)

Specifies the labels separated by ","(comma) of a list box or radio buttons.

character-value
Specify the labels separated by ","(comma) of a list box or radio buttons.

Example you may use:

  • Asia,Europe,United States

List box or Radio Button view (LISTVIEW)

Specifies the view of a list box.

VALUELABEL
View the values and the labels.
LABEL
View the labels only.

Nota: In any case only the value of the selected list box item will be passed to the host program.

Axis direction (AXIS)

Specifies the axis for Radio Button layout.

VERTICAL
Vertical.
HORIZONTAL
Horizontal.

Style (STYLE)

Specifies a qualified style for the TEMPLATE .

Qualifier 1: Style
Specify the name of the style object.
Qualifier 2: Collection
Specify the name of the collection which contains the object.

Subfiles Style (TABLESTYLE)

Specifies a qualified subfiles style for the TEMPLATE .

Qualifier 1: Tablestyle
Specify the name of the subfiles style object.
Qualifier 2: Collection
Specify the name of the collection which contains the object.

Function key bar (FKEYBAR)

Specifies function key bar position and status. It has to be used in connection with keyword TEMPLATE.

Qualifier 1: Function key barStyle
Specify the name of the function key bar object.
Qualifier 2: Collection
Specify the name of the collection which contains the object.

Fkey style (FKEYSTYLE)

Specifies a qualified function key style. It has to be used in connection with keyword TEMPLATE. You can specify 32 values for this parameter.

Qualifier 1: Function key style
Specify the name of the Function key style object.
Qualifier 2: Collection
Specify the name of the collection which contains the object.

Menu style (MENUSTYLE)

Specifies a qualified menu style. It has to be used in connection with keyword TEMPLATE.

Qualifier 1: Menu style
Specify the name of the Menu style object.
Qualifier 2: Collection
Specify the name of the collection which contains the object.

Applet border (APPLETBORD)

Specifies the applet border mode. It has to be used in connection with keyword TEMPLATE.

*YES
Show the applet with border.
*NO
Show the applet without border.

View toolbar (TOOLBAR)

Specifies the view toolbar. It has to be used in connection with keyword TEMPLATE.

*YES
Show the toolbar.
*NO
Do not show the toolbar.

Examples for CRTOBJDFN

Example 1: Simple Command Example

CRTOBJDFN OBJ(MYCLCL/MYFRAME)
          OBJTYPE(FRAME)
          TEXT('frame sample')
          TOP(2)
          LEFT(1)
          WIDTH(80)
          HEIGHT(5)
          BORDER(*DFT 1 *RED)
          BGCOLOR(BDDFFF)
          TITLE('Filter selection' TOPLEFT *BLACK)
    

This command creates an object of type FRAME, named MYFRAME within the collection named MYCLC. The frame is 80 positions width and 5 positions height. The TOP-LEFT corner of this frame will be positioned at the 2nd line and the 1st column of the format to which it will be connected (cf. cmd ADDOBJCNT). The border style will be the default one, its size will be 1 pixel and its color red. The background-color within that frame will be, in hexadecimal, BDDFFF (which is a light blue). And this frame will have a title written in black on its top-left position.

Expression can accept variable names from which values will be used at runtime to compose the whole string. Variable names must exist in the format to which this object will be connected to be processed correctly.

Specifies the background color and the foreground color of an object. (foreground color is usualy associed to the text). The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).

You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.

Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.

Element 1: BgColor in hexadecimal

FFFFFF
White color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the background color.

Element 2: Color in hexadecimal

000000
Black color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the foreground color.

Specifies the font family and size of an object.

Element 1: Family name or TTF url

URL of a True Type Font

Example you may use:

Enter a valide URL that point to a TTF document or use one of this following values:

*DEFAULT
Default family.
*MONOSPACED
monospaced family.
*SANSSERIF
sansserif family.
*SERIF
serif family.

Element 2: Size in pixel

NORMAL
Normal font style.
ITALIC
Italic font style.
BOLD
Bold font style.
ITALICBOLD
Italic and bold font style.

Element 3: Size in pixel

12
12 pixels.
decimal-number
Specify the size of the font in pixel unit.

Specifies the border of an object. Border forms the outer edge of an object. It is a decorative strip around the edge of the object where you can decide the style, the size and the color.

Element 1: Bordstyle

RAISED
Raised style.
LOWERED
Lowered style.
LINE
Line style.
EMPTY
No visible border.
ETCHEDRAIS
Etched raised style.
ETCHEDLOWE
Etched lower style.

Element 2: Size in pixel

1
1 pixel
decimal-number
Specify the size of border in pixel unit.

Element 3: Color in hexadecimal

000000
Black color.
*RED
Red color as for FF0000.
*GREEN
Green color as for 00FF00.
*BLUE
Blue color as for 0000FF.
character-value
Specify the Hexadecimal value of the foreground color.

Object Oriented Programming with iWeb. (OOP).

With the uses of SYSCMD and EVAL (or FLDEVAL) parameters you can call external interactive programs and passes display field values between programs.

RELATED COMMANDS

Object definition comands: (Object are image, link, frame, button, style etc...)

Object connection comands: (Connect an object to format/field)

Collection comands: (Collection are object's container)

Company (as Information System) control commands and programs:

@@@@@@@@