Home » Developer & Programmer » Forms » Problem With Radio Buttons
icon5.gif  Problem With Radio Buttons [message #212401] Fri, 05 January 2007 03:20 Go to next message
pushpendra.tomar
Messages: 11
Registered: January 2007
Location: Hyderabad
Junior Member
Hi All,

I am trying to enable and disable buttons in my form based on
the RADIO BUTTON I select.

But to do so I can't find way to know the status of radio button.

I used this code:

TRIGGER : When-new-form-Instance

DECLARE
Id_Item MenuItem;
Id_It Item;
BEGIN
Id_Item := Find_Menu_Item('RAD_GRP.ADD_NEW');
if (Get_Menu_Item_Property(Id_Item, CHECKED) = 'TRUE')
then
Id_It := Find_Item('IMB.ADD');
Set_Item_Property(Id_It,VISIBLE, PROPERTY_TRUE);
end if;

END;

When Executed I got the Message:
FRM-41067: Cannot find Menu Item Invalid Id.

Here: 'RAD_GRP' is item name.
'ADD_NEW' is radio button name
'IMB' is data block name &
'ADD' is the button name which I want to make visible.

Kindly help...

[Updated on: Fri, 05 January 2007 03:27]

Report message to a moderator

Re: Problem With Radio Buttons [message #212409 is a reply to message #212401] Fri, 05 January 2007 04:15 Go to previous messageGo to next message
amul
Messages: 252
Registered: April 2001
Location: Chennai
Senior Member
DECLARE
Id_Item MenuItem;
Id_It Item;
BEGIN
Id_Item := Find_Menu_Item('RAD_GRP.ADD_NEW');
if (Get_Menu_Item_Property(Id_Item, CHECKED) = 'TRUE')
then
Set_Item_Property(Id_It,VISIBLE, PROPERTY_TRUE);
end if;

END;
Re: Problem With Radio Buttons [message #212411 is a reply to message #212401] Fri, 05 January 2007 04:18 Go to previous messageGo to next message
vamsi kasina
Messages: 2107
Registered: October 2003
Location: Riyadh, Saudi Arabia
Senior Member
Is your radio button a Menu Item?
Cross check the syntax for find_menu_item.
Also debug on Id_Item.

By
Vamsi
Re: Problem With Radio Buttons [message #212420 is a reply to message #212411] Fri, 05 January 2007 04:41 Go to previous messageGo to next message
pushpendra.tomar
Messages: 11
Registered: January 2007
Location: Hyderabad
Junior Member
Thanks Vamsi,

I think my Radio Button is not a part of menu item. It is simply
present in the data block.....

Infact I don't have much knowledge in Forms & Reports....
So along with the solution please suggest me a good book for forms development and also if you have any electronic documentation for forms, then please forward me at my mail:

pushpendra.tomar@Gmail.com

Thanks in advance for all your help.

Pushpendra
Re: Problem With Radio Buttons [message #212423 is a reply to message #212420] Fri, 05 January 2007 04:48 Go to previous messageGo to next message
vamsi kasina
Messages: 2107
Registered: October 2003
Location: Riyadh, Saudi Arabia
Senior Member
Is there any thing better than Oracle Documentation?
By
Vamsi
Re: Problem With Radio Buttons [message #292430 is a reply to message #212423] Tue, 08 January 2008 23:03 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have a look at some of the tutorials. Search this forum for 'tutorial'.

David
Previous Topic: how to logout automatically and identifying the user who inserted a record
Next Topic: Getting Externally Menu item code
Goto Forum:
  


Current Time: Sun Dec 11 07:58:58 CST 2016

Total time taken to generate the page: 0.10380 seconds