Home » Developer & Programmer » Forms » changing Radio button value (forms 6i)
changing Radio button value [message #398061] Wed, 15 April 2009 01:45 Go to next message
sivajyothi.kalikiri
Messages: 29
Registered: March 2009
Junior Member
Hi,

Can we check one radio button value in other radio button when-radio-changed trigger.
i have 2 radio group items.
1)Raise-in this 2 radio buttons are there
yes--value 'Y'
No --Value 'N'
2)TR_ID---in this 2 radio button's are there
Credit --Value 'C'
Debit -- Value 'D'
through one push button i will fetch the details of TR_ID.
Suppose TR_ID is 'C'
my requirment is If i changed RAISE to 'N' and if TR_ID is 'C'
then TR_ID should automatically change in to 'D',If TR_ID is 'D'
then TR_id should change in to 'C'.
I wrote the following code in RAISE when-radio-chnged trigger

DECLARE
BEGIN
IF :T_CBJ_MST_BLOCK.RAISE = 'A' AND :T_CBJ_MST_BLOCK.AMT_ID = 'D'
THEN
:T_CBJ_MST_BLOCK.AMT_ID := 'C';
END IF;

IF :T_CBJ_MST_BLOCK.RAISE = 'A' AND :T_CBJ_MST_BLOCK.AMT_ID = 'C'
THEN
:T_CBJ_MST_BLOCK.AMT_ID := 'D';
END IF;
END;

But it's not working? tell me some suggestions.
Re: changing Radio button value [message #398068 is a reply to message #398061] Wed, 15 April 2009 02:19 Go to previous messageGo to next message
sivajyothi.kalikiri
Messages: 29
Registered: March 2009
Junior Member
Now it's working
Sorry for the inconvinience
Re: changing Radio button value [message #398078 is a reply to message #398068] Wed, 15 April 2009 03:00 Go to previous messageGo to next message
Littlefoot
Messages: 20897
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
So, what did you do so that it suddenly worked? People would/might want to know.
Re: changing Radio button value [message #398083 is a reply to message #398078] Wed, 15 April 2009 03:14 Go to previous message
sivajyothi.kalikiri
Messages: 29
Registered: March 2009
Junior Member
I just modified the code in RISE when-radio-changed-trigger

DECLARE
BEGIN
IF :T_CBJ_MST_BLOCK.RAISE = 'A' AND :T_CBJ_MST_BLOCK.AMT_ID = 'D'
THEN
:T_CBJ_MST_BLOCK.AMT_ID := 'C';
ELSE
:T_CBJ_MST_BLOCK.AMT_ID :='D';
END IF;

END;

it's working now.
Previous Topic: content canvas
Next Topic: Calendar in Forms (10g)
Goto Forum:
  


Current Time: Wed Dec 07 04:49:14 CST 2016

Total time taken to generate the page: 0.08860 seconds