|
|
|
|
|
Re: how to pass parameter and receive that paramter in pages [message #385423 is a reply to message #385241] |
Mon, 09 February 2009 09:43 |
dr.s.raghunathan
Messages: 540 Registered: February 2008
|
Senior Member |
|
|
dear kamal Hossain,
you do the following and you can understand the modalities of setting the value.
create two pages (blank form) as page 10 and page 11.
In Page 10 create two text item as p10_xx, p_10_yy
In Page 11 create one text item as p11_zz.
The following two objectives need to be done.
1. If i enter 1 in p10_xx, the value 'one' should be displayed in p10_yy. if any other value other than 1 is entered in p10_xx then 'others' should get displayed in p10_yy.
2. When i run the page 11, p11_zz should display the value stored in p10_yy.
First thing in page 10 you select the property of p10_xx as text_field ( always submit when enter pressed) instead of mear text_field.
This will facilitate, any value type in this item (p10_xx) and pressing enter will fire submit.
Now you write a process on submit after computation and validation) (Once per session)
declare
avar varchar2(30);
begin
if :p10_xx = 1 then
avar := 'one';
else
avar := 'others';
end if;
:p10_yy := avar;
end;
edit the branch process give the following values against the labels mentioned below:
Target is a ==> Page in this application
Page ==> 10
set these items ==> p11_zz
with these values ==> &p10_yy.
Now try to run page 10 you can find values in p10_yy. Now run page 11 you will find the values of p10_yy in this present page against p11_zz
Hope, i have clarrified your doubt.
best of luck,
yours
dr.s.raghunathan
[Updated on: Mon, 09 February 2009 09:45] Report message to a moderator
|
|
|
|