Open iView in new WINDOW for CATW
HI All,
We are on Netweaver2004s and the browser used is either Internet Explorer 7 (Microsoft Vista) or Mozilla Firefox.
Now what I need help on is that I have a link on my page that says "Report Your Time", this link calls the Internet Service CATW via the ITS from my R/3 and opens the TIMESHEET (which is an iView) to be filled in by the user <b>in a new window</b>.
On this TIMESHEET I have a link called as "EXIT" , now after the timesheet is filled and saved, the user should use this "EXIT" link to leave the window. The code behind "EXIT" is so written by SAP that it kills the user's session. But not always and all user's use this "EXIT" link, they generally close the window by browser's (X) close button. This causes the user to get locked in the backend.
So far I have been able to trap the browser's (X) close button and kill the session by using "setOKCode('/nex')". This works fine in I.E 6 (which has no tabs) and if the user <b>closes</b> Mozilla Firefox from the top (X) close button of the browser.
BUT, in I.E 7 and mozilla firefox, when the user clicks on "<u>Report Your Time</u>" link on my page, a new tab opens and the TIMESHEET is displayed on this tab within the same browser window, so after filling and saving the timesheet when the user closes the (TIMESHEET) <b>tab</b>, the session does not get killed and the user gets locked in the backend. Here, <b>if</b> the user had closed the entire browser window by using the the top (X) close button of the browser, instead of just closing the <b>tab</b> containing the TIMESHEET, then his session would have been killed by my code.
This is the code that identifies if the user has clicked on top (X) close button of the browser. <b>But this code does not identify if a browser's tab is closed.</b>
<BODY onbeforeunload="HandleOnClose()">
<script language="javascript">
<!--
function HandleOnClose() {
if (event.clientY < 0) {
event.returnValue = 'Are you sure you want to leave the page?';
In the above I check clientY property of the event object, which is used to set or retrieve the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
Is there a way to capture the closing of a browser's tab. A way by which I can trap the event raised when the browser window's tab is closed.
This has to be done via "Java Script" since the code will be placed in the HTML template in SE80.
Kindly help with your expert suggestions
Regards
Saurabh
Hi Aviad,
You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
Hope it helps
Detlev
Similar Messages
-
How to open iview in new Window
Hi frnds,
Can u help me plz, am trying to open iview in new window.
i'v try to changed ivew property @ Launch in New Window = Display in Saparate Window but still @ my portal iview is displaying in Content Area only i want display in new window.
And i tryed @ Sys.admin -
> Sys.Config-->ServiceConfig-->Applicaitons ->com.sap.portal.epcf.loader
Change workprotect.mode.default to 2
still its getting in sam content are plz can u help out ASAP..
ThanQ VitaHi Richard,
The property Launch in New Window = Display in Saparate Window should work. Try to assign the iView directly to the role and check. It might also be some cache problem. Try to navigate to System Administration>System Configuration>Navigation Cache.
Clear them and check once again. Hope it might solve your problem.
Regards
Basha -
Open iView in new window in fullscreen
Hi,
I would like to open an (URL) iView in new window and maximize it size to expand on all the screen. Something like: width=100% height=100%.
Unfortunatly, the window feature properties does not allow this, it only allows passing width and height in pixels.
Does anyone has a solution for this issue? How to open iView in a new window in full-screen.
Thanks in advance,
AviadHi Aviad,
You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
Hope it helps
Detlev -
Nightwolfx03 has asked this same question as question #822903, but with different wording. To maximize the matches for searches, I'm re-stating it.
When I right click on a link and select "Open Link In New Window" to display a new webpage, Firefox restores (expands) ALL the windows which have been minimized on my taskbar. Multiple windows cascade upwards onto my screen, taking several seconds and being incredibly annoying. HELP!This issue can be caused by the ASK.com Toolbar
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
As I say, since I updated to 3.6.15 I am unable to open links off a webpage that should open in a new window, or even open enlarged photographs in a separate window. Either, in the case of the latter, I get the message "stopped" in the bottom of the browser window, or in the former case it either appears to begin to load the new page but then stalls. Sometimes I don't even get this, but end up with "(Untitled)" appearing in the tab label.
As you can imagine, this is causing a great deal of problems and I am keen to sort it out asap.Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]] -
Open iviews in new window from detailed navigation context menu function
hello,
when we click in the detail navigation menu and in the context menu (because many of ours users are used to right click to open a link in a new window on the internet) on the functionnality "open in new window", the start page is always display instead of the corresponding iview ...
could you tell me if there is a configuration into the portal to :
1- suppress the function "open in new window" from the context menu in the detailed navigation !
2- make the iview displayed into the new window really the iview desired !
best regards,
Olivier.Hi Olivier,
The frist part is very precise. Not possible. Period. The reason is that the links are calling JS and not directly calling a http target.
About the second part: Within the Light Framework, you create a Light Detailed Navigation. And in this case, the links are direct http links. So with that, you have what you want.
For the Light Framework see http://help.sap.com/saphelp_nwce10/helpdata/en/43/0174a642406db7e10000000a422035/frameset.htm and around.
Hope it helps
Detlev -
Preview iView / Open iView in new window not properly working
Hello,
I've got a question regarding previewing an iView (by pressing the "Preview" button in its properties) or opening an iView in a new Window by clicking on a button for instance. The problem is that when the window is opened, the iView cannot be displayed and a Portal Runtime exception is thrown, with the message "Cannot find iView" iView: N\A. This is very strange, since sometimes it works, when i test it on a different browser, but even on the same browser on which it works , sometimes it still fails, and displays "Cannot find iView". Does anybody have any clue what this problem can be? Basically it happens most of the time, but sometimes (randomly?) it works. I guess it may be a problem with caching, but i haven't resolved the reason yet. Thanks very much.Try playing around with the load settings. Specifically, try turning off client-side caching, your browser might be getting confused depending on the kind of iview you are previewing.
A couple of questions:
1. What kind of iview is it?
2. Does it work if you stick it on a page and preview the page? -
Open iView in New Window via Link
Hi,
I have created a link that opens an iView within a role:
<b>http://server:port/irj/portal?NavigationTarget=....</b>
Although, I have set the the iView parameter to <b>Open in Separate Window</b>, it is displayed within the portal content area. How can I achieve that the iView is opened in a separate window?
Thanks.
/ElvezHi Elvez,
So you want the user pressing the link, a new browser window opens with the portal, and from that, an additional window opens with the iView?! Hm, if it makes sense for you...
No, EPCM calls of course don't work within an eMail. And the solution you have implemented is the one to go, whether implemented as KM doc or as an iView rendering the JS.
Hope it helps
Detlev -
Hello SDNers,
I hv a Par IView which on click will navigate to specific internet site.
The IView takes me tht internet site.
However, I want to open the target content in a new window rather opening in a content area or the desktop inner page.
My code goes here like this :
<p> <a href="http://www.abcd.com"><img src="<%= componentRequest.getWebResourcePath() + "/images/Sampleimage.gif" %>" border="0"></a>
Anybody has an idea on the same ? Please, help me where I went wrong ?
Thanks for your time. Looking forward to your repsonses.
Kind Regards,
RK.Hi Ravindra,
The portal gives you the opportunity to open an iView in any size window you want (just like window.open, as Preveen mentioned).
First, if you are navigating to the iView from another iView, simply use the EPCM.doNavigate() method with the proper windows features parameter -- see http://help.sap.com/saphelp_nw04/helpdata/en/26/71c74030308431e10000000a1550b0/frameset.htm.
Second, even better, these window features can be supplied in the iView properties, so you can easily set up a DTN where you get your iView in a new window, and the window can be 100 x 200 pixels without and minimize button, or whatever. The properties are under the Navigation category.
Daniel -
Hi
I have added a new link in the xRPM screen from 'SPRO'. I want an iview to be opened in a new portal window on clicking this link. I have tried changing the property of view to ' Launch in a Separate Window' but it didnt work.
Page ID in SPRO : pcd:portal_content/View/view1.
Is there any way that i can open a new portal window on clicking this link.
Regards
Puneetlook at this link
iviews and pop up window -
Open iView in new window with no IE nav
Using EP6 SP2:
From the third level navigation, I need to open an iView in a new window. The trick is that I need the new window to not have the standard IE navigation buttons. Basically, window.open("http://my.url.com","toolbar=no").
I cannot figure out how to do this within the standard navigational structure. The url that I am linking to is outside of the portal, but it is using an SSO logon ticket to authenticate.Write a html page that opens the url like you want it.
Put this html on a km folder and make a km-document iview to it.
Message was edited by: Rob Hiddinga
I just thought of a better way:
just make an iview to the website and put your options ( fullscreen=yes) in the propertie Window Features
Let us if this solved your problem -
URL should open in a new window for Oracle portal
Hi Gurus,
I am stucked in a problem related to Portal. I am developing a portal page under which many Links with URL's will be listed. I want all the URL's should be opened in a separate window.
I am unable to do so.
Appreciate any quick help on this,
Thank you
RajRaj,
I don't think its a Database question. If its related to AS Portal, you may want to post it here,
Oracle Application Server Portal
HTH
Aman.... -
== Issue
==
I have another kind of problem with Firefox
== Description
==
The page which comes up says in the address bar "Search bookmarks and history" instead of redirecting to desired page and has nothing at all in the status bar or anywhere else on the page!
== This happened
==
Every time Firefox opened
== Troubleshooting information
==
Application Basics
Name Firefox
Version 3.6.6
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Java Console 6.0.16 true
Java Console 6.0.17 true
Microsoft .NET Framework Assistant 0.0.0 true {20a82645-c095-46ed-80e3-08825760534b}
Java Console 6.0.19 true
Java Console 6.0.20 true
Vuze Remote Toolbar 2.7.1.3 true
RadioBar Toolbar 1.0.0 true radiobar@toolbar
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar 0
browser.history_expire_days 0
browser.history_expire_days.mirror 180
browser.history_expire_days_min 2
browser.places.importBookmarksHTML false
browser.places.importDefaults false
browser.places.leftPaneFolderId -1
browser.places.migratePostDataAnnotations false
browser.places.smartBookmarksVersion 2
browser.places.updateRecentTagsUri false
browser.startup.homepage google.com
browser.startup.homepage_override.mstone rv:1.9.2.6
browser.tabs.warnOnOpen false
extensions.lastAppVersion 3.6.6
keyword.URL http://search.conduit.com/ResultsExt.aspx?ctid=CT2504091&q=
network.cookie.prefsMigrated true
places.last_vacuum 1278923152
privacy.clearOnShutdown.cookies false
privacy.clearOnShutdown.downloads false
privacy.clearOnShutdown.formdata false
privacy.cpd.cookies false
privacy.cpd.downloads false
privacy.cpd.formdata false
privacy.cpd.history false
privacy.item.downloads false
privacy.item.formdata false
privacy.item.history false
privacy.sanitize.migrateFx3Prefs true
privacy.sanitize.promptOnSanitize false
privacy.sanitize.sanitizeOnShutdown true
security.warn_viewing_mixed false
== Firefox version
==
3.6.6
== Operating system
==
Windows Vista
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
== Plugins installed
==
*-Office Plugin for Netscape Navigator
*Adobe PDF Plug-In For Firefox and Netscape
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*Default Plug-in
*Provides additional functionality on Facebook. See our web site for details.
*npvideoegg-loader
*Shockwave Flash 10.1 r53
*Adobe Shockwave for Director Netscape plug-in, version 11.5
*iTunes Detector Plug-in
*4.0.50524.0
*Office Live Update v1.3
*NPWLPG
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsersIt could be the work of one of your add-ons, or even add / mal-ware.
Look thru your add-ons list and make sure you know what each one is
there for. Also, check the programs that are on your computer
'''Windows > Start > Control Panel > Uninstall Programs.'''
'''(Mac: Open the "Applications" folder)'''
Go thru the list and use a web search to check any that you don't
know what they are.
'''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware Troubleshoot Firefox Issues Caused By Malware]''''' {web link} -
URL iView doesn't open link in new window
Hi All,
I'm have an URL iView that I want to display in the portal content area but whenever the user clicks on a hyperlink on that iView launch a new window for the link.
I've tried using the 'Open iView links in new window' without any success. Is this supposed to work or this property is for another purpose...? Can someone point me to a solution.
ThanksHi Detlev,
I checked what you said. I've already looked at that page but didn't saw that important disclaimer. My problem was that I didn't had a captured area-URL iView but a full page-URL iView as it says:
+These properties are relevant in the following instances only:
§ The iView content is displayed in its source format. The rendering type must be defined as Keep Source Formatting. See Defining the Look and Feel of the iView Content.
§ The iView content displays a captured area, and not the entire Web page. See Selecting the Capture Area.+
I only had to change the 'Open iView links in new window' to Yes after capturing a part of my page and it started working.
Thanks for sharing -
Strange behavior when opening ESS iview in new window
Hi all,
I have a problem that i find very strange. In ESS, when opening a iView in a new window, for some users the link to the ITS service gets corrupt..
An example:
http://XXXXXX:54500/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id=pcd%3Aportal_content/com.ericsson.Ericsson/com.ericsson.ESS/com.ericsson.roles/com.ericsson.EP_ESS_HRMS/com.ericsson.personal_information/com.ericsson.previous_employers/com.sap.pct.ess.persinfo.pz28&iview_mode=defaultNavPathUpdate=false&buildTree=false
If you look at this link you can see that the & sign between iview_mode and NavPathUpdate is missing and makes the launch of the iview will fail.
If I use the same link for opening the page in a new window this error does not appear.
I have tried to change the parameters that are passed on but this does not help..
Any ideas?
Cheers,
MaxHas anybody found a solution to this?
We have the same problem when calling BW Reports.
Best regards,
Manuel Schaffner
Maybe you are looking for
-
Not to show the wage type when amount is zero in payslip
Hi Gurus, I am not sure what's wrong with the rule below, my intention is to display the text and the wage type amount when the wage type amount is not Zero, and not to display the text and the amount when wage type amount is zero. Below is the rule
-
What mac program should I use to edit html?
I am used to editing my website using html on my old PC but am now using the mac much more and would like to do it from here. I transferred the file over but can't work out which program to use for the editing. Thanks for any help with this.
-
Create Empty Messages --Not working
Hi All, Iam trying to perfom file to file with content conversion when there is an empty file is coming from source, i have to process it and create the file in target with empty file. I setup the setting at sender file adapter saying that process em
-
Procurement confirmation wizard and multiple Purchase quotes
Hi Experts, I have played around with the Procurement confirmation wizard in 8.81 and tried to get this to create multiple Purchase Quotes from one Sales Order. In the Help file and 8.81 documentation it specifies that this is possible. I could not g
-
I am unable to sync my old Itunes library to the IMac I purchased last month, I tunes wants to erase the old library except for the ITunes I have purchased. Any ideas out there?