EPCF Eventing Help

I am trying to perform eventing using a URL iView and am having the following issues.
The code for the iView resides on a different server to the portal, but I have relaxed the domain and confirmed that both domains are the same.
I have also imported the epcfproxy.js file onto the server where my url is located - this was to prevent errors I had that "EPCMPROXY is undefined"
I have placed the iView into a portal page as the sender iView and have the receiver BW iView on the same page. I have set the isolation method of the page to URL.
When I debug the code, I am unable to access the parent.EPCM (parent.EPCM is null or not an object)
<script src="epcfproxy.js"></script>
<script>
<!--
// relax domain
if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
//event from onclick below
function raiseEvent(value) {
var data = EPCMPROXY.getVersion();
// here the value returns as null, if I take out the
// try and catch statements, it returns parent.EPCM is
// null or not an object
alert(data)
similarly, my EPCMPROXY.raiseEvent() does not call the receiver.
Any direction would be greatly appreaciated. I am fairly inexperienced with the portal applications and web design.
Kerr White

I am trying to perform eventing using a URL iView and am having the following issues.
The code for the iView resides on a different server to the portal, but I have relaxed the domain and confirmed that both domains are the same.
I have also imported the epcfproxy.js file onto the server where my url is located - this was to prevent errors I had that "EPCMPROXY is undefined"
I have placed the iView into a portal page as the sender iView and have the receiver BW iView on the same page. I have set the isolation method of the page to URL.
When I debug the code, I am unable to access the parent.EPCM (parent.EPCM is null or not an object)
<script src="epcfproxy.js"></script>
<script>
<!--
// relax domain
if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
//event from onclick below
function raiseEvent(value) {
var data = EPCMPROXY.getVersion();
// here the value returns as null, if I take out the
// try and catch statements, it returns parent.EPCM is
// null or not an object
alert(data)
similarly, my EPCMPROXY.raiseEvent() does not call the receiver.
Any direction would be greatly appreaciated. I am fairly inexperienced with the portal applications and web design.
Kerr White

Similar Messages

  • MDM Log / EPCF Eventing in Result and Item Details Iview

    Hi,
    I have EP7 with SP15 and MDM 6.0, recently upgraded. Before upgrade we have an application which uses the MDM iviews and maps the fields of one table to other and displays in some other iview.
    The application was working fine before upgrade of MDM. But after upgrade, the mapping seems not working.
    My scenario is as : Using MDM Search iview, I search records from MDM repository, Main Table. This result is displayed in MDM Result iview. From this result iview, I select a record. From this selected record, a field is mapped to the other table. The mapped record, then, is displayed in MDM Details Iview.
    After MDM upgrade, whenever we select a record from the result of table 1,the mapped iview throws erros :
    Error occurred: Error performing search. com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter, com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter (see log for details)
    when serached log : Key is not found in table:<Table1>-KeyMappings it may have been deleted or renamed, please use editor to fix the problem##
    We have used EPCF eventing for MDM iviews.
    I have written some code to check the values passed from Result Iview and seen that the values are being passed correctly...Now think, i should also have a check in MDM how the values are recieved and mapped...
    Any idea how I can use MDM log service to do this? Or any idea how I can enable MDM log to monitor what comes in and what goes out?
    has anyone out there faced same issue ?
    Please let me know your views.
    Regards,
    Abhijeet

    Solved at my own. The MDM SP6 needs the subtable key field to be TEXT type.

  • Fire EPCF event with WD ABAP in EP

    In EP 7 I want to fire an EPCF event. I use the code below. A similar example from WD java works, but here I never receive the event. The Javascript part is right since it works together with an HTML and WD Java iView. Only the WD example is not working. Any hints?
    ABAP ("triggered by a button")
    DATA:
      L_API_COMPONENT TYPE REF TO IF_WD_COMPONENT,
      L_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
    L_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
    L_PORTAL_MANAGER = L_API_COMPONENT->GET_PORTAL_MANAGER( ).
    L_PORTAL_MANAGER->FIRE( PORTAL_EVENT_NAMESPACE = 'urn:xxDemo' PORTAL_EVENT_NAME = 'simpleevent' PORTAL_EVENT_PARAMETER = 'HelloFromABAP' ).
    JavaScript:
    EPCM.relaxDocumentDomain();
    EPCM.subscribeEvent('urn:xxDemo', 'simpleevent', handle_simpleevent_Event);

    Good hint, it was not the domain, but the protocol (http/https).
    One iView was on https while the other one was setup for http.
    However, now the question is: Can I setup EPCF somehow to work with mixed http/https IViews. In my HTML page I can use EPCMProxy, but I have no idea how to change this on a WD ABAP.
    Regards

  • How to use EPCF eventing in Webdynpro

    Hi All,
    I have made a Webdynpro application as an iview in portal. Now i need to accomplish client eventing between this iview and any other portal iview. I learned from this link
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    that, this can be done through EPCF.
    I can very well write use the EPCM objects in EP components with the help of Javascript tags.
    But, I learned from my Webdynpro friends and these links
    Re: Javascript in webdynpro application.
    Re: Javascript
    Re: how to make use of javascript functionality in WD application?
    that, Webdynpro is strictly NOT the place for Javascript.
    So, Where and How to use EPCF APIs in Webdynpro?
    Shortly, In an Webdynpro application, where and how can i insert the following line of code.
    WDPortalEventing.subscribe("urn:com.sap.tc.webdynpro.test.portal","TestEvent",wdThis.wdGetTestEventAction());
    Please help me in this regard..
    Vijay.K

    Hi,
    Check this,
    /message/205009#205009 [original link is broken]
    Write that subcribe in the doinit method and handle the event in the action handler
    Check also this
    webdyn iviews and portal eventing:WebDynpro iViews and Portal Eventing
    /message/554249#554249 [original link is broken]
    Communication between 2 IViews on 2 different Pages
    Regards,
    Vijayakhanna Raman
    Message was edited by: Vijayakhanna Raman

  • Opening dbs thru button events, help, i`m a newbie..

    i have the following fn for opening the db
    public static void main(String args[]) throws Exception
    new login(new javax.swing.JFrame(), true).show();
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    open();
    select();
    static void open() throws SQLException
    // ODBC data source name
    String dsn = "jdbc:odbc:dslogin";
    String user = "";
    String password = "";
    // Connect to the database
    con = DriverManager.getConnection(dsn, user, password);
    // Shut off autocommit
    con.setAutoCommit(false);
    static void select() throws SQLException
    Statement stmt; // SQL statement object
    String query; // SQL select string
    ResultSet rs; // SQL query results
    boolean more; // "more rows found" switch
    query = "select user,password from dblogin";
    stmt = con.createStatement();
    rs = stmt.executeQuery(query);
    // Check to see if any rows were read
    more = rs.next();
    if (!more) {
    System.out.println("No rows found.");
    return;
    // Loop through the rows retrieved from the query
    while (more)
    // System.out.println("kkkk");
    System.out.println("umm" + rs.getString("user"));
    System.out.println("ummmm" + rs.getString("password"));
    more = rs.next();
    rs.close();
    stmt.close();
    now my problem is this..while the above open and select fns work fine in void main, i`m trying to open the db upon clicking a button..heres what i tried to do :
    cmdsubmit.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    cmdsubmitActionPerformed(evt);
    private void cmdsubmitActionPerformed(java.awt.event.ActionEvent evt) {
    open();
    seelct();
    when i try it i get the error message exceptions must be caught or throw or sumthing like that and i`m new to java so i`ve no idea how to go about doing it..help please..

    On JDBC:
    You only need to register a driver with the DriverManager once, and this is done (by JDBC conform drivers) when the driverclass is loaded. You may want to do this in a static initializer:
    import java.sql.*;
    class MyClass{
        static {
            try {
                // load driver class, which automatically registers itself
                Class.forName("sun.jdbc....");
            } catch(Exception ex) { /* handle it, throw error */ }
        // later
        Connection con = DriverManager.getConnection(...);
    }Even better is NOT to hard-code the driver at all. Use
    java -Djdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver;oracle.jdbc.OracleDriver MyClassinstead.
    Fritz

  • Event help please!!!

    Hello
    In a game I am currently making I have had some problems with The keyPressed() and keyReleased() methods. If i press spacebar to fire (its in keyReleased()) while i'm moving, my ship will stop (since the moving is controlled with keyPressed()). Also, on my computer I can move diagonally (ie hold two keys at once) but on my friends computer he can't. Third, my high score screen glitches if SHIFT is held down. So here are my questions:
    Is there any way to use keyPressed() and keyReleased() at the same time, or do they always conflict?
    Why is my friend's computer not registering two keyPressed()s at the same time, and is there any way i can fix this?
    Is there any way to check if a key pressed/released/hit is a key that gives a valid ASCII character?
    Any help is truly appreciated!!!

    You need another thread I am betting. You should not do any work in the event thread. just get the data out of the event thread but your work should all be done in another thread, or else just what you are talking about will happen. when the event thread is interrupted, your app will stop.

  • Button Event Help

    Hi, I have created a Frame that the user can draw in. It is a separate class that I call in my main program from a different file. I have a button on my frame that I want to run a method to save the graphical contents of the frame as a type Image. This works fine, and I have created the image. Now I need to return the image to my main program somehow. I want it only to return to my main when the button is pressed. The actionPerformed cannot contain a return statement, and I cannot call a getImage (from the frame) in my main anyway, because I want it to be initiated by the button push, which is located in the Frame file and not in the main. Can anyone help me? I will post the code. Ignore the Picture and InterruptedException in my actionPerformed class, they just convert the image in other classes, but they're not important. An explanation to return the image would be perfect.
    Here is my main:
    class LoadPictures
        public static void main (String [] args) throws IOException, InterruptedException, AWTException
            PaintArea pa = new PaintArea ();
            pa.loadArea (pa);
    Picture pic= pa.getPic() //<---false method. This is what I want to happen when you click the button in the frame.
        }}Here is my frame, entitled PaintArea:
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    class PaintArea extends Frame
        static int x, y;
        static Graphics g;
        PaintArea ()
            addWindowListener (new WindowAdapter ()
                public void windowClosing (WindowEvent e)
                    hide ();
            setSize (400, 400);
            setVisible (true);
            g = getGraphics ();
        public void loadArea (PaintArea pa)
            Button button = new Button ("Save");
            // pa.add (button);
            button.setSize (2, 2);
            pa.show ();
            final PaintArea pa2 = pa;
            button.addActionListener (new ActionListener ()
                public void actionPerformed (ActionEvent ae)
                    try
                        Image image = pa2.saveScreen (pa2);
                        //Picture pic = new Picture (pa2);
                    catch (AWTException e)
                        System.err.println (e);
                        System.exit (1);
                    // catch (InterruptedException ie)
                    //     System.err.println (ie);
                    //     System.exit (1);
            pa.addMouseListener (new MouseAdapter ()
                public void mousePressed (MouseEvent me)
                    x = me.getX ();
                    y = me.getY ();
                    g.fillOval (x - 5, y - 5, 10, 10);
            pa.addMouseMotionListener (new MouseMotionAdapter ()
                public void mouseDragged (MouseEvent me)
                    x = me.getX ();
                    y = me.getY ();
                    g.fillOval (x - 5, y - 5, 10, 10);
        public Image saveScreen (PaintArea pa) throws AWTException
            Image image = createImage (new Robot ().createScreenCapture (pa.getBounds ()).getSource ());
            return image;
    }Thank you very much, everyone!!

    When you open the frame, use wait() to suspend action in the main program. When the button is pressed, call notify() on the same object. Then the focus is back in the main program's code.

  • Event help

    Hi,
    Can anyone pass me a simple example showing how to use Events(Send,Receive & Raise) in workflow and also pass me any easy to understand document please.
    I have already read document comes with workflow but it has not help me.
    I will appreciate if someone can pass me a working example my email is [email protected]
    Regards,
    Saif

    Have a look at the white paper "Getting Started with the Oracle Workflow Business Event System and Advanced
    Queuing":
    http://otn.oracle.com/products/integration/workflow/workflow_wp_bes.pdf
    You might also consider taking the Oracle Workflow training courses available through Oracle University. There are both
    instructor-led classes and self-paced classes, the latter through OLN.
    Regards,
    Clara
    Hi,
    Can anyone pass me a simple example showing how to use Events(Send,Receive & Raise) in workflow and also pass me any easy to understand document please.
    I have already read document comes with workflow but it has not help me.
    I will appreciate if someone can pass me a working example my email is [email protected]
    Regards,
    Saif

  • Ical missing events  HELP!!

    i post new events on ical and they disappear when i next log on YET they apppear on my other computer which subscribes to this computer's diary
    there also appears to be sync problems
    anyone recognise this issue? have a solution?
    seems to have happened since last system update
    ALSO i have recently started using my ipod video for my diary rather than old clickcwheel not sure whether this is relevant?
    HELP!!
    andy

    I've had similar problems since the last update .. I've had to dos disappear but they are there ... I solved that.
    I also had events created/copied etc. but not show up until I moved to a different calendar display and return to the display (e.g. week) that I created them on.

  • Data transfer from EPCF events

    I have a regular(non-web dynpro) iView which is firing event & sending data using client data bag. It uses EPCF to send the event.
    EPCM.raiseEvent(bla bla bla);
    EPCM.storeClientData( XYX);
    I have 2 more listener iViews on the same page. One of the iViews is a regular iView which uses JavaScript & subscribe to the event. Then gets the data using 
    EPCM.loadClientData("XYZ","ABC");
    Everything is working fine on this iView. I get the event as well as parameters from sender iView.
    I have another iView which a web dynpro iView. This web dynpro iView also subscribes to the same event & tries to read the data. Inside my web dynpro iView, I am able to get the event but the IWDCustomEvent event object does not contain the data/parameters transferred by the Sender iView. How can I read the data stored in the client data bag inside my web dynpro iView? If it's not possible then is there a workaround which DOES NOT REQUIRE CHANGING THE SENDER iView?

    When u raise event from the sender Use the following syntax:
    EPCM.raiseEvent(namespace,eventname,dataObject);
    Here this dataObject is the parameter u want to pass to the webdynpro.
    From webdynpro side u can access the parameter in the eventhandler which u create while subscribing the event.
    This dataObject will be automatically passed to the eventhandler... so u can access that.
    Try it out and please let me know the status.
    Thanks & Regards,
    Sirisha.R.S.

  • Clientside eventing help

    Hello all,
    Where do i get good examples/tutorials in Client side eventing. I tried the one available in PDK but couldnot recreate the example. What is the jar file to find the package "com.sapportals.htmlb.enum.EventTrigger" and where do I find it.
    Thanks,
    Maya.

    Hi Maya,
       The EventTrigger class is available in htmlb.jar
    You can search for htmlb.jar in your portal installation
    It has all the classes related to htmlb including the eventing classes.
    PDK is a good resource for examples on anything and everything. You will have to do a bit of search. If you are looking for something specific then you can post the same.
    PS: Please consider awarding points for helpful answers just by pressing the yellow star button on the reply in question and choosing the corresponding amount of points. Thanks in advance!

  • IFrame eventing help

    Valery,
    Thanks for your help with IFrame. This message is in continution to the message Web Dynpro Java
    I opened seperate thread as the clarification required is different.
    Now the clock is running okay. However, I need to capture the time that is displayed when a user clicks button. Any code in WD, is getting server time which most of the time varies from the client side desktop.
    Is there any way I can code where I get the latest time from the client side desktop and pass this information back to the R/3.
    I know the portal eventing to get the time from IFrame is limited. It does not really matter if I read the time from IFrame or not. I think if I can get the client side time within the action of button click is okay.
    If you need more details, please do let me know.
    Thanks and Regards,
    Raju

    Raju,
    There is no way to pass any parameters to WD application except for portal eventing and start-up URL parameters.
    So it is impossible "to capture the time that is displayed when a user clicks button"
    But all you have to know is time shift in hours at application startup time. For this, create redirect HTML page that will get user time via JavaScript, append time as URL parameter to WD application URL and call
    window.navigate(<wd-app-url-with-param>);
    WD application may get this parameter and calculate time shift between user and server time. Calculate up to hours precision (time zones has only offset by hours). Store this shift value somewhere in component controller attributes.
    Now when you receive IWDButton.onAction event just add / remove shift from server time and pass this value to backend.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Date/Time events help

    I'm trying to make vpet like game on flash for class, but I need to work with time and dates for events like feeding, sleep, etc.
    At least for now I need help figuring out how to make the game check like every 5 minutes to bring up an alarm about the pet needing food.
    Sadly all i have is this:
    stop();
    const millisecondsPerMinute:int = 1000 * 60;
    const millisecondsPerHour:int = 1000 * 60 * 60;
    const millisecondsPerDay:int = 1000 * 60 * 60 * 24;
    var date1:Date = new Date();
    trace(date1);
    I get the actual date, but don't know exactly what to do to make it check every 5 minuts or so. Don't know if it's with "if" or "do/while".

    OK, so I looked shareobject. Once it starts to play, it checks for data and since there is none it creates one.Now where I am stuck is how to make it store data in it.
    For example I found this online:
    var so:SharedObject = SharedObject.getLocal("test");
    if (so.size == 0)
      trace("created...");
      so.data.now = new Date().time;
    trace(so.data.now);
    trace("SharedObject is " + so.size + " bytes");
    so.flush();
    The game starts, the pet hatches after some time. How do I use or modifiy this to make the shareobject go straight into the newborn instead of the egg? Do I have to do something with the "so.data.now"?

  • JComboBox Event help

    sir
    i have three JComboBoxes .
    firstcombobox will be loaded on start up .
    basing on the First combobox item selected the second combo box is filled up.
    basing on the second the third one will be filled up.
    based on the third combobox the text feild beside it should be locked or unlocked
    i have the problem with the comboboxes events in which events i have to write all the three please help me

    in the following link there is a code example it will help u and u have to make combobox model to all stuff
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=688505

  • Upgraded to Iphoto 9.5 now all my photos are in one event - Help please

    I upgraded to iphoto 9.5.1 with the Mavericks update. Now all my photos (8,217) are in one event. I spent hours breaking them down into different events and now it's back to one. I tried repairing and rebuilding the database per other forum discussions but nothing changes.
    I'd love some advice on how to re-organize the photos without having the manually recreate all the events.
    Thank you!

    Thank you. All my event headings are gone but at least it's separated by date.
    I followed the instruction from some other discussion threads, held down option + command and tried the options to fix the library that way - it didn't make a difference.
    Thank you for your help. Guess I better but everything in albums since those are still ok.

Maybe you are looking for

  • Creating a new class

    Hi all, I am new to Java programming and trying to figure out some issues with a class This is the problem I am trying to solve 1. I am trying to parse a xml and represent it in a JTable 2. I have parsed the xml and stored it in vector of vector form

  • Quality inspection option in delivery tab in purchase order.

    Dear QM gurus , We have a requirement in which the user is making an Stock transfer PO and he wants the default selection of quality inspection in delivery tab of PO . Kindly note that we have already activated the inspection types(including 01 with

  • Variant Pricing Steps

    Hello, Variant pricing configuring steps Can anyone explain the steps in details for configuring this with explanation of class type. Full points will be awarded for good answers. Thanks, Anil Rajpal

  • CF8.01 ImagePaste 500 error

    I'm tearing my hair out now, been trying to fix this problem for over a week. - Pages using the imagepaste function are throwing a 500 error. - this behaviour just started apparently out of the blue for no reason, no updates were performed, function

  • Problem with ImageProducer/PixelGrabber

    I'm having a problem using PixelGrabber in my applet, that seems to be related to caching. I load an image through plain old Applet.getImage(), track that it's loaded via MediaTracker, then use PixelGrabber to grab the image into an integer array, al