Home » Developer & Programmer » Forms » Disable Button
Disable Button [message #627668] Thu, 13 November 2014 22:56 Go to next message
Nasir.azeem
Messages: 40
Registered: September 2014
Location: Karachi
Member
Dear All.

i want when user_id is null then disable highlight button . snap shot attached here.

Regard

Nasir Azeem.
  • Attachment: pic.jpg
    (Size: 312.38KB, Downloaded 841 times)
Re: Disable Button [message #627675 is a reply to message #627668] Fri, 14 November 2014 02:35 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
So use set_item_property
Re: Disable Button [message #627680 is a reply to message #627675] Fri, 14 November 2014 05:16 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
Yes @cookiemonster is right just see the example code


---WHEN-VALIDATE-ITEM-----

IF :BLOCK3.USER_ID is null then

    Set_item_property('BLOCK3.B1',enabled,property_FALSE);
    Set_item_property('BLOCK3.B2',enabled,property_FALSE);

ELSE

    Set_item_property('BLOCK3.B1',enabled,property_TRUE);	
    Set_item_property('BLOCK3.B2',enabled,property_TRUE);	

end if;

--------------------Another Example----------


IF :BLOCK3.USER_ID is not null then
    Set_item_property('BLOCK3.B1',enabled,property_true);
    Set_item_property('BLOCK3.B2',enabled,property_true);

elsif 
	 :BLOCK3.USER_ID is null and :BLOCK3.USER_NAME is null
then
   Set_item_property('BLOCK3.B1',enabled,property_false);
   Set_item_property('BLOCK3.B2',enabled,property_false);
end if;




  • Attachment: user_id.fmb
    (Size: 48.00KB, Downloaded 1146 times)

[Updated on: Fri, 14 November 2014 05:23]

Report message to a moderator

Re: Disable Button [message #627694 is a reply to message #627680] Fri, 14 November 2014 11:37 Go to previous messageGo to next message
xebec
Messages: 37
Registered: July 2014
Location: Miraflores
Member
I agree with @cookiemonster
Just set_item_property.
And if it is neccesary condition these.

But If It doesn't the case, explain us , more expicify for help you. Smile

[Updated on: Fri, 14 November 2014 11:38]

Report message to a moderator

Re: Disable Button [message #627711 is a reply to message #627694] Fri, 14 November 2014 21:56 Go to previous messageGo to next message
Nasir.azeem
Messages: 40
Registered: September 2014
Location: Karachi
Member
it's done experts. i go second and third block button and write

Begin
if :control.user_id is null then
message ('Please select user id first');
message ('Please select user id first');
else
declare
x boolean;
begin
x:=show_lov('ABC');
end;
end if;
end;
Re: Disable Button [message #632517 is a reply to message #627711] Mon, 02 February 2015 06:11 Go to previous message
jgjeetu
Messages: 373
Registered: July 2013
Location: www.Orafaq.com/Forum
Senior Member

very good, but atleast you could say thanks to those who are not getting paid & still helping you. i saw your all posts & you are so lucky that you got useful reply most of the time but you have not said thanks to anyone even once. Smile
Previous Topic: Vehicle DashBoard Idea
Next Topic: Is it possible to install Oracle 11g Forms Builder on Windows desktop without the WebLogic Server?
Goto Forum:
  


Current Time: Tue Apr 23 13:30:11 CDT 2024