Previous Topic: dtlDateNext Topic: dtlDateReadonly


dtlDateDropdown

The dtlDateDropdown macro specifies a date control on an HTMPL detail form. When empty, this field displays as a drop-down control on the edit view of the form. The drop-down control includes date selections such as "In One Day" or "In One Week". This control displays date fields with a nonempty value in the same way as the dtlDate control.

This macro has the following properties:

attr=attributeName

(Required) Specifies the name of the attribute associated with the control.

codename=string

Specifies the name of a set of values from the ui_selection object that are displayed in the date drop-down control. The values are those values with code attributes that match the value specified for codename.

colspan=1|number

Specifies the number of columns on the form.

evt=”eventName=’script’”

Specifies one or more HTML event handlers in the same way you specify them in an HTML statement, with quotes escaped as required. For example:

evt="onclick='myfunc()' onchange=\\\"myfunc2()\\\""

hdr=text

Specifies the text of the caption on the control; defaults to the DISPLAY_NAME of the attribute associated with the control.

make_required=YES|NO

Makes a field required when you specify YES regardless of whether the associated attribute is required at the object level. A required field forces the user to specify a nonblank value.

size=20|number

Specifies the width of the input field.