Urgent - What is EPCM.raiseEvent()

HI
Can anyone clear me abt <b>EPCM.raiseEvent("namespace","eventName","dataobject","sourceobid");</b>
I could not understand what this method doing and what those parameters.
Thanks
Shashank

Hi Shashank ,
Adding on to what others have altready said,
The EPCF service defines the Enterprise Portal Client Manager (EPCM) JavaScript object. With the methods of the EPCM object you can access the EPCF service functions as follows:
EPCM.[API_method_name]( [Params]* );
iViews can access the EPCM object from every Portal page or IFrame. Every iView of the Portal runtime contains the EPCM object. As a result every embedded or isolated iView can use the EPCF service with the method:<b>
EPCM.subscribeEvent(, eventName, eventHandler );</b>
The method<b>
EPCM.raiseEvent( nameSpace, eventName, dataObject [, sourceId])</b>
raises the event defined by the nameSpace and eventName arguments. The EPCF service calls every event handler registered for this event and passes the event object to the event handler. The event object is created by the EPCF service whenever an event is raised. It combines dataObject, eventName and sourceId (which may be null) into a single argument for the event handler.
The namespace is defined by the urn which is used to identify a resource/object by name on the internet,regardless of its location.
The name defines the name of the event .
For example:
in a page,i have two iviews between which i need to interact/pass data using javascript.
In iView1 we  raise the event by calling a javascript using a button like:
<SCRIPT language="JavaScript"  type="text/javascript">
function fun1( )
  var lnDotPos = document.domain.indexOf( "." );
  if (lnDotPos >= 0) document.domain = document.domain.substr( lnDotPos + 1 );
EPCM.raiseEvent("urn:com.sapportals.portal.sid","onSelect",window, "but1");
</SCRIPT>
<htmlb:button      id            = "but1"
                    text          = "Press Me"
                    onClientClick = "fun1()"
                    onClick       = "MyEvent" />
In iview2 we have to subscribe to this event on every page load/refresh using attribute onLoad of page as onLoad="fun1()"
function fun1( )
EPCM.subscribeEvent( "urn:com.sapportals.portal.sid", "onSelect", window , "handleEvent1");
function handleEvent1( )
alert("hello");
Similarly,say you want to subscribe to the portal logoff event ,which is raised when a user clicks on logoff link in portal.
This event is raised in the reserved namespace of portal and can be subscribed as
function fun1( )
EPCM.subscribeEvent( "urn:com.sapportals.portal:user", "logoff", window , "handleEvent1");
here the event logoff is the event raised in the portal namespace(urn:com.sapportals.portal:user) and has been subscribed to and calles the method handleEvent1.
Here fun1() is called on page load and after subscribing can call another javascript function handleEvent1().
Hope this helps a bit.(This is code used in my BSP application using EPCMPROXY(here shown as EPCM),modified to make you understand)
Regards,
Siddhartha

