Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

fetch a value of apex item into javascript global variable

orton607Jul 30 2010 — edited Aug 1 2010
Hello,

can anyone please help me out with this issue with javascript.

I have items P0_DEPT and P0_EMP both of them are select list with submit items.

Now I want get the values of these items in javscript global varibales. For this I have the following code which is not working returns nothing. The reason why I have defined global is I want to use these values in other functions also.
<script type="text/javascript">
<!--

var dept = $v('P0_DEPT');
var emp =  $v('P0_EMP');


function globalTest()
{

alert(dept);
alert(emp);

}
thanks,
Orton
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2010
Added on Jul 30 2010
4 comments
1,909 views