changing Radio button value [message #398061] |
Wed, 15 April 2009 01:45 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 #398083 is a reply to message #398078] |
Wed, 15 April 2009 03:14 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
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.
|
|
|