24.3 Removing Controls and Components to Isolate a Problem
If you have problems running a page, try removing controls and components one at a time.
Using this approach, you can quickly determine which control or component may be the source of your problem.
- Excluding and Including Page Components
Exclude or include page components at runtime using the Comment Out and Uncomment context menu option in Page Designer. - Using Server-side Conditions
Use Server-side conditions to prevent a component from rendering or executing.
Parent topic: Debugging an Application
24.3.1 Excluding and Including Page Components
Exclude or include page components at runtime using the Comment Out and Uncomment context menu option in Page Designer.
Starting with APEX release 23.2, new applications include a Comment Out and Uncomment context menu in Page Designer. To exclude an application component at runtime, right-click the component in the left tab and select Comment Out from the context menu. To include a component at runtime, select the page component again but this time select Uncomment from the context menu. The Comment Out and Uncomment context menu option appears in the Rendering tab, the Dynamic Actions tab, and the Processing Tab.
If you do not see Comment Out/Uncomment context menu , you can change the build option manually in Property Editor under Configuration, Build Options.
Tip:
The Comment Out and Uncomment context menu options are created from a build option named Commented Out. To learn more, see Using Build Options to Control Configuration.24.3.2 Using Server-side Conditions
Use Server-side conditions to prevent a component from rendering or executing.
You can configure the Server-side Condition of Never to prevent a component from rendering or executing.
The following are typical steps for creating Server-side condition of Never:
Note:
The user interface may differ slightly depending upon the selected page component.- In Page Designer, select the page component.
- Find the Server-side Condition group.
- From Type, select Never.
Note:
Changing a condition to Never will remove any existing condition. To temporarily disabli a component, Oracle recommends using the Build Option attribute.