Skip to Content
author's profile photo
Former Member

Javascript + EPCM

Morning,

How cud i use a function like window.open() in javascript to fire EPCM.doNavigate(url)?

I want to implement something like this:

when an iview loads on a page it shud auto open another small iview as a pop window.

I can do this with some url like http://www.google.com but want to open an iview with EPCM functionality.

Have any Ideas?

Thanks & Regards,

Peter.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 17, 2005 at 10:24 AM

    Hi Peter,

    see http://help.sap.com/saphelp_nw04/helpdata/en/26/71c74030308431e10000000a1550b0/frameset.htm for the parameter list of doNavigate (it's the parameter "mode").

    Hope it helps

    Detlev

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Peter,

      I am relatively new to this SDN thing, and relatively new to the EP 6.0 as well. But I think i might have a solution to your problem.

      Inside an iView, the window.onLoad & window.onUnload events will not work, as the Portal framework doesnt allow it to. Instead the portal has given EPCM events which handle the above two events.

      Your code :

      <body window.onLoad = "javascript:myFunc()">

      <script>

      function myFunc () {

      alert("Something");

      //Your code logic

      }

      </script>

      My code that might work even for you :

      EPCM.subscribeEvent("urn:com.sapportals.portal:browser", "load", myFunc);

      <script>

      function myFunc () {

      alert("Something");

      //Your code logic

      }

      </script>

      Similarly, the window.onUnload event in standard javascript hs to be replaced with

      EPCM.subscribeEvent("urn:com.sapportals.portal:browser", "unload", Your_Function_name);

      Hope this was useful...

      Thanks & Regards,

      Navneet.

  • author's profile photo
    Former Member
    Sep 16, 2005 at 05:17 PM

    Don't know whether this one helps you or not.

    href='javascript:EPCM.doNavigate(+page to navigate +)'

    Add comment
    10|10000 characters needed characters exceeded