Hi Portal Developers,
I'm trying to write an iView will exist as an invisible iView on the default framework page and listen for the event of an iView opening a new window. However, I can't find an event that distinguishes between an iView opening in a new window or an iView opening in the existing content area.
For example, as a test to capture the event that is occurring, I have the following block of javascript that displays a message when a user navigates around in the Portal using some different Portal events.
<script language ="JavaScript">
EPCM.subscribeEvent("urn:com.sapportals:navigation", "*", onNewWindow);
EPCM.subscribeEvent "urn:com.sapportals.portal:browser", "*", onNewWindow);
function onNewWindow( eventObj) {
"Got an Event from: " + eventObj.eventName);}
</script>
All this returns when a I click on an iView that opens in a new window is "Navigate", which is no different from when an iView is clicked that does not open in a new window. I've looked through the SAP-delivered javascript files and I've also done an HTTP Trace hoping to find exactly what is happening when an iView is launched in a new window.
A trace I ran indicates that the js13_spcf.js file is called when an iView is launched in a new window. In this file, I see that there is a "mode" parameter that is passed to the "Navigate" event that I'm subscribing too. For the Open in New Window option, this seems to be set to a value of 2, which makes sense. Is there anyway I can read this "Mode" value of the event that is raised as I subscribe to the event from my iView? Any other suggestions are welcome as well!
Thanks!
Matt