Skip to Main Content

Oracle Forms

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!

dynamically change background color of ITEM

lvs85003Aug 12 2015 — edited Aug 13 2015

How can I dynamically change background color?

I created a procedure that changes the background color of an item using SET_ITEM_PROPERTIES:

IF (sw = 0) THEN

   SET_ITEM_PROPERTY('CNV.EDIT', BACKGROUND_COLOR,  'white');

ELSIF (sw = 1) THEN

    SET_ITEM_PROPERTY('CNV.EDIT', BACKGROUND_COLOR,  'red');

END IF;

When I run the form the above code is executed, but the background color does not change.

Should this code work in 11g? Or, am I missing a command to redraw the form?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2015
Added on Aug 12 2015
5 comments
16,308 views