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 (grey out) button in report

583197Jun 17 2007 — edited Jun 25 2007
Hi,

Can any one; pls help how to disable button (grey out) on some specific condition.

I have a report of 2 pages; In first page it displays few records; once click on specific record control goes to next page 2; And here i have button (template based button); Once click on this it perform pl/sql procedure.

My requirement is: The button should disable (should not hide) when moves from page 1 to page 2 based on some specific returned values in page 2.

I have return code in button conditions (Condition type = PL/SQL Function Body Returning a Boolean)
Sample code is:
if :value1 = 'disable_test_value' then
return false;
else
return true;
end if;

The above code is working fine with button completely disappers if the :value1 = 'disable_test_value' (which is suppossed to be as we gave return false).

My question is: Is there any way; we can still show button (but button disabled or grey out; so that no action can perform on this button )? And also show some text message in other text field when button is disabled?

Thanks!!

UK
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2007
Added on Jun 17 2007
4 comments
1,578 views