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

Similar Messages

  • 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);" />

  • 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

  • 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 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

  • Two portals (same SID), one R/3 System - changing portal client number?

    We have one R/3 system but two portals.  One is EP6, the other is EP7 and is due to replace EP6.  On installation of version 7.0 we had to keep the SID the same on both portals.
    Now we are having trouble with SSO into R/3 as the ACL in STRUSTSSO2 will only accept one unique SID with client number of 000.  However it does seem to accept the same SID but different client number.
    My question is, is there a way to change one portal generating the verify.der certificate using something other than default 000 client number?
    Is this messy?
    thanks.
    SiB

    Hi Simon,
    > is there a way to change one portal generating the verify.der certificate using
    > something other than default 000 client number
    > Is this messy?
    There is a way and it is absolutely not messy but the supported way; you just have to set the UME property "login.ticket_client" to some different value than "000" on the portal server in question (and of course you have to use this value on the ACL in the SSO target system).
    Also see https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/singleSign-Onand+Cookies& -- checklist number 3 and http://help.sap.com/saphelp_nw04/helpdata/en/e2/f71940d4558f5ce10000000a155106/frameset.htm
    I have just done this on my actual project, it's quite straight forward. Remember to restart the portal WAS after changing the value!
    Hope it helps
    Detlev

  • WAS ABAP+J2EE - Portal - client copy

    I have installed a WAS ABAP and now doing the J2EE add-In.
    Do i have to make a different client. The sapinst asks for a rfc connection to a client , the default is 000. Which can be ok for using the abap programs but afterwards I need to install the portal. Does this portal needs a client ?

    Hello Johan,
      The portal runs on the J2EE engine and does not need a client.
    Regards
    Abdul

  • 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>

  • Portal Custom Event

    Hi,
    I wrote a Custome Event class and a Listner to support my Event. They
    compile fine as I extended com.bea.p13n.events.Event and implemented
    EventListener. However, from the docs
    (http://edocs.bea.com/wlp/docs40/events/custmevt.htm), I am not sure
    where to drop my custom Event and Listner class so that they can be
    used from my portal within a portlet.
    Should I place the classes inside a particular directory of the Portal
    product? Should I add them to the Event and Listener JARs? Any help is
    appreciated.
    Thanks in advance.
    -n

    Hello,
    The problem appears to be that you are trying to determine if the portlet was targeted and to send events in preRender()-- this should be done in your backing file's handlePostbackData() method. Some of the earlier links and examples on this discussion thread mixed up "campaign events" with "interportlet events"-- they are two different things. The information about inter-portlet events is located at http://edocs.bea.com/wlp/docs81/ipcguide/overview.html .
    Interportlet events can only be sent during the handlePostbackData() backing file lifecycle phase, or when handling another incoming event. If an event is sent during preRender() it may not be delivered to any other portlets, and in later versions of WLP it will actually result in an error being logged.
    So your backing file should probably look something like this:
    import com.bea.netuix.servlets.controls.content.backing.AbstractJspBacking;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * Sample backing file for sending an event when the portlet
    * is clicked.
    public class SampleBacking extends AbstractJspBacking
    public boolean handlePostbackData(HttpServletRequest request,
    HttpServletResponse response)
    // Determine if this request originated due to an action
    // on our portlet
    if(isRequestTargeted(request))
    PortletBackingContext context = PortletBackingContext.getPortletBackingContext(request);
    context.fireCustomEvent("portletClicked", "my portlet was clicked");
    return false;
    }

  • 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

  • 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

Maybe you are looking for

  • Imports from Photoshop CS2 after editing

    I frequently use Photoshop CS2 to edit my digital photographs; however, I like to use iPhoto to view or otherwise manipulate the images into different albums, slideshows, or uploads to my .mac account. When I open iPhoto to import a photo edited in p

  • Moved from PC to Mac cannot transfer songs to ipod

    I have a 20GB Click Wheel ipod which I have been using on a PC with XP. I have now moved to a Mac G4. I have downloaded itunes 7 and loaded my songs via back up discs on the Mac and sorted my playlists. When I try to synch my ipod no playlists or son

  • Need to recover old playlists, old iTunes library will not open because it was created by a newer version?

    I have a Mac mini, have installed iTunes on it and want to find some old playlists that were lost.  I have several 'iTunes Libraries' with different dates but I cannot open any of them becauseit says they were created with a newer version of iTunes. 

  • Newbie to JSP, Need to convert some ASP code to work for JSP

    Can I get some aid in converting the following ASP code to work using JSP. I have never used JSP before but I now need to because of a recent server change. <% DIM URL URL = LCase(Request.ServerVariables("URL")) if InStr(URL, "/about/") then %> <p>Ab

  • Kernal Panic & Immediate shutdown

    Hello. I have had my Macbook Pro shut down on me 3 times now. A gray screen appears and a power down button appears in the middle of my screen and in about 5 different languages says something like, "You must shut down the computer". I can't do anyth