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
Similar Messages
-
Web Page Composer - Web Form for exposing iViews and External Web Pages
Hello SDN Community,
This forum thread is intentionally created to collect your feedback and ideas regarding the Web form for exposing iViews and external Web pages.
With this new Web form you are able to specify height and width of the iFrame, in which the corresponding iView/external Web page will be displayed on the particular WPC Web page.
For more information regarding this new Web form and its features and to download it visit this address: https://wiki.sdn.sap.com/wiki/display/KMC/CustomizingtheWebPageComposer
Your oppinon and constructive suggestions will help to evolve the Web form further and facilitate the community to create more sophisticated and enhanced versions of this basic reference implementation. Feel free to contribute also your version and discuss in public.
Here are some basic questions that can guide you:
1. Does this new Web form help in your particular scenario? How?
2. How would you rate from 0 to 5 your satisfaction with this particular Web form?
3. What can be improved in the Web form?
4. Do you miss something from documentation point of view?
Explore the new WPC wiki pages - find valuable the information regarding WPC at one place, download new Web forms, and feel free to contribute.
[Web Page Composer Wiki|https://wiki.sdn.sap.com/wiki/display/KMC/WebPageComposer]
Best Regards,
WPC team @ SAPHello!
I have installed your component. When I try to create a new component in WPC with this form, portal throws an exception
Full Message Text
05:54_30/07/09_0005_21710350
[EXCEPTION]
java.lang.NullPointerException
at com.sap.nw.wpc.editor.EditorBean.updateDocumentFromContext(EditorBean.java:336)
at com.sap.nw.wpc.editor.EditorBean.getPreview(EditorBean.java:600)
at pagelet.editor._sapportalsjsp_editor.subDoContent(_sapportalsjsp_editor.java:1802)
at pagelet.editor._sapportalsjsp_editor.doContent(_sapportalsjsp_editor.java:58)
at pagelet.editor._sapportalsjsp_editor.service(_sapportalsjsp_editor.java:38)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:360)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sap.nw.wpc.editor.EditorTool.doContent(EditorTool.java:55)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Do you have any ideas? I am running EP7 SPS 15
Thanks in advance -
Portal Eventing between WDP Java iView & non-WDP 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 is 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?
Edited by: CloudSOmnislash on Apr 8, 2009 6:06 PMKumar, Rui,
I have all my code inside a web dynpro component. All that I have in dynpro to work with (or that's what I know so far) is a WDPortalEventing object that I can use to access the fire, subscribeEvent and unsubscribeEvent methods. I still haven't found a way to get to the actual EPCM object that the Portal runtime gives you through javascript. And even if I get there, how am I supposed to write javascript in my dynpro code and later pass the value stored in the client data bag to the web dynpro context ?
Simon,
I had tried a small app yesterday and it didn't work when the iViews were not assigned to the same page. I will see if I can change my code anymore and get it working. I will make fresh posts to this thread as and when I find anything that works. In the mean time, if you have webdynpro iViews that talk to each other across pages, do let me know how you are doing it!
Thanks for your replies...
- Navneet. -
Portal eventing between Java WD iview to ABAP WD iview?
HI Experts ,
I have requirement on which,
The manager can select an employee from the EE Search iView (Object and Data Provider). All other iViews react on the selection and display data of the selected employee. Technically the personnel number is transferred from the search iView to the other iViews on the portal page, also to the related activity iView. This mechanism is called Eventing. The applications, started via the related activity iView, are launched with the personnel number as parameter. With other words the application, e.g. Manage Objects on Loan, can be directly started for the employee selected from the EE Search iView.
The Employee Information page is based on WD Java whereas the Objects on Loan application described in this specification is based on WD ABAP...........Due to different technologies used how to do the Pernr number transfer between these iviews?
If anybody have done this let me know the steps
Thanks in Advance,
DharaniHi Dharani,
You can use portal events to enable iViews running on the same page to communicate with each other. You just have to find out which event is fired by the WD Java iView and then you will have to register and handle the event in your WD ABAP application : http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
You can use HttpFox (firefox plug-in) to find the details of the fired event (name, namespace...) by looking at the eventQueue parameter in the HTTP POST request.
Regards,
Pierre
Edited by: Pierre DOMINIQUE on Jul 9, 2009 11:16 AM -
Portal eventing between WD java and BSP popup
Hi guys,
I have a WebDynpro application that opens a BSP popup like that :
WDPortalNavigation.navigateAbsolute(
wdContext.currentURLElement().getEvaluationURL(),
WDPortalNavigationMode.SHOW_EXTERNAL,
"directories=no location=no menubar=no resizable=yes status=no toolbar=no",
"evaluationdeformation",
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
urlParam.toString()
When the popup is closed, I want to update the content of my webdynrpo application. I tried using portal eventing but it didn''t worked because the popup doesn't seem to know its opener....
Is anybody have an idea ?
Thanks in advance.
Julien.Hi Julien,
have you made sure that your BSP application is using EPCF? There is a flag you need to set to X in your BSP app for this to take effect. Also, you can not add javascript to a WD app, so calling the window.opener will not make any difference. However, you can subscribe to an event raised by another application in your WD app. It is possible to raise events between windows, one being a bsp and the other a WD or portal application. Check the following threads.
[Portal Eventing: EPCMPROXY calls between two browser windows;
[Client side eventing between MSS teamviewer and BSP application;
Cheers,
Dion -
How to use Web Dynpro Java isChanged and isChangedByClient
Hello,
I have read thorugh a lot of documentation, threads, ... --> but the picture is not geting clearer fro me.
We have Web Dynpro Java Application (on Netweaver 7.0 SP12) running in Enterprise Portal. We need to tell the portal work protect mode, that we have unsaved changes (how to do this is clear).
I am struggling with figuring out, that my Web Dynpro Context has unsaved changes. I found the two change-indicators isChanged() and isChangedByClient(), which already confuses me a little bit.
Anyway, this is what I have figured out so far:
I am calling wdContext.currentContextElement().isChangedByClient() to figure out changes and when a Save operation has been completed sucessfully, I call wdContext.currentContextElement().node().getContext().resetChangedByClient(). This works for some of the changes made by the user.
I then tried calling wdContext.nodeABC().getElementAt(i).isChanged() for all nodes of my Web Dynpro Context, but this results in detecting changes before the user ha done any interaction.
Implementing an own change tracking (i.e. by adding a changed-Attribute to each context node) does not seem a viable option for me.
So these are my questions:
- Does anyone now a working pattern relying on those chnage indicators ?
- Does anyone now how to reset the isChanged indicator (or when it is resetted by the framework) ?
Any help appreciated.
Thank you,
StefanHi
Check this link
Re: How to keep isChangedbyClient flag set between roundtrips?
http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html
Thanks -
Upload File in Web Dynpro Java CO and store it in the context
Hi Guys!
I have developed a web dynpro CO form, and I need to be able to upload a file in an action and then be able to download that file in further actions.. I have evaluated saving the file in the backend via RFC, in KM and also creating a CAF project.. but I think there must be a simpler way : saving it in the context of GP.
Does someone knows if it is possible to do that?
best regards,
Marco.Hi Marco
In webdynpro java, there are UI elements File Upload and File Download. You can use these UI's to upload and download attachments. From NetWeaver 7.0 onwards, you have IWDResource interface which can be used to upload attachments. But in GP if you want to pass attachment to another action you must use Binary as a data source. Bind the File upload UI element to Binary. In addition, you should define input and out parameters in getDescription method.
Thanks
Ghazanfar -
Portal eventing between bsp and VC
Hi everybody
I need to use portal eventing to have a bsp and a VC iview communicate.
The bsp iview should be displayed within the VC iview as html view, raise a portal event with some sort of parameters inside, and then be dynamically hidden by the main iview.
I have often read about VC and bsp exchanging signals when belonging to the same page, but will this work even with bsp iview within VC iview? Has anyone ever achieved this?
thanks
VincenzoHello Vincenzo,
It won't work, since the html view is implemented as an iframe on top of the model. If you want to use portal eventing, you should have the iViews inside a portal page which acts as a container and you also have the entire portal framework working for you.
Regards,
Natty -
Web Dynpro Java Internationalization and backend ABAP function modules
Friends,
I have a requirement where I want my Web Dynpro Java application to support BRAZIL and CHINESE.
I have been through the sample programs and tutorials and I understand how to support my application in these 2 languages. The challenge I am facing is how to communicate the language to the backend code (ABAP function modules) so that the function modules can written language specific error messages and texts.
I searched SDN but could not find anything. Your help is appreciated.Prashant,
When you are configuring JCo connection in WebDynpro Content Administrator, just left language settings blank for metadata connection (you may do the same for data connection). Now WD will supply language of currently logged-in user when obtaining connection settings from system landscape and you'll get necessary functionality.
By default locale of user determined by parameter sap-locale (sap-locale=de_DE for example), settings of user's browser and lastly preferences of user stored in UME.
Btw, BRAZIL (or Portugees for this matter) is not fully supported language by SAP, so R/3 side may be not translated or partly translated.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
Administration differences between an As Java system and an As ABAP system?
Hi, I'm not that familiar with SAP systems that are As Java based only, so apologies in advance if I ask real stupid questions here!!
Can someone please explain how one logs onto an As Java only system?... ie without the ABAP stack does one still use the SAP logon pad or am I getting confused here totally???
Also how does one do transports in an As Java system?
If you could send me a document that explains the main differences between an As ABAP system and an As Java system, particularly the differences in administrating these systems that would be very useful. My email address is [email protected]
Many thanks
AshHi,
Can someone please explain how one logs onto an As Java only system?.
You can login through browser, use NetWeaver Administrator for most of your activities. There is also Visual Administrator/ Config tool etc these have seperate GUIs.
It would not be easy to list out the options but i suggest you read understand info from help regarding the details below so that you can administer Java servers:
Visual Administrator
NetWeaver Administrator
Config tool.
SDM
With the knowledge of the tools above you can start of administrating Java servers.
Also how does one do transports in an As Java system?
You install Portal on Java server and then do transports. You should be having a system administration role.
Please do a search in help.sap.com and you will find loads of data on WEBAS Java administration.
Thanks & regards,
Vijith -
Hi,
I read around that portal eventing can be done only on the same page and not between pages, is this correct? if so, how do we make events between pages after all?
Thanks in advance,
AviadHi Aviad,
Portal eventing takes place between different iviews of the same page only.
To pass between values between different pages, you can store the required value in a Portal Request object or Session object.
Also you can refer to this link,
iView to iView communication with EPCF
This link contains the code to establish connection between pages .Finally obtaining paramaters through request.getParamater().
Hope this helps,
Regards
Uma.
Note: It will be better from next time if you could post portal related queries in the EP forum to get quicker responses and ep related guidances. -
Difference between interfaces in Java API and user defined interfaces
Is there any differences between the interfaces (such as KeyListener, ActionListener and EventListener etc.,) in Java API and the user defined interfaces.
The user defined interfaces seems to be empty without any functionality (except its constant and method declarations). But the interfaces in Java API seems to have some functionality behind them, since they route the device events to the programs.
Actually what is happening behind the Java API's interfaces?
Please clarify.Ummm, no they are not (or at least some of them are not). Also, some things we support now we may not have supported in a previous release.
If you look at the section 2 (Working with TimesTen Data Stores0 in the TimesTen Java Developer's Guide and look at the sections:
TimesTen JDBC Extensions
Additional TimesTen classes and interfaces
then you will see the extra functionality documented there. Of course, if you do not need any of this functionality then you can simply treat them as the base classes from java.sql and they will work fine so it is easy to make most of your code generic.
Chris -
Compatibility issues between Berkeley DB Java Edition and Berkeley DB
We are trying to use both Berkeley DB Java Edition and Berkeley DB (Java/C) in one of our projects. However, they share the common classes (i.e. EntryDingin.java), but with their own different impementation. Is there any reason that they have to share the same names/packages? Can we request to have the shared java classes going into different packages?
Thanks
YaoHello Yao,
You're correct and the DB and JE products were not designed to run under the same classloader in the same JVM. It is very unlikely that we'll be changing the package names, since that would be very disruptive and yet have no value for the overwhelming majority of users. We will note your request, however, for future reference.
The two workarounds I know of are:
1. Use a separate classloader for the use of each product.
2. Use a tool such as jarjar links (http://code.google.com/p/jarjar/) to rename the packages in one or both of the products.
Option 2 is not something we (the JE team members) have experience with, but it was used successfully by a JE user. The user also pointed out a bug in the jarjar tool to be aware of: http://code.google.com/p/jarjar/issues/detail?id=21
--mark -
System Connection Tests
You can test the connectivity to the backend application represented by the current system object. Choose the relevant tests.
Note: The test is based on the properties currently defined in the system object. It does not check if the system properties are correct.
System Connection Tests
Test Name
Description
Status
SAP Web AS Connection
Tests the connection to an SAP Web Application Server
ITS Connection
Tests the connection to an SAP ITS server
Connection Test for Connectors
Tests the connection to a backend system using an associated connector
Test
Clear Results
Results
SAP Web AS Connection
Test Details:
The test consists of the following steps:
1. Checks the validity of system ID in the system object.
2. Checks if the system can be retrieved from the PCD.
3. Check whether a SAP system is defined in the system object
4. Validate the following parameters: WAS protocol; WAS host name
5. Checks if the host name of the server can be resolved.
6. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
7. Checks HTTP/S connectivity to the defined back-end application
Results
1. The system ID is valid
2. The system was retrieved.
3. The system object represents an SAP system
4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name
5. The host name ssprdxi.stylespasapnet.com was resolved successfully.
6. The Web AS ping service was pinged successfully.
7. An HTTP/S connection to was obtained successfully.
ITS Connection
Test Details:
The test consists of the following steps:
1. Checks the validity of system ID in the system object.
2. Checks if the system can be retrieved from the PCD.
3. Check whether the system object has a valid system alias
4. Check whether a SAP system is defined in the system object
5. Validate the following parameters: ITS protocol; ITS host name
6. Checks if the host name of the server can be resolved.
7. Checks HTTP/S connectivity to the defined back-end application
Results
1. The system ID is valid
2. The system was retrieved.
3. Retrieval of the default alias was successful
4. The system object represents an SAP system
5. The following parameters are valid: ITS Protocol (http) ITS Host Name ()
6. The host name ssprdxi.stylespasapnet.com was resolved successfully.
7. An HTTP/S connection to was obtained successfully.
Test Connection with Connector
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure that Single Sign-On is configured correctly
regards
AntonyHi Stefan,
This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
Regards,
Leo -
Uploading CSV File into Web Dynpro Java Table and Write back to a Database
Hi Gurus!
I would like to upload a csv file and read the content into an UI table element.
Then, I need to write the uploaded file back to a database. I'm using NetWeaver 2004s.
could you please provide advice for both, uploading and wirting to databse (e.g. maxDB or oracle), since I'm quite new in WDJ.
thanks in advance.
farid
ps. helpfull answers will be rewarded with points!Hi ,
have look at this blog
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6603. [original link is broken] [original link is broken] [original link is broken]
Have a look at this links.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0d9336b-b4cf-2910-bdbf-b00d89bd2929.
Re: Popup Internal Window - data type IWDWindow not available
Regards,
krishna.
Maybe you are looking for
-
How do I set up 2 iphones identically?
I have 2 iPhones because I work internationally and roaming is way too expensive. But I would like them both to be set up the same. How do I do that?
-
Error while executing the report FAGLB03
Hi, i am getting the below error while executing the report FAGLB03 and double click on the balances to view the report on line item wise. There is no active info structure for field catalog SAP_FI_DOC_003 Message no. Q6504 Diagnosis The system wants
-
I paid for Mountain Lion about 2 months ago and my Hard drive just crashed. Is there a way i can reinstall Mountain lion without having to pay again?
-
I just upgraded to a new iMac. My entire iphoto library was transfered. Initially all photos appeared but they are now missing. The photo count still shows 3748 photos but they will not open. If I click on a photo thumbnail or event all I see is a la
-
Modify the deafult DocDueDate in OQUT when adding a sales quotation
Hello, I want to set a different default value in the field "DocDueDate" in OQUT. The default value is always four weeks later then the DocDate or TaxDate. I want the DocDueDate for example just to weeks later then the DocDate and not four weeks. Do