Build options enable you to conditionally display specific functionality within an application.
Build options have two possible values: INCLUDE
and EXCLUDE
. If you specify an attribute as being included, then the Application Express engine considers it part of the application definition at run time. Conversely, if you specify an attribute as being excluded, then the Application Express engine treats it as if it did not exist.
This section contains the following topics:
See Also:
See "Changing Application Build Status Set During Deployment" in Oracle Application Express Administration Guide.You create a build option for an application on the Build Options page.
To create a build option:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application Builder home page, click Shared Components.
Under Application, click Build Options.
To create a new build option, click Create.
Follow the on-screen instructions.
Once you create a build option, it appears on the Build Options page. You control how the Build Options page displays by making a selection from the View list. Available options include:
Icons (the default) displays each build option as a large icon. To edit a build option, click the appropriate icon.
Details displays each build option as a line in a report. Each line includes the application ID, build option name, status, and a link to the Build Option Utilization report. To edit a build option, click the appropriate name.
Build options have two possible values: INCLUDE
and EXCLUDE
. If you specify an attribute as being included, then the Application Express engine considers it part of the application definition at run time. Conversely, if you specify an attribute as being excluded, then the Application Express engine treats it as if it did not exist.
To include or exclude a build option:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application Builder home page, click Shared Components.
Under Application, click Build Options.
Select the appropriate build option.
The Create/Edit Build Option page appears.
For Status, select either INCLUDE or EXCLUDE.
Once you create a build option, you can select it for a page, a component (report, chart, or form), a specific page control (button, item, list of value), and another shared component (breadcrumb, list, or tab). You apply build options to a page, component, page control, or shared component by navigating to the appropriate attributes page. Most attributes pages contain a Configuration section where you can select defined build options.
See Also:
"Editing Page Attributes"You can export build options or build option status on the Component Export page. Exporting build option status is an effective way to toggle build options on or off within another environment. For example, you can use this feature to deploy a production application with a hidden feature.
To accomplish this, you associate the components of the hidden feature with a build option having the status of EXCLUDE
. After deployment, you can enable the hidden feature by changing the status of the build option to INCLUDE
and then exporting the Build Option Status.
Once you apply the Build Options Status to the production instance, the new feature appears.
To export build options or build option status:
Navigate to the Component Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
Click Shared Components.
From the Tasks list, click Component Export.
The Component Export page appears.
Select the build options to be exported:
Click the Components tab and select the build options to be exported.
Click Add to Export.
Select Build Option Status to be exported:
Click the Build Options Status tab and select the build options to be exported.
Click Add to Export.
Click Next.
On Components to Export:
From File Format, select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Use the As of field to export a page as it was previously defined. Specify the number of minutes in the field provided.
This utility uses the DBMS_FLASHBACK
package. Because the timestamp to System Change Number (SCN) mapping is refreshed approximately every five minutes, you may have to wait that amount of time to locate the version for which you are looking. The time undo information is retained and influenced by the startup parameter UNDO_RETENTION
(the default is three hours). However, this only influences the size of the undo tablespace. While two databases may have the same UNDO_RETENTION
parameter, you are able to go back further in time on a database with fewer transactions because it is not filling the undo tablespace, forcing older data to be archived.
Click Export Components.
Once you create a build option, a Utilization tab appears on the Build Options page. This report details build option utilization in the current application.
Note:
The Utilization tab only appears on the Build Options page after you create a build option.To view the Build Option Utilization report:
Navigate to the Build Options page:
Navigate to the Workspace home page.
Click the Application Builder icon.
Select an application.
On the Application Builder home page, click Shared Components.
Under Application, click Build Options.
The Build Options page appears.
On the Build Options page, click Utilization.
The Build Option Utilization report appears.
Select a build option and click Go.