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.
Adds a User Interface Default Attribute Dictionary entry with the provided definition. Up to three synonyms can be provided during the creation. Additional synonyms can be added post-creation using apex_ui_default_update.add_ad_synonym. Synonyms share the column definition of their base column.
APEX_UI_DEFAULT_UPDATE.ADD_AD_COLUMN ( p_column_name IN VARCHAR2, p_label IN VARCHAR2 DEFAULT NULL, p_help_text IN VARCHAR2 DEFAULT NULL, p_format_mask IN VARCHAR2 DEFAULT NULL, p_default_value IN VARCHAR2 DEFAULT NULL, p_form_format_mask IN VARCHAR2 DEFAULT NULL, p_form_display_width IN VARCHAR2 DEFAULT NULL, p_form_display_height IN VARCHAR2 DEFAULT NULL, p_form_data_type IN VARCHAR2 DEFAULT NULL, p_report_format_mask IN VARCHAR2 DEFAULT NULL, p_report_col_alignment IN VARCHAR2 DEFAULT NULL, p_syn_name1 IN VARCHAR2 DEFAULT NULL, p_syn_name2 IN VARCHAR2 DEFAULT NULL, p_syn_name3 IN VARCHAR2 DEFAULT NULL);
Table 20-5 describes the parameters available in the ADD_AD_COLUMN
procedure.
Table 20-1 ADD_AD_COLUMN Parameters
Parameter | Description |
---|---|
|
Name of column to be created. |
|
Used for item label and report column heading. |
|
Used for help text for items and interactive report columns |
|
Used as the format mask for items and report columns. Can be overwritten by report for form specific format masks. |
|
Used as the default value for items. |
|
If provided, used as the format mask for items, overriding any value for the general format mask. |
|
Used as the width of any items using this Attribute Definition. |
|
Used as the height of any items using this Attribute Definition (only used by item types such as text areas and shuttles). |
|
Used as the data type for items (results in an automatic validation). Valid values are VARCHAR, NUMBER and DATE. |
|
If provided, used as the format mask for report columns, overriding any value for the general format mask. |
|
Used as the alignment for report column data (for example, number are usually right justified). Valid values are |
|
Name of synonym to be created along with this column. For more than 3, use APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM. |
|
Name of second synonym to be created along with this column. For more than 3, use APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM. |
|
Name of third synonym to be created along with this column. For more than 3, use APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM. |
The following example creates a new attribute to the UI Defaults Attribute Dictionary within the workspace associated with the current schema. It also creates a synonym for that attribute.
BEGIN apex_ui_default_update.add_ad_column ( p_column_name => 'CREATED_BY', p_label => 'Created By', p_help_text => 'User that created the record.', p_form_display_width => 30, p_form_data_type => 'VARCHAR', p_report_col_alignment => 'LEFT', p_syn_name1 => 'CREATED_BY_USER' ); END;
If the column name is found within the User Interface Default Attribute Dictionary, the synonym provided is created and associated with that column. Synonyms share the column definition of their base column.
APEX_UI_DEFAULT_UPDATE.ADD_AD_SYNONYM ( p_column_name IN VARCHAR2, p_syn_name IN VARCHAR2);
Table 20-2 describes the parameters available in the ADD_AD_SYNONYM
procedure.
Table 20-2 ADD_AD_SYNONYM Parameters
Parameter | Description |
---|---|
|
Name of column with the Attribute Dictionary that the synonym is being created for. |
|
Name of synonym to be created. |
The following example add the synonym CREATED_BY_USER to the CREATED_BY attribute of the UI Defaults Attribute Dictionary within the workspace associated with the current schema.
BEGIN apex_ui_default_update.add_ad_synonym ( p_column_name => 'CREATED_BY', p_syn_name => 'CREATED_BY_USER' ); END;
If the column name is found within the User Interface Default Attribute Dictionary, the column, along with any associated synonyms, is deleted.
APEX_UI_DEFAULT_UPDATE.DEL_AD_COLUMN ( p_column_name IN VARCHAR2);
Table 20-3 describes the parameters available in the DEL_AD_COLUMN
procedure.
Table 20-3 DEL_AD_COLUMN Parameters
Parameter | Description |
---|---|
|
Name of column to be deleted |
The following example deletes the attribute CREATED_BY from the UI Defaults Attribute Dictionary within the workspace associated with the current schema.
BEGIN apex_ui_default_update.del_ad_column ( p_column_name => 'CREATED_BY' ); END;
If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is deleted.
APEX_UI_DEFAULT_UPDATE.DEL_AD_SYNONYM ( p_syn_name IN VARCHAR2);
Table 20-4 describes the parameters available in the DEL_AD_SYNONYM
procedure.
The following example deletes the synonym CREATED_BY_USER from the UI Defaults Attribute Dictionary within the workspace associated with the current schema.
BEGIN apex_ui_default_update.del_ad_synonym ( p_syn_name => 'CREATED_BY_USER' ); END;
If the provided table and column exists within the user's schema's table based User Interface Defaults, the UI Defaults for it are deleted.
APEX_UI_DEFAULT_UPDATE.DEL_COLUMN ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2);
Table 20-5 describes the parameters available in the DEL_COLUMN
procedure.
Table 20-5 DEL_COLUMN Parameters
Parameter | Description |
---|---|
|
Name of table whose column's UI Defaults are to be deleted. |
|
Name of columns whose UI Defaults are to be deleted. |
The following example deletes the column CREATED_BY
from the EMP
table definition within the UI Defaults Table Dictionary within the current schema.
BEGIN apex_ui_default_update.del_column ( p_table_name => 'EMP', p_column_name => 'CREATED_BY' ); END;
If the provided table and group exists within the user's schema's table based User Interface Defaults, the UI Defaults for it are deleted and any column within the table that references that group has the group_id set to null.
APEX_UI_DEFAULT_UPDATE.DEL_GROUP ( p_table_name IN VARCHAR2, p_group_name IN VARCHAR2);
Table 20-6 describes the parameters available in the DEL_GROUP
procedure.
Table 20-6 DEL_GROUP Parameters
Parameter | Description |
---|---|
|
Name of table whose group UI Defaults are to be deleted |
|
Name of group whose UI Defaults are to be deleted |
The following example deletes the group AUDIT_INFO
from the EMP
table definition within the UI Defaults Table Dictionary within the current schema.
BEGIN apex_ui_default_update.del_group ( p_table_name => 'EMP', p_group_name => 'AUDIT_INFO' ); END;
If the provided table exists within the user's schema's table based User Interface Defaults, the UI Defaults for it is deleted. This includes the deletion of any groups defined for the table and all the columns associated with the table.
APEX_UI_DEFAULT_UPDATE.DEL_TABLE ( p_table_name IN VARCHAR2);
Table 20-7 describes the parameters available in the DEL_TABLE
procedure.
The following example removes the UI Defaults for the EMP table that are associated with the current schema.
begin apex_ui_default_update.del_table ( p_table_name => 'EMP' ); end; /
If the Table Based User Interface Defaults for the table do not already exist within the user's schema, they are defaulted. If they do exist, they are synchronized, meaning, the columns in the table is matched against the column in the UI Defaults Table Definitions. Additions and deletions are used to make them match.
APEX_UI_DEFAULT_UPDATE.SYNCH_TABLE ( p_table_name IN VARCHAR2);
Table 20-8 describes the parameters available in the SYNCH_TABLE
procedure.
The following example synchronizes the UI Defaults for the EMP
table that are associated with the current schema.
BEGIN apex_ui_default_update.synch_table ( p_table_name => 'EMP' ); END;
If the column name is found within the User Interface Default Attribute Dictionary, the column entry is updated using the provided parameters. If 'null%' is passed in, the value of the associated parameter is set to null.
APEX_UI_DEFAULT_UPDATE.UPD_AD_COLUMN ( p_column_name IN VARCHAR2, p_new_column_name IN VARCHAR2 DEFAULT NULL, p_label IN VARCHAR2 DEFAULT NULL, p_help_text IN VARCHAR2 DEFAULT NULL, p_format_mask IN VARCHAR2 DEFAULT NULL, p_default_value IN VARCHAR2 DEFAULT NULL, p_form_format_mask IN VARCHAR2 DEFAULT NULL, p_form_display_width IN VARCHAR2 DEFAULT NULL, p_form_display_height IN VARCHAR2 DEFAULT NULL, p_form_data_type IN VARCHAR2 DEFAULT NULL, p_report_format_mask IN VARCHAR2 DEFAULT NULL, p_report_col_alignment IN VARCHAR2 DEFAULT NULL);
Table 20-9 describes the parameters available in the UPD_AD_COLUMN
procedure.
Table 20-9 UPD_AD_COLUMN Parameters
Parameter | Description |
---|---|
|
Name of column to be updated |
|
New name for column, if column is being renamed |
|
Used for item label and report column heading |
|
Used for help text for items and interactive report columns |
|
Used as the format mask for items and report columns. Can be overwritten by report for form specific format masks. |
|
Used as the default value for items. |
|
If provided, used as the format mask for items, overriding any value for the general format mask. |
|
Used as the width of any items using this Attribute Definition. |
|
Used as the height of any items using this Attribute Definition (only used by item types such as text areas and shuttles). |
|
Used as the data type for items (results in an automatic validation). Valid values are |
|
If provided, used as the format mask for report columns, overriding any value for the general format mask. |
|
Used as the alignment for report column data (for example, number are usually right justified). Valid values are LEFT, CENTER, and RIGHT. |
Note:
Ifp_label
through p_report_col_alignment
are set to 'null%', the value is nullified. If no value is passed in, that column is not updated.The following example updates the CREATED_BY
column in the UI Defaults Attribute Dictionary within the workspace associated with the current schema, setting the form_format_mask to null.
BEGIN apex_ui_default_update.upd_ad_column ( p_column_name => 'CREATED_BY', p_form_format_mask => 'null%'); END;
If the synonym name is found within the User Interface Default Attribute Dictionary, the synonym name is updated.
APEX_UI_DEFAULT_UPDATE.UPD_AD_SYNONYM ( p_syn_name IN VARCHAR2, p_new_syn_name IN VARCHAR2 DEFAULT NULL);
Table 20-10 describes the parameters available in the UPD_AD_SYNONYM
procedure.
Table 20-10 UPD_AD_SYNONYM Parameters
Parameter | Description |
---|---|
|
Name of synonym to be updated |
|
New name for synonym |
The following example updates the CREATED_BY_USER
synonym in the UI Defaults Attribute Dictionary within the workspace associated with the current schema.
BEGIN apex_ui_default_update.upd_ad_synonym ( p_syn_name => 'CREATED_BY_USER', p_new_syn_name => 'USER_CREATED_BY'); END;
If the provided table and column exists within the user's schema's table based User Interface Defaults, the provided parameters are updated. If 'null%' is passed in, the value of the associated parameter is set to null.
APEX_UI_DEFAULT_UPDATE.UPD_COLUMN ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_group_id IN VARCHAR2 DEFAULT NULL, p_label IN VARCHAR2 DEFAULT NULL, p_help_text IN VARCHAR2 DEFAULT NULL, p_display_in_form IN VARCHAR2 DEFAULT NULL, p_display_seq_form IN VARCHAR2 DEFAULT NULL, p_mask_form IN VARCHAR2 DEFAULT NULL, p_default_value IN VARCHAR2 DEFAULT NULL, p_required IN VARCHAR2 DEFAULT NULL, p_display_width IN VARCHAR2 DEFAULT NULL, p_max_width IN VARCHAR2 DEFAULT NULL, p_height IN VARCHAR2 DEFAULT NULL, p_display_in_report IN VARCHAR2 DEFAULT NULL, p_display_seq_report IN VARCHAR2 DEFAULT NULL, p_mask_report IN VARCHAR2 DEFAULT NULL, p_alignment IN VARCHAR2 DEFAULT NULL);
Table 20-11 describes the parameters available in the UPD_COLUMN
procedure.
Table 20-11 UPD_COLUMN Parameters
Parameter | Description |
---|---|
|
Name of table whose column's UI Defaults are being updated |
|
Name of column whose UI Defaults are being updated |
|
id of group to be associated with the column |
|
When creating a form against this table or view, this is used as the label for the item if this column is included. When creating a report or tabular form, this is used as the column heading if this column is included. |
|
When creating a form against this table or view, this becomes the help text for the resulting item. |
|
When creating a form against this table or view, this determines whether this column is displayed in the resulting form page. Valid values are Y and N. |
|
When creating a form against this table or view, this determines the sequence in which the columns is displayed in the resulting form page. |
|
When creating a form against this table or view, this specifies the mask that is applied to the item, such as 999-99-9999. This is not used for character based items. |
|
When creating a form against this table or view, this specifies the default value for the item resulting from this column. |
p_required |
When creating a form against this table or view, this specifies to generate a validation in which the resulting item must be NOT NULL. Valid values are Y and N. |
|
When creating a form against this table or view, this specifies the display width of the item resulting from this column. |
|
When creating a form against this table or view, this specifies the maximum string length that a user is allowed to enter in the item resulting from this column. |
|
When creating a form against this table or view, this specifies the display height of the item resulting from this column. |
|
When creating a report against this table or view, this determines whether this column is displayed in the resulting report. Valid values are Y and N. |
|
When creating a report against this table or view, this determines the sequence in which the columns are displayed in the resulting report. |
|
When creating a report against this table or view, this specifies the mask that is applied against the data, such as 999-99-9999. This is not used for character based items. |
|
When creating a report against this table or view, this determines the alignment for the resulting report column. Valid values are L for Left, C for Center, and R for Right. |
Note:
Ifp_group_id
through p_alignment
are set to 'null%', the value is nullified. If no value is passed in, that column is not updated.The following example updates the column DEPT_NO
within the EMP
table definition within the UI Defaults Table Dictionary within the current schema, setting the group_id
to null.
BEGIN apex_ui_default_update.upd_column ( p_table_name => 'EMP', p_column_name => 'DEPT_NO', p_group_id => 'null%' ); END;
The UPD_DISPLAY_IN_FORM
procedure sets the display in form user interface defaults. This user interface default is used by wizards when you select to create a form based upon the table. It controls whether the column is 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);
Table 20-12 describes the parameters available in the UPD_DISPLAY_IN_FORM
procedure.
Table 20-12 UPD_DISPLAY_IN_FORM Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Determines whether to display in the form by default, valid values are |
In the following example, when creating a Form against the DEPT table, the display option on the DEPTNO column defaults to 'No'.
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 is used by wizards when you select to create a report based upon the table and controls whether the column is 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 20-13 describes the parameters available in the UPD_DISPLAY_IN_REPORT
procedure.
Table 20-13 UPD_DISPLAY_IN_REPORT Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Determines whether to display in the report by default, valid values are |
In the following example, when creating a Report against the DEPT table, the display option on the DEPTNO column defaults to 'No'.
APEX_UI_DEFAULT_UPDATE.UPD_DISPLAY_IN_REPORT( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_display_in_report => 'N');
The 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 20-14 describes the parameters available in the UPD_FORM_REGION_TITLE
procedure.
Table 20-14 UPDATE_FORM_REGION_TITLE Parameters
Parameter | Description |
---|---|
|
Table name |
|
Desired form region title |
This example demonstrates how to set the Forms Region Title user interface default on the DEPT table.
APEX_UI_DEFAULT_UPDATE.UPD_FORM_REGION_TITLE ( p_table_name => 'DEPT', p_form_region_title => 'Deptartment Details');
If the provided table and group exist within the user's schema's table based User Interface Defaults, the group name, description and display sequence of the group are updated. If 'null%' is passed in for p_description or p_display_sequence, the value is set to null.
APEX_UI_DEFAULT_UPDATE.UPD_GROUP ( p_table_name IN VARCHAR2, p_group_name IN VARCHAR2, p_new_group_name IN VARCHAR2 DEFAULT NULL, p_description IN VARCHAR2 DEFAULT NULL, p_display_sequence IN VARCHAR2 DEFAULT NULL);
Table 20-15 describes the parameters available in the UPD_GROUP
procedure.
Table 20-15 UPD_GROUP Parameters
Parameter | Description |
---|---|
|
Name of table whose group is being updated |
|
Group being updated |
|
New name for group, if group is being renamed |
|
Description of group |
|
Display sequence of group. |
Note:
Ifp_description
or p_display_sequence
are set to 'null%', the value is nullified. If no value is passed in, that column is not updated.The following example updates the description of the group AUDIT_INFO
within the EMP
table definition within the UI Defaults Table Dictionary within the current schema.
BEGIN apex_ui_default_update.upd_group ( p_table_name => 'EMP', p_group_name => 'AUDIT_INFO', p_description => 'Audit columns' ); END;
The UPD_ITEM_DISPLAY_HEIGHT
procedure sets the item display height user interface default. This user interface default is 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 is 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 20-16 describes the parameters available in the UPD_ITEM_DISPLAY_HEIGHT
procedure.
Table 20-16 UPD_ITEM_DISPLAY_HEIGHT Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Display height of any items created based upon this column |
The following example sets a default item height of 3 when creating an item on the DNAME column against the DEPT table.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_HEIGHT( p_table_name => 'DEPT', p_column_name => 'DNAME', p_display_height => 3);
The UPD_ITEM_DISPLAY_WIDTH
procedure sets the item display width user interface default. This user interface default is used by wizards when you select to create a form based upon the table and include the specified column.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_display_width IN NUMBER);
Table 20-17 describes the parameters available in the UPD_ITEM_DISPLAY_WIDTH
procedure.
Table 20-17 UPD_ITEM_DISPLAY_WIDTH Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Display width of any items created based upon this column |
The following example sets a default item width of 5 when creating an item on the DEPTNO column against the DEPT table.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_DISPLAY_WIDTH( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_display_width => 5);
The UPD_ITEM_FORMAT_MASK
procedure sets the item format mask user interface default. This user interface default is 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 20-18 describes the parameters available in the UPD_ITEM_FORMAT_MASK
procedure.
Table 20-18 UPD_ITEM_FORMAT_MASK Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Format mask to be associated with the column |
In the following example, when creating a Form against the EMP table, the default item format mask on the HIREDATE column is set to 'DD-MON-YYYY'.
APEX_UI_DEFAULT_UPDATE.UPD_ITEM_FORMAT_MASK( p_table_name => 'EMP', p_column_name => 'HIREDATE', p_format_mask=> 'DD-MON-YYYY');
The UPD_ITEM_HELP
procedure updates the help text for the specified table and column. This user interface default is 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 20-19 describes the parameters available in the UPD_ITEM_HELP
procedure.
Table 20-19 UPD_ITEM_HELP Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Desired help text |
This example demonstrates how to set the User Interface Item Help Text default for the DEPTNO column in the DEPT table.
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_LABEL
procedure sets the label used for items. This user interface default is used when you create a form or report based on the specified table and include a specific column.
APEX_UI_DEFAULT_UPDATE.UPD_LABEL ( p_table_name IN VARCHAR2, p_column_name IN VARCHAR2, p_label IN VARCHAR2 DEFAULT NULL);
Table 20-20 describes the parameters available in the UPD_LABEL
procedure.
Table 20-20 UPD__LABEL Parameters
Parameter | Description |
---|---|
|
Table name |
|
Column name |
|
Desired item label |
This example demonstrates how to set the User Interface Item Label default for the DEPTNO column in the DEPT table.
APEX_UI_DEFAULT_UPDATE.UPD_LABEL( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_label => 'Department Number');
The UPD_REPORT_ALIGNMENT procedure sets the report alignment user interface default. This user interface default is 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 20-21 describes the parameters available in the UPD_REPORT_ALIGNMENT
procedure.
Table 20-21 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). |
In the following example, when creating a Report against the DEPT table, the default column alignment on the DEPTNO column is set to Right justified.
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_ALIGNMENT( p_table_name => 'DEPT', p_column_name => 'DEPTNO', p_report_alignment => 'R');
The UPD_REPORT_FORMAT_MASK
procedure sets the report format mask user interface default. This user interface default is 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 20-22 describes the parameters available in the UPD_REPORT_FORMAT_MASK
procedure.
Table 20-22 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 |
In the following example, when creating a Report against the EMP table, the default format mask on the HIREDATE column is set to 'DD-MON-YYYY'.
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_FORMAT_MASK( p_table_name => 'EMP', p_column_name => 'HIREDATE', p_format_mask=> 'DD-MON-YYYY');
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 20-23 describes the parameters available in the UPD_REPORT_REGION_TITLE
procedure.
Table 20-23 UPD_REPORT_REGION_TITLE Parameters
Parameter | Description |
---|---|
|
Table name |
|
Desired report region title |
This example demonstrates how to set the Reports Region Title user interface default on the DEPT table.
APEX_UI_DEFAULT_UPDATE.UPD_REPORT_REGION_TITLE ( p_table_name => 'DEPT', p_report_region_title => 'Departments');
If the provided table exists within the user's schema's table based User Interface Defaults, the form region title and report region title are updated to match those provided. If 'null%' is passed in for p_form_region_title or p_report_region_title, the value is set to null.
APEX_UI_DEFAULT_UPDATE.UPD_TABLE ( p_table_name IN VARCHAR2, p_form_region_title IN VARCHAR2 DEFAULT NULL, p_report_region_title IN VARCHAR2 DEFAULT NULL);
Table 20-24 describes the parameters available in the UPD_TABLE
procedure.
Table 20-24 UPD_TABLE Parameters
Parameter | Description |
---|---|
|
Name of table being updated. |
|
Region title used for forms. |
p_report_region_title |
Region title used for reports and tabular forms. |
Note:
if 'null%' is passed in forp_form_region_title
or p_report_region_title
, the value is set to null
. If no value is passed in, that column is not updated.The following example updates the EMP table definition within the UI Defaults Table Dictionary within the current schema.
begin apex_ui_default_update.upd_table ( p_table_name => 'EMP', p_form_region_title => 'Employee Details', p_report_region_title => 'Employees' ); end; /