Client Eventing

Hi all,
I have developed a  Portal Application using client side eventing(IEpcfToolbox)
I have two iviews in the same portal page. The first iview pass a parameter to the second one.
If the receiver iview is placed at the top of the page it works fine, else doesnt work . 
Any idea ?

And how you're inserting the sending script? With .getWrappedScript() or with getScript()?.
You'll understand it if you look at the html source code that is generated for the sender iview. issuing an EPCF event is done using a javascript object method named EPCM.raiseEvent(..). And this string is generated by the toolbox api. If you take the wrapped script, however, the generated string is surrounded by a <script> tag. If you put that (sender-)content directly into the page, it will be executed at page load. If your receiver iView is placed at the bottom part of the page, the event will be sent before the receiver has registered to receive the event in this case.
So using the wrapped script for the receiver iView is quite correct as the receiver should register itself for events ASAP. But for the sender iView, the getScript() method should be used, using it for a button onClientClick event, for instance.
<code>
Button myButton = new Button(..);
myButton.setOnClientClick(sender.getScript());
</code>
Now when the client clicks that thing the event will be fired.
Regards,
Armin

Similar Messages

  • Client Eventing Problem with URL Iview

    Hi,
    I am new to EP and have a basic client eventing question. We are trying to integrate a URL Iview from a partner product with a standard Iview downloaded from Iviewstudio. This standard Iview is capable of handling client events from other Iviews in the standard package. We want to re-use this Iview with the same event (same functionality) to be able to handle events from the partner URL Iview.
    The partner Iview and our portal are on different servers.
    We are using the following Javascript but it doesnt seem to raise the event.
    EPCM.storeClientData('urn:com.sap.bor:BUS0010','objid',LocId));
    EPCM.storeClientData('urn:com.sap.bor:BUS0010','AllKeys','objid');
    EPCM.raiseEvent('urn:com.sap.bor:BUS0010','select','','/irj/servlet/prt/portal/prtroot/...'
    We were able to debug and find that the data was being stored in the Data Bag. However the event is not being raised at all. It seems that it just gets stuck somewhere in the Raise event. We even put a javascript alert after the raise event but it doesnt seem to reach there at all.
    Could you give me a few pointers as to what the problem might be.
    Thanks in advance.
    Message was edited by: Mayank Bhatnagar

    Hi,
    let's have a look at two quotes of the PDK documentation.
    "Using the EPCF from your JavaScript, you can send messages to JavaScript code embedded in other iViews."
    "Isolated iViews are iViews that are not inlined into a portal page, but referenced using an IFRAME. To make the EPCF available in such iViews, the EPCF JavaScript as well as the EPCF applet are included into each generated frame."
    From my point of view, this only can work automatically with content provided by the portal.
    Therefore, this can't work with isolated URL iViews  generated with the wizards. Imagine a google iView, running in an iFrame. Google is called by the portal, but it's simply standard google HTML output - displayed in the portal.
    To provide the capability of the EPCF, the epcf javascript file has to be included in the "partner URL iView"'s source. I tried this and it worked. However, this is not a highly sophisticated solution
    If the partner iView's server is running in a different domain, there are further issues to be considered (keyword: java script origin policy)
    If anybody has corrections or can provide a good solution, don't hesitate.

  • Af:query - which client event is raised when selecting a saved search

    Hi Everyone,
    Is there a client event raised when selecting a different saved search in the af:query panel?
    I thought it would be propertyChange but that doesn't seem to work.
    Using JDev / ADF 11.1.2.1.0

    I can think of one way... Like Frank said, you could try hooking up a query operation listener in a backing bean and use QueryOperationEvent to get what you want.
    Then you could use the ExtendedRenderKitService to execute/inject javascript on the page.
    Would that work for you?Hi, thanks for sharing that.
    And I do appreciate that QueryOperationEvent would do the job in most cases, but there might be some cases where I would like to avoid a trip to the server if possible.
    Before considering workarounds I was trying to clarify the expected behaviour (i.e. +which of the client events if any, is intended to be raised when you switch a saved search?+)
    e.g. af:query raises the client event called 'query' (while on a server side managed bean you can listen for QueryEvent as mentioned earlier in the thread).
    [To quickly see the list of client events, you can add an af:clientListener under af:query and look at the available options]
    This 11.1.2 doc doesn't mention client events at all: http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17491/tagdoc/af_query.html
    And the ADF client side architecture also doesn't list the specific events:
    http://docs.oracle.com/cd/E29049_01/web.1112/e16181/af_arch.htm#CBHJEJJG

  • BSP Development and Client-Eventing

    I am working on a java stack portal, <b>EP 6.0 SP11</b>.  (It does not have the ABAP stack.)
    I want to develop my portal content using BSP's.  I have a <b>BW</b> installation which is version <b>3.1</b>, running on <b>WebAS 6.20</b>, and an <b>R/3</b> installation version <b>4.7</b>, running on <b>WebAS 6.20</b>. 
    I can develop BSP's in either of these systems.  Currently, I am writing them in the BW system, and displaying them in the portal, however I cannot find an example of how to <b>enable client-side eventing in a BSP running in BW on WebAS 6.20, so my BSP can talk to other iViews on a page</b>.  Can someone please explain how I can accomplish this? 
    Thank you,
    Kathryn
    p.s. -- I have read many webforum postings on client-eventing and none of them have directly answered the question I have posed, so please provide more explanation than simply a link to another forum posting, if at all possible.  Thank you!

    Portal Client Eventing is possible in BSP.  The following is small except from the upcomming Advanced BSP programming book from SAP-Press:
    http://www.sap-press.com/product.cfm?account=&product=H1903
    Portal Eventing
    The first element is the <bsp:portalEvent>. This element allows your application to subscribe to a portal event via the Enterprise Portal Client Framework, or EPCF.
    These portal events can then be trapped and responded to by BSP server-side event handlers. The HTMLB event manager will return details about the Portal event. The key here is to look for any event name called PortalEvent.
    DATA: event TYPE REF TO if_htmlb_data.
    event = cl_htmlb_manager=>get_event_ex(
    runtime->server->request ).
    IF event IS BOUND.
    IF event->event_name EQ 'portalEvent'.
    event_dataobject = event->event_server_name.
    event_sourceid = event->event_defined.
    SPLIT event->event_id AT ':'
    INTO event_namespace event_name.
    ENDIF.
    ENDIF.
    SAP does not supply a BSP extension element for raising a portal event since this would not make sense. All you really need is the JavaScript function that exposes
    this functionality from the portal. All the necessary JavaScript functions are rendered out by the method CL_HTTP_EXT_BSP_HTMLB->EVNETS_JS and included
    in your application automatically.
    This example code demonstrates the possibility of raising a portal event from BSP through the press of a <htmlb:button>. It also shows how to pass data from a
    <htmlb:inputField> into the event.
    <htmlb:inputField id = "bookTitle"
    value = "BSP for Fun and Profit" />
    <htmlb:button id = "fireBuyBook"
    text = "Buy Book"
    onClientClick = "portalFireEvent('myBooksEve
    nts','fireBuy',document.getElementById('bookTitle').value);" />

  • EVENT 1006, DNS Client Events

    I have been getting these DNS client events And my internet connection has been limited and disconnected over and over again. My desktop (this event) is connected to my notebook computer that is connected to a wireless connection (Apt Managed) 

    Hi,
    This issue can occur by incorrect DNS settings. I suggest you perform the following steps to troubleshoot the issue.
    1. Click "Start", input "NCPA.CPL" (without quotation marks) and press Enter.
    2. Right click on the connection that you use for the local connection, and then click "Properties".
    3. Click to select "Internet Protocol Version 4 (TCP/IPv4)", and then click "Properties".
    4. In the Internet Protocol window, let's change the "Preferred DNS server" to 208.67.222.222
    5. Click 'OK' twice to complete the modification.
    If the issue persists, please repeat the steps and change the "Preferred DNS server" to 208.67.220.220.
    Kim Zhou
    TechNet Community Support

  • Satellite L855 - ATI client event error

    I'm running a L855 laptop and over the last day or so I've noticed in event viewer every min or so I'm getting a ATI client event error, no more details are available but it's entering a new event for it about 1 min!
    Everything seems to be running fine though, anyone know what this is and how to stop it?

    > Everything seems to be running fine though, anyone know what this is and how to stop it?
    ATi client must be related to the ATI catalyst control center.
    The ATI Catalyst Control Center software application gives you complete control of performance and visual quality of your ATI Radeon graphics for a personalized visual experience on your notebook.
    You could try to reinstall the ATI driver but to be honest I dont know if it would help you to stop viewing the errors in event viewer.
    At the other hand, if your notebook is running properly I would not be worried about some entries in event viewer. This isnt really important

  • Af:inputText - valueChange client event

    Hi,
    I see that valueChange client event for an inputtext is invoked on mouse click and keydown also.
    I want to process value of an inputtext in javascript, when user edits the text.
    Please suggest.
    Tilak

    I see that valueChange client event for an inputtext is invoked on mouse click and keydown also.Wrong, can you illustrate your problem, testcase
    I want to process value of an inputtext in javascript, when user edits the text.you can use af:clientListener tag to achive this
    Example
    <af:resource type="javascript">
                function onChange(e){
                 alert(e.getSource().getValue());
            </af:resource>
            <af:inputText label="some text : " id="it1">
                <af:clientListener method="onChange" type="valueChange"/>
            </af:inputText>Hope this helps.

  • Client events in table does not fires well

    Hi,
    Have you noticed, if you register a clientListener with onMouseOver, Out, Down etc... in the table, the js method is fired even when you are inside the table. I noticed using firebug that borders of columns and cells are considered to be outside the table, wich makes events fire whenever the mouse goes through these borders.
    Is there a workaround to this ?
    Regards
    Fred

    The client listener is in the table, that mean inside the table tags, like
    <table ....>
    <af:clientListener type="mouseOver" method"doMouseOver"/>
    <af:column ...> </af:column>
    <af:column ...> </af:column>
    <af:column ...> </af:column>
    </af:table>

  • Client eventing on table select

    Hello,
    For a .net PDK iView I've built, I would like to raise a EPCF event on the client when a row in a table control is clicked.  I wish to pass the values of several fields in the selected table row using the EPCF storeClientData API.  What I'm not clear on is which table client side event I should code a function for, and how that function should reference the values in the cells of that row.  Any help would be greatly appreciated.  Thanks.
    Brian

    Try to register to SAPTABLECLICK (in that property write "myFunc") and in your script handler, to get the row index use a nice mapi function:
    <script language="javascript">
    <!--
    function myFunc(id,e)
      var indx = sapUrMapi_SapTable_getClickedRowIndex(e);
      //note that indx is zero based
      alert(indx); // or something...
    //-->
    </script>
    If you want the actual cells values... It's complicated to use mapi's for that. I suggest you save your needed data in a way that you can access it easily in the function handler according to the selected row index. (For example render something as a script block in the page load...).
    For more info about mapi functions you can try to ask the experts in the htmlb or Web Dynpro areas.
    Last - try setting the table property "SelectionMode" to SINGLE to get a nice "selection" look (but be aware that the event your registered to will happen for any cell).
    Hope this helped, at least a bit,
    Ofer

  • Web Cal Client event update timming

    I am running Calendar Server 2.2. I have windows Clients that use the Web Cal Client to access their calendar and some of them have delegates. When I delegate makes or updates an event, it takes about 5 minutes for the changes to show up on the owner web calendar client. Can this be configured to be faster or immediate?
    The owners are physicians and the delegates are secretaries that make constant changes on the calendars and the owners need to see those changes quickly.
    Thanks,
    Erik

    Same problem here! Apple should really get their act together if they are serious about groupware and their server software; all-day events are a crucial part of a calendaring system!
    I wonder if Apple actually use their own software? I can't imagine that they'd let this one go on unsolved for this long
    JDT

  • Portal client event

    hi portal guru,
    there is a standard sap iview, which listen to certain event.
    now i want to write some code to raise that event, then the standard iview can act accordingly.
    i try with different ways.
    1. i write a web dynpro application which raise the event with code WDPortalEventing.fire
    i put those two view in one page, everything works.
    2.i write a portal component ,which generate the html code
    the epcflevel is set to 2 in the configuratoin.
    i create iview for this component and put it to another page with the standard iview. it doesn't work.
    i try also subscribe event in the page generated by the portal component, the event is caught. so i am sure the event is fired.
    do i miss anything there?
    the environment is NW7 SP15.
    the reason why i want to try with the 2nd way is the 1st option is not working in latest firefox because of the web dynpro limitation.
    any comment is appreciated.
    Best regards,
    john
    Edited by: John Wu on Nov 6, 2011 6:39 PM
    Edited by: John Wu on Nov 6, 2011 6:40 PM
    Edited by: John Wu on Nov 6, 2011 6:42 PM

    Hi John,
    Which type of Page you are using..? Make sure you are not using Web Dynpro Proxy page with the Par based component. Also check the isolation method.
    If nothing works can you please paste the code snippet through which you are raising the event both in Web Dynpro as well as in JSP.
    Thanks
    Prashant

  • Client Eventing between a html page and iviews

    I have an iview with static html(anchor tags) in the navigation panel, basically these links should open up corresponding iviews in the content area. What would be the best way to solve this problem.

    hi Mukesh,
    you should use the follow link to open an iview and mkark the navigation:
    a href="/irj/portal?NavigationTarget=ROLES://portal_content/YourRoleID/YourWorksetID/YourPageID/YouriViewID" target="_top">
    you can stop the link string at a page or an iView a page is a better option
    Hope it helps,
    Yoav

  • Event ID 1012 source DNS Client Events user NETWORK SERVICE

    There was an error while attempting to read the local hosts file

    Hi,
    What files are present in the C:\windows\system32\drivers\etc directory? Below are the contents of mine.
    C:\> dir C:\windows\system32\drivers\etc
        Directory: C:\windows\system32\drivers\etc
    Mode                LastWriteTime     Length Name
    -a---         4/16/2014   1:03 PM       1807 hosts
    -a---         8/22/2013   8:35 AM       3683 lmhosts.sam
    -a---         8/22/2013   6:25 AM        407 networks
    -a---         8/22/2013   6:25 AM       1358 protocol
    -a---         8/22/2013   6:25 AM      17463 services
    Thanks,
    -Greg

  • Windows 8.1 Clients cant register record in DNS in forest functional level 2008 environment (DNS Client Events 8018)

    Hello,
    I have two DC,:
    first Windows Server 2008, second Windows Server 2012 R2,
    AD works in forest functional level 2008
    Workstations working in Windows 8.1 OS cant register to DNS with warning:
    The system failed to register host (A or AAAA) resource records (RRs) for network adapter
    with settings:
               Adapter Name : ...................................................
               Host Name : ...................................
               Primary Domain Suffix : ....................................
               DNS server list :
               Sent update to server : <?>
               IP Address(es) :
    The reason the system could not register these RRs was because the DNS server contacted refused the update request. The reasons for this might be (a) you are not allowed to update the specified DNS domain name, or (b) because the DNS server authoritative for
    this name does not support the DNS dynamic update protocol.
    To register the DNS host (A or AAAA) resource records using the specific DNS domain name and IP addresses for this adapter, contact your DNS server or network systems administrator.

    Hi,
    Functional levels determine the available Active Directory Domain Services (AD DS) domain or forest capabilities. They also determine which Windows Server operating systems you can run on domain controllers in the domain or forest. However, functional levels
    do not affect which operating systems you can run on workstations and member servers that are joined to the domain or forest. Set the domain and forest functional levels to the highest value that the environment can support, in order to use as many AD DS features
    as possible.
    You may reference SenneVL’s suggestion, and use ipconfig /registerdns
    on the workstation to confirm that if the DNS record can be registered.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Here is a neat example of server and client events that are fired.

    Save the document first and open it in Designer or Acrobat.
    http://partners.adobe.com/public/developer/en/xml/XFAEvents.pdf

    Hello Jimmy,
    I can not access the URL. It gives "Access Denied".
    Regards,
    Yaseer

Maybe you are looking for

  • Apple ID Help!

    Okay, this is a weird situation. I downloaded the Twitter App from the Mac App Store. Everything was fine and it said there was an update available. When I went to update the application someone else's email was in the log in box. No one has borrowed

  • This doesn't fit, but I have questions New MACBOOK pro 15 inch

    I am going to get the new Macbook Pro 15inch. I want the 2.8Ghz and I will build up the RAM later. Anyway, for the money should I go the 3.0 GHz? I am a video editor that works on SD and HD, usually never over 720p. I also do a little work in AE, I m

  • How to create a link in a multi level navigation?

    Hi All, I have a portal with multilevel navigation and I want to add page that acts as a link to an external website lets say http://www.cnn.com. How can I add a link into the multilevel navigation? Can I create a page that is actually a link? Thanks

  • How to create set hierarchies from FI SL.

    Hi Experts, How to create set hierarchies from FI SL. Could you please tell me Step by step procedures or send to this mail id [email protected] Thanks Regards, Sathis.J

  • 01017 invalid username and password in toad

    Hi, I am getting '01017-invalid username and password logon denied' error when connecting via toad. but with same userid and password, I am able to connect via sql plus. Pleaase let me know how to resolve this issue. Regards, Abirami