Open a page in a new window on clicking a button
Ver: Application Express 4.1.1.00.23
Hi,
I have a button which opens up another page and I am passing values through the button. But I want the new page to open up in a new window.
I know that we can make the button action type Redirect to a URL and put the target as blank, but in that case, I have to hard-code my entire website link in the URL, which is what I am trying to avoid.
Is there any way around this?
Thanks.
Parth.
Hi,
I'm trying to understand exactly what you expect to happen for the page/window operation. Anytime a page/window is opened, I think there's a URL called. (I could be wrong.) I think you must have a URL. I suppose there are a couple different ways to open a page/window. You could call javascript from a Dynamic Action fired by the button. For example, I have
javascript:callMyPopup(42,'42:P42_GOBACK_PAGE,P42_ROWID,P42_DSD_ID,P42_PROC_NM:&APP_PAGE_ID.,#ROWID#,#DSD_ID#,#PROC_NM#');
Where callMyPopup function defined in the Page's Header Text -- I'm on APEX 4.1.
<script language="JavaScript" type="text/javascript">
// Start script
function callMyPopup (pageID,parms) {
var url; url = 'f?p=&APP_ID.:'+pageID+':&APP_SESSION.:::'+parms+':';
// alert('url = '+url);
Page42 = open(url,"","Scrollbars=1,resizable=1,top=600,left=100,width=925,height=250");
// End script }
</script>
Does that help any?
Howard
(more)
Google with "oracle APEX open popup window"
See especially: http://www.nullskull.com/q/10182263/how-to-create-a-popup-page-in-oracle-apex.aspx
Similar Messages
-
Open a page in a new window when clicking a tab
Hi everyone,
I am developing an apex application with apex 4.1.1 and Oracle 11.2.
I have a tab-set "TS1" in which I have a tab called "startpage". With this tab is associated a page. When logging in, this page is displayed. What I want is when I click the "startpage" tab when I'm in another page than the "startpage", the "startpage" is opened in a new window and the current page doesn't change. Only after a "login", the "stratpage" is displayed without opening a new window. I have tried several things such as an application process, etc but in vain! :-(
Has anyone an idea how can this be possible?
Thanks for help!
Kind regards,Sounds a little complicated to do with APEX standard tabs because when you click on them they actually submit the page via javascript. It would take some javascript jujitsu to replace that with your own action. You may have better luck replacing your tabs with a list. Or a plugin like the Enkitec Navbar (disclaimer: I do work for Enkitec).
However, would you mind explaining better when your trying to accomplish? It sounds a little strange. What is this page that needs to pop open? It wouldn't be a login window would it?
Thanks
-Jorge -
I click on a link in one page to open another page in a new window. This happens and I am brought to the new window, but after 1-3 secs I am brought back to the original window.
To go to the new window I have to move the cursor to the list at the bottom of the screen and click on the entry for the new window.
This behavior started a few weeks ago (say early September).
The problem is consistent.Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
How to Open BSP page in a new window?
Hi All,
I am creating a BSP application wherein i have a htmlb button for "help".
I want to open this help page in a new window, so that alongwith the help page the user can
view other pages also simultaneously.
Is there any way by which i can open this BSP page into a new window without loosing
the contents of the current page on which the help button is present.
A sample code for opening page in new window will be of great help.
Thanks in Advance for your help.Hi Mahima,
Use the onClientClick event of the button.
on_Client_Click="callwindow();"
<s cript>
function callwindow()
win_dow.o_pen("www.sap.com");
</s cript>
Please remove the underscores from code.
Regards,
Anubhav -
UIX question: Open printable page in a new window
I am using 10.1.2 version of JDeveloper with UIX/ADF.
In one of the UIX pages, I am using a submit button to fire an event named printMe to open the uix page in a printable format.
<event name="printMe">
<showFacet name="printable"/>
</event>But, understandably this takes out all the links in the page and the only way to go back to the original page is to use the back button (which users might find unintuitive). I was wondering if there is a way to make the printable page to open in a new window?
I don't think using the destination or onClick attributes of the submitButton with the javascript:openWindow() function would achieve this. Because this still loads the page in a 'printable' format in the same window and opens a new window in the 'non-printable' format.
I would like to know, if there is a way to direct the printable facet to open in a new window leaving the original page as-is, so the users can print, close the new window and resume using the application.
Or is there a better way to handle this, as I am open to ideas if there is a better way to address this usability issue.
Thanks in advance,
KarthikDear Sir...
assume that in order to view the report in the page, you should change the where clause of a view object for example (this is dependent on how and what settings you want to make for the page. it does not have to be like this, it is dependent on how you prepare data, perhaps you do not have to prepare anything at all, i do not know what code you have).
So, assume that in order to view the print report, your code was something like this:
public void onViewReport(DataActionContext ctx)
ViewObject V=GetView(); //
V.setWhereClause("myfiled=123"); //
V.executeQuery(); // these steps used for preparing data
ctx.setActionForward("printpageforward"); // go to print page
Now you remove this code , go to the print page, and override the print page prepareModel method with something like this:
protected void prepareModel(DataActionContext actionContext) throws Exception
super.prepareModel(actionContext);
ViewObject V=GetView();
V.setWhereClause("myfiled=123");
V.executeQuery();
Now you add the script to your button to show the print page in a new window, and that is it. your print page should work fine.
best regards -
How to open a new OAF page in new window while clicking submit button
Dear All
I am facing one problem.I have to pass some parameter in new page only after validation.I can't do validation in processRequest bacause I perform validation after clicking the submit button.
So I have to write redirect code in processForm Request. I can not use simple "Button" bean since I have to set destination uri which could be set only in processRequest.But I can not pass parameter with it in process request.
Thats why I have decided to use submit button but there is not target frame option in property inspector,So I am not able to open it in new window.
Kindly give me some suggestion .
Thanks in Advancehi,
u can use submit button. U need to handle submit button press in processFormRequest method.
if(pageContext.getParameter("Submit"!=null))
// validate your parameter
if parameter u capturing are valid then...
pageContext.setForwardURL(func, params ...............) // check devguide for details
if u want to access these parameter in second page . you can write this logic to processRequest of target page.
U can refer toolbox tutorial drilldown and createpage examples for implementation details.
Regards,
Ram -
Open a page in a new window passing him some parameters
Dears all,
System used : SAP WebAs 6.20
I have a link in my application which will open a contact form in a new window. This occurs by this mean :
a href="#" onMouseDownMethod="pop()" class="fontNavRIS">CONTACT US
script
function pop() {
window.open('order.htm', 'nom_popup',"menubar=no, status=no, scrollbars=yes, menubar=no, resizable=yes,width=480, height=680");
/script
When we click on the linh CONTACT US, we will open a new window with the page Order.html inside.
In this page, we will fill a form and will send it by e-mail. All that is Ok.
What I would like, is to be able to pass some values to the new window so that it fills some fields in the contact form. With JavaScript I don't know how to pass the parameters to another window.
I tried too with cookies, but I don't have any knowledge in this domain.
Thanks by advance if someone can help me.
Regards,
Nelson
To post the message I was obligated to remove the "<" and ">" from my code, and rename onMouseDown to onMouseDownMethod...Hi,
Sorry Arun but I don't understand one point.
this code :
navigation->goto_page( 'third.htm' ).
is ABAP code right ?
Today I use this :
window.open('order.htm', 'nom_popup',"menubar=no, status=no, scrollbars=yes, menubar=no, resizable=yes,width=480, height=680");
because I call my new window from a JavaScript function.
navigation->goto_page( 'third.htm' ).
is not javascript code, I can't replace my code by this one. This give me an error.
Like explained, I've tried to do this :
function pop() {
<%
navigation->set_parameter( name = 'username' value = '123' ).
%>
window.open('order.htm', 'nom_popup',"menubar=no, status=no, scrollbars=yes, menubar=no, resizable=yes,width=480, height=680");
But I have this message : The field "navigation" is unknown, but there is a field with the similar name "_m_navigation"
I do all this manipulation always in the Layout section of my page -
Opening a page in a new window...
I have discovered that if a page is being opened by clicking a link rendered using the Destination URI and the target frame is self, then it opens up in a new window. Why can't I duplicate this behavior using the pageContext.setForwardURL method?
Hi
OAF gives no ways other than target frame "_blank", to open pop up windows. Also OAF only supports read only pop up window. But if your requirement is a pop up window.... u can do it via javascript. You can see this link...
http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html
Ajay -
When i klick a link that should open the page in a new window it opens up a blank page
For example a link like this: javascript:%20window.open('http://www.survey-xact.dk/LinkCollector?key=TQ8P4KJN1K3P',%20'_blank',%20'height=580,width=800,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');undefined
It opens up a new window, but blank. Happens pretty often so I´m greatful if I could get help fixing this.That link doesn't seem to exist anymore on that server: http://www.survey-xact.dk/LinkCollector?key=TQ8P4KJN1K3P
-
as described above, cant open anything in a new window, even from right click menu.......... open in new tab is not checked in settings.
also the flash plug in crashes all the timeI have these problems, as well, but after disabling and re-enabling extensions and plug-ins one by one, it appears these issues are related to the Java Console 6.0.22 extension update. With this extension disabled and the older Java 6.0.20 enabled, I could open a new window and FF could exit correctly even with the updated Java Deployment Toolkit 6.0.220.4 and Java(TM) Platform SE 6 U22 6.0.220.4 plug-ins enabled.
The question is whether FF is conflicting with the Java Console update or the Java Console update is the true culprit. I'm leaning toward the latter.
Firefox 3.6.10
''Extensions:'' Java Console's (noted above), Better Privacy 1.48.3, Download Helper 4.8.1, Scrapbook Plus 1.8.17.31,Vacuum Places Improved 1.1, and ZoneAlarm Toolbar 1.5.152.10
''Plug-ins:'' Java Platform and Toolkit (noted above), Mozilla Default 1.0.0.15, QuickTime 7.6.8.0, Silverlight 4.0.50917.0, Windows Genuine Advantage 1.9.0042.0, and WPF 3.5.30729.1
Vista Home Premium (SP2) -
Open only page/iView in new window
Hi,
How can I publish a porta page (or iView) in a way that I can open the page/iView without the role menu? Or what kind of URL should I use to call the page (or iView).
In other words I want to achieve the same functionality which I get when I test the page or iView with the preview button in the portal content directory.
I assume that I still need to assign this page (or iView) to a role and then assign this role to the user (in order to get this working), but I don't want certain types of users to see the role menu. They just need to open the needed application from our Intranet.
I thought I could achieve this by using "URL navigation" but it still shows the role context menu.
Regards
PaHi,
You say you have already checked with NavigationTarget option? What kind of iVIew it is? Why not pick the url link from the preview page itself? That will not show role based menu. The url u picked can be added as link to ur intranet page. You have to decide on authentication though. If you want user to click the link and enter portal username and password to see the iView, then u can keep default settings. Else you can make the iView as anonymous iView by setting it in iView properties.
Hope that helps.
Regards,
Harini S -
How can I go to a new window by clicking a button
Hi, I am a beginner user of Labview. Could help me solve this problem:
For user's login verified, the system allows the user to choose two functions.
Press button 1, go to a new window where the user can change their particulars
Press button 2, go to another window where the main menu is.
I used case structure to select functions. But it can not work.
The attachment is what I do. Can anyone help to point out my mistakes?
Thanks a lot.
Regards
yoyo
Attachments:
Using Buttons to Initiate Actions.vi 33 KBHello yoyo,
just put your "Main_Menu.vi" instead of the text "main menu" (and set the window properties to "Open when called" and "Close when finished" of that vi).
Btw. you can also use "Wait for Front panel activity" instead of "Wait (ms)" For a simple user interface this is really convenient.
Hope this helps,
GerdW
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Using setForwardURL, is there any way to open the page in a new window?
I am using a submitButton which has NO Target Frame property.
I am programmtically gathering parameters and forwarding to the next page using setForwardURL.
This seems like it should be simple but combing through the threads on this, I am rather confused. Am I not able to use a submitButton and still accomplish this somehow?Thank you!
But I don't know how to pass my parameters that way. Currently I am passing 2 formvalues, 1 value picked up from a field (MessageTextInput), and one txnvalue picked up from the pageContext.
How can I pass these types of params using Destination URI? I can only find examples of passing params based on view object attributes using syntax like order={@OrderNum}
Thanks again for your help... -
Opening page in new window on click of link in Global button bar section
Hi,
I have created a custom global link to appear alongside Home, Logout links. The requirement is to open a page in a new window when i click on the custom global link. Please let me know how to achieve this functionality.
Thanks,
VGVG,
I think you should be able to open in a new window using the javascript in the function defn,
please check the blog http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html and try it out.
Let me know if you are not able to achieve the same.
With regards,
Kali.
OSSi. -
Firefox randomly opens an existing page in a new window
I open Firefox with no problem - it opens all my existing tabs. When I choose a tab, and run the cursor over a page (no button pressed) Firefox will randomly (not always) open that page in a new window. VERY annoying!
The problem occurs with no clicking or dragging, but thanks ...
~pete
Maybe you are looking for
-
Getting error while connect ucm through JAX-WS protocal
HI All , please help me to come out form this problem. I have written the following code in my servlet and when I am trying to call the servlet I am getting following error. I tried to access 'http://localhost:16200/cs/idcnativews/IdcWebRequestPort?W
-
What is Toshiba part number for Satellite Pro L20
Morning Does anyone happen to know the Toshiba Part Number for the Satellite Pro L20? I seem to have mislaid mine. Thanks Si
-
FBD1 posting - Recurring GL entries: Function module or BAPI for posting
All, I am trying to do posting of recurring GL entries through an excel upload program. For this I would require a BAPI or function module that does this in the background. Has anybody used such a function module in your past experience. Help is very
-
How to initialize insert form as empty instead of showing values
Hi All, i am new to ADF and Jdeveloper, maybe my question is easy for many of you, i searched the forum i could not find what i was looking for. I am using Jdeveloper 11.1.2.3.0. I want to create input form that starts as empty then on button click t
-
Crashing - Freeze when trying to export more then one project in compressor
when i set more then one final cut project to convert a DVCPRo HD project to DVD media or quicktime during the first batch project the system freezes. I used to be able to do multiple projects over night or the weekend and now i have to do one at a t