Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » How to set form items at page load (Apex 3.2)
How to set form items at page load [message #464866] Sat, 10 July 2010 01:31 Go to next message
BBMamun
Messages: 94
Registered: February 2010
Location: Dhaka, Bangladesh
Member
How can I set some specific item value depending on user id value?

For example, abc is a user id and it represents ABC Bank Ltd. Now I need some Item to be set with the value ABC Bank Ltd. and with the code Bank_Code at page load when logged in with abc user id.

Regards

Hasan Al Mamun
Programmer
Bangladesh Bank
Dhaka, Bangladesh
Re: How to set form items at page load [message #465168 is a reply to message #464866] Tue, 13 July 2010 01:35 Go to previous messageGo to next message
delna.sexy
Messages: 941
Registered: December 2008
Location: Surat, The Diamond City
Senior Member
You can create PROCESS and can set its execution event according to your requirement.

regards,
Delna
Re: How to set form items at page load [message #465253 is a reply to message #465168] Tue, 13 July 2010 05:45 Go to previous messageGo to next message
mehediu
Messages: 46
Registered: February 2010
Location: Dhaka
Member

You also can set through parameter or Global variable you will get this value in every page you go from this page.

regards
mehedi
Re: How to set form items at page load [message #468549 is a reply to message #465253] Fri, 30 July 2010 11:08 Go to previous messageGo to next message
dr.s.raghunathan
Messages: 540
Registered: February 2008
Senior Member
as delna.sexy said, before header process will help
Re: How to set form items at page load [message #468595 is a reply to message #464866] Fri, 30 July 2010 23:07 Go to previous messageGo to next message
BBMamun
Messages: 94
Registered: February 2010
Location: Dhaka, Bangladesh
Member
Hi thanks for the reply, I have figured that out and using the process in my application and it's working fine. I was thinking if it can be done with javascript at page load.

Regards

Hasan Al Mamun
Re: How to set form items at page load [message #483347 is a reply to message #468595] Sat, 20 November 2010 21:31 Go to previous messageGo to next message
dr.s.raghunathan
Messages: 540
Registered: February 2008
Senior Member
yes, it can be done with javascript also
Re: How to set form items at page load [message #483373 is a reply to message #483347] Sun, 21 November 2010 09:06 Go to previous messageGo to next message
BBMamun
Messages: 94
Registered: February 2010
Location: Dhaka, Bangladesh
Member
Hi, could you please reply with an example.
Re: How to set form items at page load [message #483377 is a reply to message #483373] Sun, 21 November 2010 09:42 Go to previous message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
BBMamun wrote on Sun, 21 November 2010 09:06
Hi, could you please reply with an example.


Have a look at below link:
http://apex.oracle.com/pls/otn/f?p=38704:1:644353795282243

HTML Page header:
<script type="text/javascript">
function setitem() {
$x_value('P9_ID','ABC');
}
</script>


body:
onLoad=setitem();


Quote:

Give me an example?
I created a simple page where you can enter name and ssn. When you hit 'Go' button, APEX navigates you to another page which displays the details you entered in previous page.

If your question is something like above then you should read this article :
http://apps2fusion.com/at/kr/405-save-state-new-security-feature-in-apex-32

Hope it helps!

Regards
Ved

[Updated on: Sun, 21 November 2010 12:57]

Report message to a moderator

Previous Topic: Apex error
Next Topic: Application Express sql HELP NEEDED!
Goto Forum:
  


Current Time: Wed Jun 03 02:15:01 CDT 2020