Previous Topic: sfDateNext Topic: sfEnd


sfDropdown

The sfDropdown macro specifies a drop-down selection control in the search filter of a list form.

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.

default=text

Specifies the default value when the attribute is null.

factory=name

Specifies the name of a Majic factory for the selection list. Defaults to the factory referenced by the associated attributes, and so is not typically required.

hdr=text

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

lookup=yes|no

Specifies whether the field should automatically convert to a lookup when the number of entries in the drop-down list exceeds a configured value (typically 10).

Noempty=yes|no

Specifies whether the empty value is included in the drop-down list. Specify Noempty=yes to suppress the empty value.

op=QBE.op

Specifies one of the following conditions for comparing the value in this field to the database value:

win=windowName

Specifies the target window. This property is not intended for customer use.