The APEX_UI_DEFAULT_UPDATE
package provides procedures to access user interface defaults from within SQL Developer or SQL*Plus.
You can use this package to set the user interface defaults associated with a table within a schema. The package must be called from within the schema that owns the table you are updating.
User interface defaults enable you to assign default user interface properties to a table, column, or view within a specified schema. When you create a form or report using a wizard, the wizard uses this information to create default values for region and item properties. Utilizing user interface defaults can save valuable development time and has the added benefit of providing consistency across multiple pages in an application.
Topics in this section include:
See Also:
"Managing User Interface Defaults" in Oracle Application Express Application Builder User's GuideThe UPD_FORM_REGION_TITLE
procedure updates the Form Region Title user interface default. User interface defaults are used in wizards when you create a form based upon the specified table.
APEX_UI_DEFAULT_UPDATE.UPD_FORM_REGION_TITLE ( p_table_name IN VARCHAR2, p_form_region_title IN VARCHAR2 DEFAULT NULL );
Table 8-1 describes the parameters available in the UPD_FORM_REGION_TITLE
procedure.
Table 8-1 APEX_UI_DEFAULT_UPDATE Parameters
Parameter | Description |
---|---|
|
Table name |
|
Desired form region title |
APEX_UI_DEFAULT_UPDATE.UPD_FORM_REGION_TITLE ( p_table_name => 'DEPT', p_form_region_title => 'Deptartment Details');
The UPD_REPORT_REGION_TITLE
procedure sets the Report Region Title. User interface defaults are used in wizards when a report is created on a table.
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_REGION_TITLE ( p_table_name IN VARCHAR2, p_report_region_title IN VARCHAR2 DEFAULT NULL );
Table 8-2 describes the parameters available in the UPD_REPORT_REGION_TITLE
procedure.
Table 8-2 UPD_REPORT_REGION_TITLE Parameters
Parameter | Description |
---|---|
|
Table name |
|
Desired report region title |
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_REGION_TITLE ( p_table_name => 'DEPT', p_report_region_title => 'Deptartments');
The UPD_ITEM_LABEL
procedure sets the label used for items. 'This user interface default will be used when you create a form based on the specified table and include a specific column.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_LABEL ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_label IN VARCHAR2 DEFAULT NULL );
Table 8-3 describes the parameters available in the UPD_ITEM_LABEL
procedure.
Table 8-3 UPD_ITEM_LABEL Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Desired item label |
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_LABEL( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_label => 'Department Number');
The UPD_ITEM_HELP
procedure updates the help text for the specified table and column. This user interface default will be used when you create a form based upon the table and select to include the specified column.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_HELP ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_help_text IN VARCHAR2 DEFAULT NULL );
Table 8-4 describes the parameters available in the UPD_ITEM_HELP
procedure.
Table 8-4 UPD_ITEM_HELP Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Desired help text |
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_HELP( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_help_text => 'The number assigned to the department.');
The UPD_DISPLAY_IN_FORM
procedure sets the display in form user interface defaults. 'This user interface default will be used by wizards when you select to create a form based upon the table. It controls whether the column will be included by default or not.
APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_FORM ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_display_in_form IN VARCHAR2 DEFAULT NULL );
Table 8-5 describes the parameters available in the UPD_DISPLAY_IN_FORM
procedure.
Table 8-5 UPD_DISPLAY_IN_FORM Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Determines whether or not to display in the form by default, valid values are |
APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_FORM( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_display_in_form => 'N');
The UPD_DISPLAY_IN_REPORT
procedure sets the display in report user interface default. This user interface default will be used by wizards when you select to create a report based upon the table and controls whether the column will be included by default or not.
APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_REPORT ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_display_in_report IN VARCHAR2 );
Table 8-6 describes the parameters available in the UPD_DISPLAY_IN_REPORT
procedure.
Table 8-6 UPD_DISPLAY_IN_REPORT Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Determines whether or not to display in the report by default, valid values are |
APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_REPORT( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_display_in_report => 'N');
'The UPD_ITEM_DISPLAY_WIDTH
procedure sets the item display width user interface default. This user interface default will be used by wizards when you select to create a form based upon the table and include the specified column.n.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_display_width IN NUMBER );
Table 8-7 describes the parameters available in the UPD_ITEM_DISPLAY_WIDTH
procedure.
Table 8-7 UPD_ITEM_DISPLAY_WIDTH Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Display width of any items created based upon this column |
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_display_width => 5);
'The UPD_ITEM_DISPLAY_HEIGHT
procedure sets the item display height user interface default. This user interface default will be used by wizards when you select to create a form based upon the table and include the specified column. Display height controls if the item will be a text box or a text area.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_HEIGHT ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_display_height IN NUMBER );
Table 8-8 describes the parameters available in the UPD_ITEM_DISPLAY_HEIGHT
procedure.
Table 8-8 UPD_ITEM_DISPLAY_HEIGHT Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Display height of any items created based upon this column |
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_HEIGHT( p_table_name => 'DEPT', p_column_name => 'DNAME', p_display_height => 3);
'The UPD_REPORT_ALIGNMENT procedure sets the report alignment user interface default. This user interface default will be used by wizards when you select to create a report based upon the table and include the specified column and determines if the report column should be left, center, or right justified.
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_ALIGNMENT ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_report_alignment IN VARCHAR2, );
Table 8-9 describes the parameters available in the UPD_REPORT_ALIGNMENT
procedure.
Table 8-9 UPD_REPORT_ALIGNMENT Parameters
Parameter | Description |
---|---|
|
Table name. |
|
Column name. |
|
Defines the alignment of the column in a report. Valid values are L (left), C (center) and R (right). |
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_ALIGNMENT( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_report_alignment => 'R');
'The UPD_ITEM_FORMAT_MASK
procedure sets the item format mask user interface default. This user interface default will be used by wizards when you select to create a form based upon the table and include the specified column. Item format mask is typically used to format numbers and dates.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_FORMAT_MASK ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_format_mask IN VARCHAR2 DEFAULT NULL );
Table 8-10 describes the parameters available in the UPD_ITEM_FORMAT_MASK
procedure.
Table 8-10 UPD_ITEM_FORMAT_MASK Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Format mask to be associated with the column |
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_FORMAT_MASK( p_table_name => 'EMP', p_column_name => 'HIREDATE', p_format_mask=> 'DD-MON-YYYY');
'The UPD_REPORT_FORMAT_MASK
procedure sets the report format mask user interface default. This user interface default will be used by wizards when you select to create a report based upon the table and include the specified column. Report format mask is typically used to format numbers and dates.
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_FORMAT_MASK ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_format_mask IN VARCHAR2 DEFAULT NULL );
Table 8-11 describes the parameters available in the UPD_REPORT_FORMAT_MASK
procedure.
Table 8-11 UPD_REPORT_FORMAT_MASK Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Format mask to be associated with the column whenever it is included in a report |
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_FORMAT_MASK( p_table_name => 'EMP', p_column_name => 'HIREDATE', p_format_mask=> 'DD-MON-YYYY');