Eventing between Web Dynpro iView and regular DynPage iView

I have seen, done eventing between two dynpage iviews and two webdynpro iviewsHowever, and gone through "How to Use the Portal Eventing for Web Dynpro iViews". However, I have been trying to have a webdynpro iview talk to a dynpage iview but they just won't communicate. Is this even possible?
Ok basically I have a portal page in a popup window with no masthead and top level navigation. The page has two iviews -  the top one being an iView that points to a webdynpro application on Server A, and the bottom one being a dynpage iview on the Portal Server B.
In the webdynpro iview, the code for when a button is clicked is
public onSomeAction(Event event) {
    WDPortalEventing.fire("urn:myUrn","eventName","value");
In the dynpage iview, the code i have for it is
myServ = (IEpcfToolbox) PortalRuntime.getRuntimeResources().getService(IEpcfToolbox.KEY);
myReceiver = myServ.getClientEventReceiver(request, "urn:myUrn", "eventName");
form.addRawText(myReceiver.getWrappedScript());
try {
    if (!myReceiver.isReceived()) {
        form.addComponent(createMainScreen());
    } else {
     form.addComponent(new TextView("event received!"));
} catch (Exception e) {       
    form.addComponent(createErrorScreen());
I tried all the things I could think of but the receiving iView just won't get the event fired.
Can someone confirm that this should work? and correct me where I've done wrong.
Please help. this is very urgent. your help will be greatly appreciated. thanks in advance
PS. My environments are EP 6.0 SP2 and WAS 6.40 SP14

> hi,
>
> portal eventing  works properly if all participants
> are in the same domain. Otherwise portal eventing
> g does not work. If the SAP J2EE
> Engine on which the Web Dynpro application is
> deployed is in another domain, you have to  map the
> IP address of the SAP J2EE Engine to the domain name
> of the
> SAP J2EE Engine on which the SAP Enterprise Portal is
> running, by editing the configuration file hosts.
>
> regards,
>
> Ganesh.N
I am no direct access to the boxes so I can't try your suggestion. It really makes sense that eventing won't work if the iViews are on different domains. I know they are in the same domain but different subdomains.
Anyway, good news I got eventing to work with the mentioned set. I found that that the SAP Java EPCFToolbox API had a bug that kept throwing javascript errors when I tried to have the web dynpro iview fire an event and the SAP one subcribed to it.
I got around it but using the EPCF Javascript API instead.
Code:
response.write("<script>");
response.write("EPCM.subscribeEvent('urn:dla.telework', 'createPdf', doSomething);");
response.write("function doSomething() {");
response.write("window.location = self.location + '&eventReceived=true';");
response.write("}");
response.write("</script>");
So basically just output raw text through the response object and it just works.
On a similar topic, since eventing can only pass string parameters back and forth, I'm still looking for a way to pass other more complex Java objects between web dynpro and sap iviews. From what I haven't they don't share the same session object (which I thought they did). So basically I can't just stick stuff in the session and pull it down on the other end. I'm clueless right now. If anybody has some tips, plesae share. Thanks

Similar Messages

  • Difference between web dynpro java and web dynpro abap

    Hi this is watson maureen,
                 I wnat to know what is  the difference between web dynpro java and web dynpro abap?
    thank
    maureen

    Hi watson,
    Go through these links, you will get the difference between web dynpro java and web dynpro abap
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
    Web Dynpro: ABAP or Java?
    Regards
    Sreedhar.

  • Difference between Web Dynpro Abap and Web Dynpro Java

    Hi,
    What is the difference between Web Dynpro Abap and Web Dynpro Java.
    Thanks,
    Suresh

    hi suresh......
          from the end point of view, the customer wont know whether the application is done by java or abap. only the programming language differs and nothing much more.
    ---regards,
       alex b justin

  • Portal Eventing between Web DynPro Java iView and non-Web DynPro iView

    Dear Experts,
    I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the event subscribed.
    Here is the code snippet which reside in the Web DynPro Java iView that is used to fire the event
    String param = "test";
    WPortalEventing.fire("urn:com.company.Test1", "TestEvent", param);
    This the code snippet that is in the jsp page
    function notifyTest(param)
         // Code to print param value here
    EPCM.subscribeEvent("urn:com.company.Test1", "TestEvent", notifyTest);
    Note:
    1. When Web DynPro Java iView fire the portal event the entire page is refreshed, including the non-WDP iView.
    2. When EPCM is replaced with window.top.EPCM, the page is refreshed, it is totally hanged with progress bar.
    Can anyone help to solve this problem?

    hi
    Please write the below code snippet in ur jsp for notifyTestjavascriptfunction
    function notifyTest( eventObj ) {
         eventParameter=eventObj.dataObject;
         // code to print the parameter "eventParameter"
    Thanks
    Harsimran

  • Handling standard iview event from web dynpro

    Hi all,
    I hav w a search iView which is SAP standard, when you click an element on the result list it triggers an event. The link contains the following:
    javascript:{jsCode="
    EPCM.storeClientData('urn:com.sap.bor:BUS1001','objid','12002');
    EPCM.storeClientData('urn:com.sap.bor:BUS1001','AllKeys','objid');
    EPCM.raiseEvent('urn:com.sap.bor:BUS1001','select','','a very long url');"};if(opener!=null&&self!=opener){opener.execJS(jsCode);}else{execJS(jsCode);};
    On the other side I'm developing a custom WebDynpro iView whick needs to handle this event. By adding to wdInit() the line WDPortalEventing.subscribe("urn:com.sap.bor:BUS1001", "select", wdThis.wdGetGetReportsListForMaterialAction());  I was able to catch the event. But I can't get the parameters from the event.
    For what i've learned browsing the forum the javascript code above stores the parameters in the "client data bag", and are not directly passed in the event.
    Is there any way to retrieve these parameters from the Web Dynpro iView ?
    Thanks in advance,
    Diego.

    Hi all,
    As a workaround I made a Portal Component application which receives the event and parameters from the standard iView and lanuchs a new event setting the aprameters in the event as Web Dynpro expects them (without using the client databag). Then I inserted this Iview in the same page as the others, but hidden. It's not elegant but is working.

  • Drag and Drop between Web Dynpro Tables on Cell Basis

    Hi Experts,
    I need to develop a Drag and Drop Functionality as follows:
    I have two tables. I want to drag a row of the first table and drop it in a particular cell of the second table.
    Is it possible to implement this using the Web Dynpro Drap and Drop Functionality?
    If not, does anybody have an idea of how to implement this using other concepts (Flash Integration, Building up a Grid of Images and defining those as drop tragets, etc..)??
    Valuable Advice is highly appreciated!
    THANKS, Johannes

    Thanks for the Video.. It gives some information about Drag and Drop, but still, it does not say what I need to know.
    Again:
    I need to know if there is a way to drag particular cells in a Web Dynpro Table to other locations in that same table. Plus: I need to know if there is a way to drag and drop rows of one table into particular cell of another table.
    Similar to what we do in our Outlook Calendars: We have a week in view and we see our appointments as blocks within that week view. Now, we can drag and drop these blocks to other locations. That is what I need to implement!
    Does anybody have an idea?
    THANKS, Johannes

  • Submit button in Web Dynpro Native and ActiveX tab

    We use LiveCycle Designer 7.1 in a SAP environment (CRM5.0/NW2004S 7.0.06). We are creating an online Interactive Form via Web Dynpro for Java using NW2004S.
    In NW2004 you have to possibility to select the 'Submit to SAP' button from the Web Dynpro tab. However, in NW2004S this has been changed into 2 submit buttons, one on Web Dynpro Native and one on Web Dynpro ActiveX tab. Does somebody know what the differences are compared to NW2004? When to choose what button and what kind of code you need to enter to send the data the SAP?
    kind regards
    Angelique Heutinck

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • On Blur, On Click Events in Web Dynpro - How can it be done ?

    Hello All,
    I am wondering if it would be possible to have
    On_CLick
    and
    On_Blur
    events using Web Dynpros, it would be great if any one can tell me how it is done or provide me some documentation, I have done it using HTMLB but dont know how to do it using Web Dynpros.
    I would appreciate any help.
    Best Wishes,
    John.

    Hi John,
    As Maksim said you can use the onClick event with some of the UIElement.
    for example:
    Add a button UIElement to your view
    create a new action in the view.
    Write in the action something like:
    wdComponentAPI.getMessageManager().reportSuccess("Hello John");
    In the properties of the button you will see an onAction event. Bind it to the action that you created.
    Regards, Adi.

  • Diff  in  web dynpro  abap  and  Java

    Hi  Friends,
       I  am new  to  web dynpro  ABAP and  Java.
         1) Please  give  me idea  about  about  these  two
          2) In  which  Scenarios  these  are  helpfull
         3)  From  which  version   onwards  these are  existing
    Thanks for  your  help.
    Thanks,
    Asha

    Hi Ravi,
    The following are basic differences between ABAP and JAVA WD.
    1. ABAP WD can be developed in ABAP Workbench thru transaction SE80 whereas Java WD needs SAP NetWeaver Developer Studio.
    2. Since ABAP WD is a part of the ABAP Workbench, it has direct access to ABAP dictionary. Hence access is faster.
    3. In order to develop on ABAP WD, you will need basic knowledge of ABAP objects, whereas in Java WD, dev is using Java

  • Problem in completing the TASK when using Web Dynpro Java and BPM

    Hi,
    I am using Web Dynpro Java and BPM.
    i see my Web Dynpro View when i run the process.
    Just that the task is not completing.
    when i click on the Web Dynpro button to signal the completion of the event, nothing happens.
    i have appropriately created events in both Component controller and Interface Controller and used the same in creating the Task.
    a method in Component controller fires the event and a button click in the view calls this method.
    i have successfully completed Donka Dimitrova's "SAP Netweaver Business Process Management-End-to-End Process Implementation Sample " but when i tried my own with slight modifications, it is not working !!!
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f
    regards,
    -Amol Gupta

    Hi Amol,
    The way you described the things, I dont see any problems. Just to make sure that you are triggering the right event that you mapped as completion event for the task, try to cross check once again and see if the correct event is getting triggered. Also try to put some messages for debugging to see till where the control goes.
    Regards,
    Arafat

  • Push data/ trigger event in Web Dynpro app

    Hello All.
    I'm a newbie with web dynpro.  I have a need to “push” information to a web dynpro application.  Is there a way I can trigger an event in web dynpro to refresh the screen from another application running on the Netweaver J2EE?  Is it possible to implement an ActiveX or AJAX  application to retrieve server data and communicate with a web dynpro app running on the enterprise portal?
    Your help will be appreciated.
    Mohan

    Hi,
    You can search for portal eventing...subtscribing event and unsubscribe it etc.
    Regards,
    Kiran Chennapai

  • What is difference between  Service map iview and Workset Map iview

    Hi Experts,
                        Can anyone tell me the difference between  service map iView and Workset Map iView.
    When I am creating these iViews, its seams both are same. I canu2019t find difference still, can anyone help me out of this
    Thanks in Advance
    Janardhan

    Hi,
    Service Map Iview:The Service Map iView is an ERP-specific variant of the portal Workset Map iView. It serves as a central point of entry and guided access to the services of SAP service modules such as the Manager Self Service (MSS) module, or the Employee Self Service (ESS) module.
    Workset Map iview:A Workset Map is the equivalent of a site map, providing users with explicit information on the functionality that is available in a given workset. It is based on an iView, and serves as a central point of entry and guided access to the contents of a workset.
    if you want to more info pls go thr the below thread
    Workset Map iView
    i hope it will help you
    Thanks,
    Sreeni.

  • Step by step Installation ON ABAP,XI,Web dynpro ABAP and JAVA On my PC??

    Hello Friends,
      I would like to Install SAP-ABAP ,XI ,Web dynpro ABAP and Web dynpro   JAVA    on my PC.
      Please Let me know What configuration is required for all the above.
      Please Give me the Step by step procedure for all the above.....??
      I want to Instal all the above and Give me suggestion on that???
      Can I use Vista for Sap Installation????
    It would be great If you send the step by step procedure to my personal ID
    [email protected]
    Thanks in Advance
    Preethi D

    Hi,
    Step step description here is not possible.
    It always advisable to go to service.sap.com/instguides.
    slow and steady wins the race.
    good luck.
    It's advisable to have quad processor with atleast 8GB ram.
    If it's a nw04s then at a shot you can select AS ABAP. JAVA, EP, PI(XI) and proceed.
    hope this helps you.
    reward suitable points.

  • Authorization objects in web dynpro ABAP and SU24 transaction

    Hi,
    I have created a new authorization object to check a storage location for certain activities. I have added the authorization object in a specific web dynpro ABAP and I have created a new role in PFCG for my web dynpro ABAP.
    The organization level for storage location is not recognized in PFCG. Someone told me I have to maintain my authorization object in SU24 as it is done for transaction.
    I wanted to maintain my web dynpro in SU24 but I found no way to do that.
    It seems that we can maintain authorization for TADIR service and in those services there is R3TR WDYA but when I use the search help for  OBJ_NAME I don't find may web dynpro ABAP. I suppose I have to create a TADIR service for my web dynpro ABAP or something like that but I don't know how to do ?
    Does anybody  know how to deal with specific authorization in web dynpro ABAP and t ohave the organizational level recognized in PFCG.
    Thanks for your help,
    Emmanuel

    Hi,
    Please RUN the function module as "AUTH_TRACE_WRITE_USOBHASH" with following parameter
    R3TR
    "custom webdynpro application"
    SERVICE TYPE and Service can be kept blank
    after this try  SU24 it will be available in SU24 list.
    Thanks & regards

Maybe you are looking for

  • Ship-To Address/Performance Location

    Hi experts, i'd like to know the origin of the default values into the tab "Ship-To Address/Performance Location". Are these valuesthe same values which are in the "Plant" into Organizative Structure (ppoma_bbp)? Are they replicated on the back-end?

  • How do I enlarge font in toolbars?

    I have a visiion problem and suddenly all the font  toolbars and icons decreased.  There used to be a plae in System Prefs called Appearance where I could change it but it is not there now. I downloaded  a Safari updaate recently....is this what caus

  • Using FOreign key constraints on tables in database.

    I am student and novice in the field of ORACLE and PL/SQL and Database Creation. I had created a database consisting tables and got problem while applying foreign key constraints. CUST_MSTR CREATE TABLE "DBA_BANKSYS"."CUST_MSTR"("CUST_NO" VARCHAR2(10

  • Multiple music drive sources messes up song locations in iTunes XML library

    I have had my music on an external hard drive for a number of years now. Most of my music library is on that drive (75+GB), but some (including all purchased stuff) is on my local C: drive. I often launch iTunes without my external drive (USB) connec

  • Problem installing windows 7 boot camp(cd/dvd drive)

    This happens right away after clicking to install now(see picture). The window takes me to where it has to find a cd/dvd drive and it can not find any. I can't advance further into the installation because of this. Anyone got any clues as to how I ca