Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to disable (as opposed to not displaying) a region or a list

607218Aug 8 2008 — edited Aug 12 2008
Hi -- I've succeeded in disabling an HTML button (greying out and inactivating) by:
- setting HTML button's button attribute to: id="myButton"
- creating a conditional HTML region that, when rendered, disables the button using
source of: document.getElementById("myButton").disabled = true;

I need to do something similar for either an entire region (eg all its contents) or just a list (which happens to be the only item in this particular region).

In the following example, I'm trying to disable the region:
I have a region of type LIST: Table List which contains the list in question. Its Table Cell Attributes are set to: id="tableCell". (This is a complete shot in the dark; didn't really know what the purpose of this attribute was when I was attempting this...)

I also have a region of type HTML Text, no Template, display before footer, which, similar to button example above, is conditional and its source is: document.getElementById("tableCell").disabled = true. The conditional disabling doesn't work and I get no errors.

1. How can I accomplish disabling a region or list?
2. For the heck of it, I changed my list region's type to HTML Text, to see if this would help. The included list went away and now I can't change the type back to: LIST: Table List. HELP?
3. In these regions that control display, the HTML source is being displayed when the region renders. How can I prevent this? (More pertinent for the button disable, as this is actually working.)

Thanks much!
Carol
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2008
Added on Aug 8 2008
6 comments
1,916 views