oracle-apex

How to comment out in Oracle APEX


No "Comment out" option is shown

Hello, how do you activate "Comment out" while using Oracle APEX 24.2? I want to comment out this Dynamic action. However i can find the comment out option.I have told that mouse right click shows the options. As you can see in the uploaded picture, there is no such option. Is there any way to activate this?

Thank you.


Solution

  • The "Comment Out" option that is available in many components is actually just a build option that is "special". This default build option was added a couple of releases ago. Build options are configured in shared components > build options. If you create a new app, you'll notice that there is one build option by default that is called "Commented Out".

    I did the following test in my new app:

    So the good news is that you should be able to turn it back on by adding it.

    If the build option "Commented Out" is not available because it's an older application, then you can add it and the menu option will include it.

    Build options have been around for as long as I have known in APEX and they're a great feature. The difference between a build option and a server side condition is that any component that has a build option with status "Exclude" is not included in the runtime code, so it doesn't have to be evaluated. Server-side conditions are evaluated whenever the component is rendered/executed.

    In addition to setting the "Commented Out" build option via the menu, you can also set it in each component under Configuration > Build Option

    enter image description here

    For feature components (feedback / access control / etc), a corresponding build option is created automatically

    enter image description here