This discussion is archived
3 Replies Latest reply: Nov 21, 2012 1:09 PM by fac586 RSS

Want a javascript redirect URL using an already defined page item?

user12602240 Newbie
Currently Being Moderated
Hello,
i have a button where i configure a Redirect to URL option... and use : javascript:html_PopUp('http://yahoo.com', '_newwindow');

That is pretty clear, and it works. I also have a defined page item which does contain a valid URL
For example :P4_OFFICE_WEB_PAGE_LINK_V:='http://google.com'

I want the pop up to use a stored value, not the hardcoded one at the top... I have tried all of these, but none seem to work :

javascript:html_PopUp('P4_OFFICE_WEB_PAGE_LINK_V', '_newwindow');
javascript:html_PopUp(':P4_OFFICE_WEB_PAGE_LINK_V', '_newwindow');
javascript:html_PopUp(APEX_UTIL.GET_SESSION_STATE('P4_OFFICE_WEB_PAGE_LINK_V'), '_newwindow');

What should i use?

Thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points