cancel
Showing results for 
Search instead for 
Did you mean: 

Raise event on portal from a separate/new window?

Former Member
0 Kudos

Hi All,

we're currently running EP7 with a number of BSPs integrated providing HR functionality to users. Some of these BSPs (accessed via BSP iViews) are opened in a new window. We've built a bespoke component that times out the user if he/she has not been active for more than 15 mins. The bespoke component counts down 15 mins in a javascript. The javascript timer is reset every time the following event is raised "urn:com.hbos.portal.general:Activity" - this works fine for everything that is run within the portal including BSPs that run in a frame, i.e. not in a separate window (the BSPs use EPCMPROXY). It seems so anyway from my tests.

However, the timer is not reset when the event is raised using EPCMPROXY from a separate window. As mentioned earlier, some of our BSPs are displayed in a separate window that pops up on request (all of them though are executed BSP iViews). Does anyone know if it is possible to raise an event from an external/new window or if this is prohibited by the javascript and EPCF protocol? Is there any way around this? Might also be worth mentioning that we are running https and that both the portal and the WAS where the BSPs run are on the same domain.

Thanks for your time.

Cheers,

Dion

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dionisios,

EPCF events will not work when the BSP is open in a new seperate window .

There could be some workarounds depending on your requirement.

One of them could be to open the BSP with portal header/tray in a new window , receive the event in a portal application and update a session variable which will be available accross the portal session irrespective of internet explorer windows

is it helpful?

Regards,

Arul

Former Member
0 Kudos

Hi Arul,

Thanks for your response, it cleared up a few things. I have thought of the possibility of doing something similar to what you wrote though I'm a bit unsure at the moment as to how it would work. The way it works today is that there is a custom iview based on the custom par file which is included in the default framework (as part of the inner page). This iview is then "always available" to catch the event that is fired - well, except for the separate windows it seems...

The BSPs that open in a new window are opened based on a javascript function that is assigned as an action on one of the columns of the MSS team explorer. When the user clicks on a small icon displayed on the row for that column, a new window is opened with a PCD location that is configured in the backend HR R/3 system.

How would this application work? What I basically need is something that fires that event in the original window.

Thanks for your time and help. I tried to award points but the radio buttons are not visible for some reason...

Cheers,

Dion

Former Member
0 Kudos

Hi Dion,

In your case, MSS Configuration can be adjusted to open a portal page instead of an BSP iView and create portal application (par) assign it to the page. Now, BSP can be used as EPCF event producer and par application can be used as event listener. Hence MSS application can be configured to open this page in a new window - BSP raises an even which is captured by portal application - in turn - portal application can either store some data in the portal session and / or javascript can be executed to refresh the parent window to reflect the status of application in the new window to the parent window.

Hope this solves ur problem.

Regards,

Arul

Former Member
0 Kudos

Thanks Arul, I will try your suggestion.

Cheers,

Dion