Similar Messages

  • Javascript Error when calling EPCM.raiseEvent

    Hi all!
       I'm having a Javascript error when calling EPCM.raiseEvent function. The error is :
       'The object does not accept the method or property'
      Maybe the traslation is not perfect (I'm using spanish for my browser). Here is my call:
       EPCM.raiseEvent('myPar','myEvent','myParam');
      What can be wrong?
      Thanks in advance, and sorry for my terrible english.

    Hi!
       This error is very strange... I accidentally changed the event name at consumer, but not at producer.... and the error didn't appear... Obviuslly it did'nt work, but it's so strange that if the event is not cought, there is no error (but nothing happens)
       I also noticed that doesn't matter which event I raise (I have two of them), the error is thrown at the same line, and they have totally different caller and receiver functions....
    Thanks In advance.
    Message was edited by:
            Eneko Rodriguez

  • Urgent: What ports should be required in DMZ zone?

    Hi,
    I am thinking the ports question might need to posted here. Please have a look on my posting in the following link:
    Urgent: What ports should be required in DMZ zone?
    Thanks and Regards,

    Thanks, Ravi.
    The environment I am working now won't allow me to guess and test. We are on the project and to submit a change request would take very long. So I need submit all neccessary ports correctly at one time.
    Could anybody give me any suggestion? I read the TCP/IP ports for SAP documentation. But I don't think it can answer my questions above.

  • Urgent what is the programs to delete work item history and work item

    hi gurus this is very urgent ,
    what is the programs to delete work item history and work item ?

    Hi Deppak.
    There is a program ,to delete an workitem and history
    RSWWHIDE---Program to delete the history.
    RSWWWIDE--- Program to delete an workitem.

  • My i phone was lost and i cloud was show many of my contact numbers, i need all my contact numbers urgently what can i do??

    Hi, my i phone moblie was lost and i need my contact numbers urgently, i was entered my i cloud then it shows many of my contact numbers not all.
    what can i do to gain all my contact numbers??

    Export your contacts in vCard format:
    http://support.apple.com/kb/PH3606

  • Urgent: What is the best uptodate approach to generate Webpage from Forms

    Hello,
    We are in 10g, with Portal + SSO.
    We have a Forms application that need to generate a webpage (with SQL queries).
    In 8i, I used JSP for generating this webpage, it worked well in 8i.
    But in 10g, I experience pb (and I cannot get any good solution) ....
    To quickly summarise, it seems that the webserver doesn't interpret
    the JSP code (no connexion, and even not possible to display an
    "out.println" message.... HTML code seems ok)
    So, I need to go forward, and I suppose that I need to convert my code into another technology.
    I had the suggestion to use JSTL, but my administrator thinks it's an old tools, and I should use something newer and better !!!
    Do you have any suggestion and advices ....
    Thanks a lot,
    Olivier

    I don't know about "new technology" but the XSQL servlet is great for this sort of thing. It's simple to program, setup and can produce amazing results(I've never reached the limits). You can couple it to XSLT to produce plain HTML, CSV or Flat Files what ever you like. Steve Muench's book got me started "Building Oracle XML Applications"
    Reading your post : it depends on whether you want static pages or dynamic. XSQL works well with a simple web.show_document call creating dynamic pages.
    HTH
    Steve

  • URGENT :What is webdynpro configuration identifier?

    Dear Experts,
    Can you please let me know what is webdynpro configuration identifier?
    I am new to the webdynpro technology and am not sure .
    I am involved in an eRecruiting implementation wherein we have to modify the start page to a cutom one which is in Webdynpro ABAP.
    To define a custom start page, i have to specify a configuration id ?
    Documentation says : "Enter the Web Dynpro configuration identifier (component configuration ID of the start page component) that defines the start page variant."
    Please refer the post i had logged in another areafor more details:
    e-Recruiting :Webdynpro for ABAP start page modification
    Thanks in advance,
    Sowmya

    Hi Sowmya
    There is a concept called Application Configuration in Web Dynpro ABAP
    http://help.sap.com/saphelp_nw04s/helpdata/EN/83/61a042f036c46ae10000000a155106/content.htm
    You have to create a configuration for the application or pass the existing configuration to the application.
    right click the application and choose create/change configuration, which will take you to configuration editor.
    you have to pass the created or existing configuration ID to the application, because the application internally uses the configuration
    you have to the pass the parameter WDCONFIGURATIONID=<the configuration id name>
    i hope it is clear
    Abhi

  • ***URGENT*** What Server side objec should we develop and deplot to OAS?

    Helo,
    I use Jdev3.1 as my Java IDE.
    I have to develop a server side java objects that will be deploy to OAS 4.0.8. My server side java objects will wait for client calls then perform certain business logics depending on each call? Please give me some advises about what type of java object should I develop.
    From JDev help doc,I read about Application Module, EJB, Business Component, JSP..I am new to JDev and Java so I don't really undestand about the relationship between these copmponent, and what should be used since they seem to do the same thing. Please help, I have to submit a proposal next week. Thank you very much in advance.
    Vivian

    Yes, I'm parsing some XML data files. The full stack trace follows.
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)

  • URGENT: What are these MS Security articles for?

    Hello,
    We have been given a list of Security Updates to download and install on Server 2008 R2, but some of these are taking us to webpages where it appears to only be an advisory to a security vulnerability and there is no security update to download.
    Examples include: http://support.microsoft.com/kb/2543893
    http://support.microsoft.com/kb/2500212
    http://support.microsoft.com/kb/2664258
    We cannot find the security update download link when using the KB number neither, is anyone able to explain what we are supposed to do with these?
    Regards and Thanks.

    As an example I just picked your first link. follow the link to the vulnerability page. In the security vulnerability page, you go through the list to see if your version of SQL server is affected
    http://technet.microsoft.com/en-us/security/bulletin/ms11-049
    If your product is in the list, simply click on the link for that product and it will take you to the download page. Do this for each of the articles that you got given to you.

  • Urgent---what is wrong

    <b>Data: begin of itab occurs 0,
          coursenum like zcourses-coursenum,
          courseType like zcourses-coursetype,
          location like zofferings-location,
          instructor like zofferings-instructor,
          duration like zcourses-duration,
          end of itab.</b>
    <i>data: l_fieldcat TYPE SLIS_T_FIELDCAT_ALV.</i>
    data: repid like sy-repid.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME     = repid
                I_INTERNAL_TABNAME = 'itab'
                I_INCLNAME         = repid
           CHANGING
                CT_FIELDCAT        = L_FIELDCAT
           EXCEPTIONS
                OTHERS             = 3.
    I could not get the field catalog from this internal table.
    What is the problem?
    Thanks.

    Hi,
    Try this code:
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name               = sy-repid
        i_internal_tabname           = 'ITAB'
    *   I_STRUCTURE_NAME             =
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
        i_inclname                   = sy-repid
    *   I_BYPASSING_BUFFER           =
    *   I_BUFFER_ACTIVE              =
        CHANGING
          ct_fieldcat                  = L_FIELDCAT
       EXCEPTIONS
        inconsistent_interface       = 1
        program_error                = 2
        OTHERS                       = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • URGENT -What AIX version is compatible with OFA release 11i version 6.4?

    Hi I have to get my boss the answer to this question : What AIX version is compatible with OFA release 11i version 6.4? By the "end of the day" approximately 1 hour after the post time of this thread. This question is regarding an upgrade we are performing.
    Also if the version of AIX is provided, if someone knows the version of UDB that is compatible with that version of AIX, I would greatly appreciate it if you could post it as well. Thank you very much. Ive searched on google and clusty with no helpful results at all.

    Hello,
    On My Oracle Support, you can find notes about patchs for OFA 6.4 on AIX 5L.
    So I assume this configuration may be supported.
    Hope it can help.
    Best regards,
    Jean-Valentin

  • Urgent: what are "virtual host" and "external alias" used for  on SICF?

    I wonder what is their functionality?
    Please help. Points guaranteed. Thanks!

    Payal:
    Your help is great!
    The link says:
    <b>1.2.5.6
    acmegate.acme.com
    <b>acmenet.acme.com</b>
    If more than one host name is assigned to one IP address, one host name is the default name, and the others are aliases. In the table, the default name is in bold type.</b>
    We want:
    1) for all incoming requests from the internet to the ITS use:
       acmegate.acme.com(i.e. the default name. The user will type http://acmegate.acme.com:####/xxxxxx);
    2) for all responses from the ITS to the internet use:
      acmenet.acme.com(i.e. the alias. The user will get
      http://acmenet.acme.com:####/xxxxx).
    If you could help with this, I really appreciate with 10 points.
    Best regards.

  • Urgent: what's the table name to check PO history?

    Pretty new at MM, please let us know asap and we will give you reward points!
    Thanks

    Hi,
    You can check table EKBE for PO history.
    Also you can use FM ME_READ_HISTORY to read history as well.
    Regards,
    Ferry Lianto

  • URGENT: What table stores data for logged changes in PA and PD??

    Thanks!!!

    Hi Scott,
    Thanks for the reply.  This transaction leads to the report that allows you to display logged changes in PA, but I need the table name where these changes are actually stored for PA and the other table where change documents are stored in PD.
    Regards,
    -Joe

  • Urgent::::What is OLAP Variable

    Hi Experts,
    I want write my own OLAP Variable in data selection in info package.....
    So where is the editor where i can write my own logic for a particular OLAP Variable????
    Pls share some knowledge of OLAP Variable in BW.
    Some good document on OLAp variable....
    Thanx in Advance????
    Naween

    Hi Naween,
    Three things need to be done: -
    1. In the Query Designer, create a New Variable based on the InfoObject that has the same data type as the value in your infopackage field selection. For example, create a variable for InfoObject 0CALDAY if your selection field is a date. This can be done in any query that has the required InfoObject. The processing of this variable must be 'CUSTOMER EXIT'.
    2. In CMOD, create code for this variable. Sample code for the derivation of first and last dates for year based on 0CALDAY is affixed below: -
    DATA: f_date LIKE sy-datum,
          f_date2 LIKE sy-datum,
    f_date3 LIKE sy-datum.
    WHEN 'Z1ST_LST'.
    returns first and last day in year
        CLEAR f_date.
        CLEAR f_date2.
        CLEAR f_date3.
        f_date = sy-datum.
        CLEAR l_s_range.
        concatenate f_date+0(4) '0101' into f_date2.
        concatenate f_date+0(4) '1231' into f_date3.
        l_s_range-low  = f_date2.
        l_s_range-high = f_date3.
        l_s_range-opt  = 'BT'.
        l_s_range-sign = 'I'.
    APPEND l_s_range TO e_t_range.
    3. Select the InfoPackage 'Data Selection' tab, then 'OLAP Variable' and specify the newly created variable. The values are not prepopulated but only populated at runtime. To review the values that will be populated, select the 'Details for Type' button and the 'Check' (glasses) button in the subsequent screen. If the values are not populated with the 'Check' method, you may have to log off and on to the system.
    Regards,
    Eugene

Maybe you are looking for

  • Address Book contacts not showing up in Mail

    I'm unable to access my address book contacts from Mail.  The wheel on the right side of the recipient box spins but never finds the contact or group I'm searching.  Can anyone help?

  • Install new Test Qestion Items in TestAuthor (Authoring Environment)?

    Hi everyone! Does enybody know, is it possible to add new (external) test question types to the existing ones in test author (Authoring Environment). I would like to add some other question types eg.: -define order of possibilities; -choose the most

  • ActiveX Browser Control - PostData?

    Hi, I'm struggling with the activex browser control. I want to be able to post data through it but I can't seem to get the PostData variable filled. E.g. sprite(1).Navigate(URL, "", "", "key=value", "Content-Type: application/x-www-form-urlencoded")

  • Portal - Change name on a HTML file

    Hello, I have been asked to change the name of a HTML file displayed on the portal.  I went to 'content admin' - 'km content' - 'documents' right clicked on the content menu for the file and selected rename.  I changed the name, but it did not update

  • Can Someone Help With Home Sharing With ATV3?

    I can't get home sharing to work with my new ATV3.  When I go to the Computers menu in my ATV3, nothing appears but the message telling me that all devices using the same Apple ID will be automatically located.  I have followed all of the configurati