EPCF in webdynpro

Hi all
Does epcf can be applied to webdynpro
How the scripting and eventing done in webpro
Useful links pls
Itti

check these related ones
WebDynpro Portal Eventing
WebDynpro or JSPDynPage with HTMLB
WebDynPro communication....
Passing Data Back from a WebDynpro App to a Portal App
Portal Eventing with Web Dynpro
Swathi

Similar Messages

  • 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

  • EPCF between JSP  and Webdynpro

    hi experts,
    i want to pass a value from one JSP iview to Webdynpro iview through EPCF.for ex: there is a string in JSP,i have to calculate the string length in JSP but the result will b display in webdynpro iview and vice versa.
    Can anybody help me regarding this?

    Hi Ranjit,
    Any chance you could share your answer with me. We need it urgently.
    Thanks,
    Vibhu

  • Webdynpro and eventing from team viewer

    Hi.
    We are trying to add new fields to the MSS "General Data" iView (com.sap.pct.hcm.eeprofilegeneraldata.par) and are considering the following approaches:
    1.) Write additional java code to retrieve the data we need and display it on the iview.
    2.) Create a new iview from scratch using webdynpro.
    At the moment we are leaning towards option 2 as we do not have much java experience and have found webdynpro relatively easy to use. But my question is....how difficult would it be for a webdynpro iview to pick up the eventing from the standard Team Viewer iview? I would want to make sure that when a user clicks an employee on the Team Viewer, his/her data would show up in the new webdynpro iview. Any details on how to go about this would be appreciated.
    Thanks in advance,
    Chris

    Hi Chris
    If you are creating a new  iview from the scratch to display the details you had to have the epcf subscribe function. Here you get the parameter passed from the first iview. For this the raise event have to be fired from the MSS iview. So in the Msssiview You write the code for Raiseevent ON click of the button.
    <b>Event Sending from par</b>
    EPCM.raiseEvent("urn:com.sap.tc.webdynpro.example.reponamespace","linkclickevent",variable);
    <b>
    Event Receving on Webdynpro</b>
    WDPortalEventing.subscribe("urn:com.sap.tc.webdynpro.example.reponamespace","linkclickevent",wdThis.wdGetEpcflistenAction());
    public void onActionepcflisten(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
        //@@begin onActionepcflisten(ServerEvent)
    //    wdContext.currentContextElement().setName(dataObject);
    //      wdComponentAPI.getMessageManager().reportSuccess("listen eventfired......");
         wdComponentAPI.getMessageManager().reportSuccess("dataobj is....."+dataObject);
        //@@end
    (The variable dataObject cannot be changed to other name)
    Regards
    Geogi

  • Push MDM search results from webdynpro to portal's standard ResultSet iView

    Hi,
    I have gone thru a lot of SDN information, blogs and PDFs
    regarding the usage of EPCF, EPCM for communication between
    Webdynpro and Portal utlizing portal eventing phenomenon.
         My requirement a.k.a. predicament and grief::
    I get back mdm search results in webdynpro app, using a
    specialized search strategy to MDM repository. I need to
    ship these resuls off to the standard out-of-box
    portal's MDM ResultSet iView (which is a part of portal's
    MDM business package).
    I haven't had much success getting crisp resolution to
    satisfy my requirements. In my WD code, I know,  I need
    to put some sort of ?event-generating-2-liner-code? that
    sends my results to portal's standard iView.  
    Surely, I can send just recordIDs or I can send the actual
    results. I get 5 fields per record of Material's table.
    Once the ResultSet-iView displays the search results,
    my responsibility is over. Now onwards, portal's standard
    business package will take over from there for further user
    interacitons, like accessing item details etc..etc..
    Any and all help is highly appreciated.
    -Shashank Date

    No replies............yet.....It's been 2 days now.....
    Can someone provide some clues?
    thx.
    -Shashank Date

  • MDM Table EVENT(EPCF) to get the record ids

    Hi Experts,
    I have a requirement where I need to trigger an EPCF event from MDM standard result set iview and need to capture the recordids of all the record present in the table in my customised webdynpro application.I have to later read them to an excel sheet.(the code for which i already have)
    I am trying table type EPCF eventing for that and later passing [Search] as parameter but i am not able to get this search object and it seems to be a futile approach.
    Please anyone of you can tell me the method to retrieve all records from resultset Iview to my dynpro application.
    Thanks
    Vinay

    Hi Vinay,
    You are correct in that you cannot pass a list of ID's from the Result Set iView.  This is by design and the reasoning behind it is that there could be thousands or even hundreds of thousands of records in a Result Set, and this would make passing them in a JavaScript function or URL unrealistic.
    However, since the ResultSet is always the result of a search, you can pass the "search" to your custom application and recreate the result set there.  The only caveat is as follows:
    Prior to MDM 5.5 SP6 P2, the iViews were based on the MDM4J API. So if your version of MDM is pre-SP6 Patch 2, you must use the function Search.setArchive() of MDM4J.
    From MDM 5.5 SP6 Patch 2, the iViews are based on the MDM Java API, and so you should use the function Search.deserialize() of MDM Java API.
    Regards,
    Walter

  • Webdynpro iveiws gets displayed only half the of Content Area with scroll

    Dear Experts,
    We are running on EP 7.0 SP13 and I have some webdynpro Iviews. Now when i'm in default framework page-desktop i'm getting the normal full screen view of the WD iview screen. But when i use lightframework page-desktop, the content area gets split into two with the lower half blank and the upperhalf displays the WD iview with a vertical scroll, and its not coming to full page.
    Kindly suggest how to overcome this. I know certain functionalities will not work with WD iview and Light framework, but i dont think it does have anything to do with content area.
    Points will be awarded for sure.
    Thanks
    Yusuf

    Hi Mohammed,
    What is the value of the Height Setting Property of your iview: Automatic, Fixed or Full-page?
    Is the iview on a page or is the iview put in the role without a page?
    I know for sure that some thing like EPCF are not availible in the Light framework.
    What I do not know if the automatic height function that is triggerd (if you selected this property) is part of the EPCF framework.
    If that is the case that could then explain this behaviour...
    Maybe the SDN communitiy can fill me in on this last bit.
    Cheers,
    Benjamin Houttuin

  • UpdateSearch EPCF in Resultset iView

    Hi,
    I am raising the following standard EPCF event from my custom Java WebDynpro, passing a specific "Item Identifier (Product ID)" to my PRODUCTS table. It's working fine and the perticular row is retreived in my Standard Resultset iView, but I want to send multiple values of ProductId field to Resultset iView instead of one value (ProductID=104367719). How do i send multiple values from my custom webdynpro using the following event?
         WDPortalEventing.fire(
                   "urn:com.sap.pct.mdm.appl.masteriviews",
                   "updateSearch",
                   "ProductID=104367719&refreshSearch=False"
    Thanks
    Vijay Budati
    Edited by: Lakshmi Vijaya Kumar Budati on Jan 14, 2010 11:04 AM

    Idan,
    Thanks for your reply.
    You mean to tell that updateSearch EPCF event can't take multiple values?
    Can't we use OR & AND operator for Keyword field to send multiple values to updateSearch event from Custom WebDynpro?? as Keyword search is doing? If so, could you please let me know how to use the fields and how to pass the values?
    When i look at my Products table, i didn't find any Field called KEYWORD.
    Thank you,
    Vijay
    Edited by: Lakshmi Vijaya Kumar Budati on Jan 17, 2010 11:21 AM

  • Eventing from a PDK appln to a Webdynpro appln ! :(

    Hi,
    I would like to trigger an event in webdynpro and catch subscribe for it from a PDK application..
    (And passing data b/w WD appln and a PDK appln ...)
    How can i acheive the same..
    WDPortalEventing will work only across WD applns !
    Is their any API that suits my requirement !
    Any help is appreciated !
    Regards
    Bharathwaj

    Hi Bharath,
    You can trigger in WD and catch it in the PDK application.
    The following code is for firing an event from webdynpro.
    WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal", 
                           "TestEvent", 
                           "AParameter");
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/1d584289e59041e10000000a1550b0/frameset.htm
    It can be captured in portal using EPCF
    EPCM.subscribeEvent( "urn:com.sap.tc.webdynpro.test.portal",
             "TestEvent",Function_name);
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/aebf40b87e0366e10000000a1550b0/frameset.htm
    Regards
    gEorgE

  • Portal Workprotect in Talent Profile - WebDynpro ABAP FPM application

    We are trying to implement Workprotect in ESS - Talent Profile application (HRTMC_EMPLOYEE_PROFILE). The requirement is that when user had entered data in either Internal work experience, External Work experience or other tabs; before he has saved the data, if the user clicks on some other link in portal or try to close the window, Portal work protect that is enabled should prompt the user to save the data or risk losing data.
    What has been done so far:
    1. Enabled Workprotect on Portal:
    Step 1: In the portal, go to System Administration -> System
    Configuration -> Service Configuration.
    Step 2: In the portal catalog, Select
    application "com.sap.portal.epcf.loader" and open the properties for
    service "epcfloader" for editing
    Step 3: Set property workprotect.mode.default = 3
    Step 4: Save -> Restart service
    Now, Portal Work protect is enabled.
    2. On the Talent application end, I have seen many posts in forum & FPM related workprotect documentation. But, it is not clear as to how this actually works when it comes to FPM application.
    The documents says FPM allows application to make use of work protect
    mode offered by Portal. To achieve this, the application must u2018tellu2019 the
    FPM whether it contains unsaved
    (u201Cdirtyu201D) data. For this, the FPM provides the Web Dynpro Interface
    IF_FPM_WORK_PROTECTION. In the is dirty method, you have to put
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    Questions:
    1. If you see the shared application component HRTMC_TP_SHARED_DATA, it implements interface IF_FPM_WORK_PROTECTION. But, the isdirty method in the component controller has already existing code
    METHOD is_dirty.
    ev_dirty = wd_this->mv_is_dirty.
    ENDMETHOD.
    Where should we put the code given below as described in FPM documentation. In shared component or in individual components like HRTMC_TP_WORKEXP_INTERNAL, HRTMC_WORKEXP_INTERNAL, HRTMC_TP_EDUCATION
    etc.
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    And, the line "* component contains unsaved data" as described in document- how do we code this for talent profile considering that there are multiple components, shared component etc? My requirement is that if user has entered some data in any of the tabs like internal work experience, external work experience, then work protect should work if
    user tries to navigate away or close browser.
    2. If you see general documentation for Work protect and webdynpro (not for FPM), it says that the application must define a special status (dirty flag), which tells the portal when there is unsaved data. You can set and cancel this status (TRUE, FALSE) using method
    SET_APPLICATION_DIRTY_FLAG in interface IF_WD_PORTAL_INTEGRATION.
    And it goes on to say that one must set application flag dirty
    SET_APPLICATION_DIRTY_FLAG
    exporting
    DIRTY_FLAG = TRUE | FALSE
    and also set work protect mode
    call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    exporting
    MODE = NONE | APPLICATION_ONLY | BOTH
    3. Which is the correct way to enable Work protect in case of Talent profile applications? Which method of which component should should we add code to? Which of the above ways should we follow ( Interface IF_FPM_WORK_PROTECTION or IF_WD_PORTAL_INTEGRATION) ? Which component and which method should we Set Work protect and  Set isdirty
    Please advise.

    Hi Experts,
    Can you please provide some useful info in implementing work protect in Standard FPM WebDynpro ABAP applications? In this case, as mentioned above, the application is  ESS Talent Profile application (HRTMC_EMPLOYEE_PROFILE).
    Thanks,
    Sandeep

  • Calling pdk component in webdynpro

    Dear All
    is it possible to call a pdk component in webdynpro
    Please provide your inputs
    Thanks
    Karthi D

    Karthik,
    When you say call a portal component, do you want to navigate away from your webdynpro and call a any portal component?
    If yes,It is possible to call portal component. Just create an Iview for the portal component and assign that into portal page.
    Call the component using EPCF navigation api inyour web dynpro by passing pcd location of the page.
    Ram

  • Storing data in data bag with webdynpro for abap

    Hi,
    It´s possible to store data in data bag with webdynpro for abap?
    The EPCF client data bag API provide methods to store data in a transient data buffer on the client:
                               EPCM.storeClientData(nameSpace, name, value)
    Does webdynpro for abap has an equivalent method?
    Thanks,
    Márcio

    Web Dynpro ABAP can produce a portal event and pass parameters along with the event. These parameters can be read by any event receiver.  However you don't have directly access to the data bag as you describe. Here is a link to the help on the Portal Event API:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/da/f96f4132f15c58e10000000a1550b0/frameset.htm

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

  • WebDynpro Java event doesnt work

    Hi!
    I create two iviews with two webdynpro apps, which one send parameters (firing a portal event) to the other (subscribing).
    I created a page and put the two iviews together. When I preview this page, event WORKS properly.
    When I add this page to a role, login, navigateto the page and fire the event, subscribing-iview doesnt do anything.
    Any solution? Thx!

    Hi Bruno,
    When we add iviews to page and than page to role we must consider the client side eventing taking place during the Role access. As we know Eventing in the portal is part of the Enterprise Portal Client Framework (EPCF) and enables the exchange of information between iViews at runtime. Also the WDJ code must see that proper triggering of action occurs during the event call.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/62/b3dc4281de2878e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3b/29933f09a5fb47e10000000a114084/frameset.htm
    Please check the above lnks. If the preview of your page works fine than do check the role and Page properties and permissions of Role.
    Thanks.
    Good Luck.
    Regards,
    Shaila.

  • Want to load dynamic URL from the WebDynpro application

    Hi ALL,
    My problem is I developed a WebDynpro application to show the vendor details in the table.
    I created a iview in the portal and integrated the webdynpro application. Taken 2 columnwidth page.
    In 1 column to showing the vendor details and in another column i want to show the site of the vendor.
    Now, In row selection I want to show the homepage of the vendor site in another ivew(2nd column) of the page.
    Kindly help me out.
    Thanks in advance.

    Hi,
    Please follow  the below process for passing data between two webdynpro applications using portal eventing.
    Step1:-
    Webdynpro Application 1 (Iview1)
    Create an input field bind a context variable and have a button and write the following code in the button onaction.
      public void onActionOK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
      com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.fire("urn:com.sap.tc.portaleventing.example","show",
                        wdContext.currentContextElement().getHi());
    Here Hi-->is the context variable binded to the input field.
    Step2:-
    WDDOINIT write the following code:-
    com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.subscribe("urn:com.sap.tc.portaleventing.example","show",wdThis.wdGetRaiseFireAction());
    While creating the action it should have the following 3 parameters.
    1.dataObject-->Type String
    2.namespace-->Type String
    3.name-->Type String
    Your action code should look like something below.
      public void onActionRaiseFire(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject, java.lang.String namespace, java.lang.String name )
        wdComponentAPI.getMessageManager().reportSuccess("Value in the input field"+dataObject);
    Note:-
    1.Make sure your using portal along with domain
    Eg:-http://portal:50000/irj/portal--->wrong
          http://portal.domain.com:50000/irj/portal--->right
    2.EPCF level should be 1.
    3.Check whether both applications run on the same domain.Sometimes portal eventing does not work between cross domain applications.We should do domian relaxing in order to achieve this.
    Thanks & Regards,
    Lokesh Kamana

Maybe you are looking for

  • How to hide RTPs and Specify Fix value for them

    Hi All, I created a business in which i am using one variable of String type with RTP enabled. Now i don't want my user to enter this value while executing business rule, instead i want to provide a fix/constant value for that variable. How can i do

  • Does my Airport Express have to be directly in view with my iMac?

    or can i put it in a wood cabinet.....just 8ft away from my iMac. It's not far away, but it would be completely enclosed in a wood entertainment cabinet. Thanks, Chris

  • How to estimate on-card application's total size

    there is a similar topic before, seems many experts count the size by self, but i still have no idea about it. can anyone guide me a direction to estimate this from CAP file? for example, how do i know "new" an object's overhead? i had read an articl

  • Using multiple iTunes accounts on one iPhone

    I have a personal iTunes account & a work iTunes account -- I realize it's possible to sync my iPhone with both of these accounts via iTunes, but is it also possible to access both of these accounts from my iPhone to allow for direct purchases form t

  • Migrating Sybase Anywhere 8.0 to Oracle 10g

    I was asking Oracle help to develop a plugin whereby my company could use it as a tool to help us to migrate to Oracle 10g from Sybase Anywhere 8.0. However I was refer to here by someone from Oracle. Anyone have experience on this? Thanks Steven