oCourse.HTMLItemList ​
Creates specified drop down lists for filtering courses on Calendar pages.
Required Parameters ​
- Course Field for drop down list (e.g. cocategory, codept, coord).
Optional Parameters ​
- HTML name of drop down list, entered in quotation marks. Default is "lstItem".
- Selected value, entered in quotation marks (e.g. "Business"). The entered value will be selected by default in the drop down list.
- HTML ID of drop down list, entered in quotation marks. Default is the parameter 2 value.
- Additional HTMLÂ attributes, enclosed in quotation marks.
- Numeric value to specify tabindex.
- Condition to return courses, based on Course table (e.g. "coactive AND !cocancel AND !EMPTY(codept)" ). Default is "coactive AND !cocancel AND !EMPTY(
<cfield>
)". - Logical .t. suppresses the first selection option-first option will be first department in list. Default .f. uses "Make a selection" as the first value.
- Logical .t. returns active and inactive courses. Default .f. only returns active courses.
- If parameter 8 is set to .f.;first value of drop down list, entered in quotations (e.g. "Select Department").
Examples ​
##oCourse.htmlitemlist([codept])## creates a drop down list of Departments for the user to filter calendar items.
##oCourse.htmlitemlist([codept],[Department],Request.Params([Department]))## creates a drop down list of Departments for the user to filter calendar items. Request.Params() function selects the previously selected department.
##oCourse.htmlitemlist([codept],[Department],,,,,,,,"Select Department")## creates a drop down list of Departments for the user to filter calendar items, with "Select Department" as the first selection value.