Application Express User's Guide > Oracle Application Express ... > HTMLDB_ITEM > DATE_POPUP Function
DATE_POPUP Function |
![]() Previous |
![]() Next |
Use this function with forms that include date fields. The DATE_POPUP function dynamically generates a date field that has a popup calendar button.
Syntax
HTMLDB_ITEM.DATE_POPUP(
p_idx IN NUMBER,
p_row IN NUMBER,
p_value IN VARCHAR2 DEFAULT,
p_date_format IN DATE DEFAULT,
p_size IN NUMBER DEFAULT,
p_maxlength IN NUMBER DEFAULT,
p_attributes IN VARCHAR2 DEFAULT)
RETURN VARCHAR2;
Parameters
Table: DATE_POPUP Parameters describes the parameters available in the DATE_POPUP function.
DATE_POPUP Parameters
| Parameter | Description |
|---|---|
|
|
Number that determines which |
|
|
This parameter is deprecated. Anything specified for this value will be ignored |
|
|
Value of a field item |
|
|
Valid database date format |
|
|
Controls HTML tag attributes (such as disabled) |
|
|
Determines the maximum number of enterable characters. Becomes the maxlength attribute of the |
|
|
Extra HTML parameters you want to add |
Example
The following example demonstrates how to use HTMLDB_ITEM.DATE_POPUP to create popup calendar buttons for the hiredate column.
SELECT empno, HTMLDB_ITEM.HIDDEN(1,empno)|| HTMLDB_ITEM.TEXT(2,ename) ename, HTMLDB_ITEM.TEXT(3,job) job, mgr, HTMLDB_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy') hd, HTMLDB_ITEM.TEXT(5,sal) sal, HTMLDB_ITEM.TEXT(6,comm) comm, deptno FROM emp ORDER BY 1