UMD Web Site

Page Content   Main Links   Page Links   Utility Links   Search   Footer Links

ColdFusion Development Project

cf_selectdepartment

Description: Creates a select list form field for departments on campus with the possibility to pre-select a department by name. The database query is established as object of the calling CF document and only executed if it doesn't exist yet.
Syntax:
<cf_selectdepartment
  datasource = "data_source_name"
  namedept = "form_field_name"
  selectdept = "department"
  selecttype = "key" or "string">
See also: cf_selectjobtitle, cf_selectlocation
Attributes:
Attribute Name Required/Optional Default Description
datasource required oracle9 The datasource to be queried for the list of departments.
namedept optional dp_name Form field name for the department select list.
selectdept optional
Pre-selected department value.
selecttype optional string Determines if the custom tag uses/returns the internal key values of the departments or the department name string as values.
Returns: The HTML code for the form field.
Example:
<cf_selectdepartment namedept="dp" selectdept="CITS/Internet Development">

<cf_selectdepartment namedept="dpk" selectdept="36" selecttype="key">

Contact Info:

Email: webdevelopment@umassd.edu - Web Design & Development

Main Links

Page Links

Utility Links

Search

 
Text Only Options

Top of page


Text Only Options

Open the original version of this page.

Usablenet Assistive is a UsableNet product. Usablenet Assistive Main Page.