Previous |
Next |
Use this function with forms that include date fields. The DATE_POPUP2 function dynamically generates a date field that has a jQuery based popup calendar with button.
Syntax
APEX_ITEM.DATE_POPUP2( p_idx in number, p_value in date default null, p_date_format in varchar2 default null, p_size in number default 20, p_maxLength in number default 2000, p_attributes in varchar2 default null, p_item_id in varchar2 default null, p_item_label in varchar2 default null, p_default_value in varchar2 default null, p_max_value in varchar2 default null, p_min_value in varchar2 default null, p_show_on in varchar2 default 'button', p_show_other_months in boolean default false, p_number_of_months in varchar2 default null, p_navigation_list_for in varchar2 default 'NONE', p_year_range in varchar2 default null, p_validation_date in varchar2 default null) RETURN VARCHAR2;
Parameters
Table: DATE_POPUP2 Parameters describes the parameters available in the DATE_POPUP2
function.
DATE_POPUP2 Parameters
Parameter | Description |
---|---|
|
Number that determines which APEX_APPLICATION global variable will be used.Valid range of values is 1 to 50. For example, 1 creates F01 and 2 creates F02. |
|
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 |
|
HTML attribute ID for the |
|
Invisible label created for the item |
p_default_value |
The default date which should be selected in DatePicker calendar popup |
p_max_value |
The Maximum date that can be selected from the datepicker |
p_min_value |
The Minimum date that can be selected from the datepicker. |
p_show_on |
Determines when the datepicker displays, on button click or on focus of the item or both. |
p_show_other_months |
Determines whether the datepicker displays multiple months, values are true or false. |
p_number_of_months |
Determines number of months displayed. Value should be in array formats follows: [row,column] |
p_navigation_list_for |
Determines if a select list is displayed for Changing Month, Year or Both. Possible values include: MONTH,YEAR,MONTH_AND_YEAR and default is null. |
p_year_range |
The range of years displayed in the year selection list. |
p_validation_date |
Used to store the Date value for the which date validation failed |
See Also: Oracle Database SQL Language Reference for information about theTO_CHAR or TO_DATE functions |