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
Similar Messages
-
Call WAPI error in web dynpro app
I write a very simple demo workflow, there is a approve step that call a web dynpro app.
I pass workitemid to my web dynpro program, then It call fm SAP_WAPI_RESERVE_WORKITEM and SAP_WAPI_WORKITEM_COMPLETE to comlete workitem programmly.
In SAPGUI workplace ,I receive a message ,then I execute workitem,web dynpro UI page is showed.When I execute approve operation(call two wapi fm above in approve event handler),SAP_WAPI_RESERVE_WORKITEM and SAP_WAPI_WORKITEM_COMPLETE's export parameter "return_code" is 1.
But I test/execute my web dynpro program standalone in workbench,all is ok,demo workflow continue.
I have spent a plenty of time for it,help me!
I'm sorry for my poor english .Thanks for your advice. I am a new one for SAP development.
According to your advice, I use SAP_WAPI_DECISION_COMPLETE instead of SAP_WAPI_RESERVE_WORKITEM and SAP_WAPI_WORKITEM_COMPLETE, I get the same result.
test web dynpro application standalone, it's ok;in SAP workplace ,SAP_WAPI_DECISION_COMPLETE method's exporting parameter "return_code" is 1.
My code is following :
CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
EXPORTING
WORKITEM_ID = l_wi_id
LANGUAGE = SY-LANGU
USER = SY-UNAME
DECISION_KEY = 0001
DO_COMMIT = 'X'
IMPORTING
RETURN_CODE = returncode -
Navigating from one Web Dynpro app to another not belonging to same project
Hi All,
I wanted to know is it possible to navigate from one Web Dynpro app to another which does not belong to the same project. if yes how.
Regards
SidHi Siddarth,
If you want provide the interaction between two Web Dynpro applications then you must develop those projects as Development Components as DCs provides the reusability of the components created.
You can through these link to find out more information:
Where to start DC creation ?
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383</a>
Server Side Eventing:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3</a>
Regards,
Jhansi -
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. -
How can I automatically refresh a Web Dynpro App every 5 minutes
Hello,
I have a web dynpro that is calling a web service. I need that this web dynpro app auto-refresh (recall the web service and update the information) without any user interaction every 5 minutes.
How can I do this?
Thanks & Regards
SUyou can use timedtrigger UI element to achieve it.
Edited by: John Wu on Jun 21, 2011 5:33 AM -
Date format problem in web dynpro java
Currently, the date format that gets displayed in our webdynpro java application is MMDDYYYY...i am assuming this is because the web dynpro application has language resource set to en_US as its Current locale in the web dynpro deployed content section. Howver i want it to display as DDMMYYYY. I have changed the default properties in visual admin for web dynpro from en to en_GB however this has no impact what so ever as the current locale is always set to en_US even after the change so am wondering this property is hidden some where else. Now the web dynpro i am talking about is a adobe portal application. Could you give me any pointers as to where else i can look for or how i can change the current locale properly ??
Regards
KalThe date format in the Web Dynpro Java Application depends upon locale. At runtime WDJ will do the following process to get the current locale for the date format to be determined.
1. First the WDJ Application will check for the locale set for the user in UME.
2. If there is no default locale in UME, then the it will check for the locale in the in the browser which in most cases by default is en-us.
3. If not, then it will check for the sap.systemLocale in the Propertysheet default of Visual Admin
4. If there no locale specified in Visual Admin, itu2019s taken from the WAS JVM
Please check the below SAP Note
http://help.sap.com/saphelp_nw04/helpdata/en/a0/58db515b95b64181ef0552dc1f5c50/frameset.htm
Regards,
Chandran S -
How to change the web page title of a web dynpro app?
Hello,
I would like to change the HTML page title of a web dynpro application without renaming the application component itself - but how?
Thanks for your comments!Hi M Walter,
Assuming you are using Web Dynpro Java, you can change the title of the Web Page for Web Dynpro App by adding the title to the main window of your app.
Go to Windows and open the properties. There will be a field called 'title'. Give the title you want, save, build, DC->Build and deploy.
The title you gave to this Window will be displayed as the title of your Web page.
Regards,
Ajay -
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. -
Show BI report in a Web Dynpro App
Hello,
I would like to insert a BI report into a Web Dynpro App, this is because I have some specials requirements like using a dynamic tree for selecting the user desired report and pass two parameters to this report via URL for example, this is why I cant use standard BW iView to show this reports.
Any hint, suggestion or advice is really appreciated here.
Best regards.Hi Ramien,
See this link,
Re: BW server details from webdynpro
Hope this helps you
Regards
Rohit -
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 -
How do I undeploy/delete Web Dynpro App
Hi,
I created a Web Dynpro App in NWDS for some testing. Now I want to delete this App from Server but I cannot find any button saying undeploy or delete.
Can anyone tell me how I can delete a deployed Web Dynpro App?
Cheers
ChristianHi Christian,
You definitely should! Keep in mind that the entries are NOT sorted alphabetically, so you have to go through the complete list!
You also can try to remove it via VA, there via "Services" -- "Deploy" -- choose your app -- "Remove". I'm not sure if this really removes everything from the server. You may give it a try, but as said, removing it via SDM is the most original way.
Hope it helps
Detlev -
How to read data from ITS to Web Dynpro
Dear Experts ,
I have requirement where User clicks on specific Shopping cart .On click of it
Web Dynpro Application containing Shopping cart details should open .
Can any one please tell me how can I do so ? If I can pass some data appended to my web Dynpro URL , How can I read URL ? Is this correct way ? If possible please provide with sample code ?
I feel there are other ways as well like memory id filling in ITS and reading it in Web dynpro ? Is that fair practice ?
Point I want make is I need code to read Application URL .
(eg. cl_wd_utilities->CONSTRUCT_WD_URL). How to use this ?
Points will be awarded surely.
Cheers
Parrydata lo_cmp_api TYPE REF TO if_wd_component,
lo_window_manager TYPE REF TO if_wd_window_manager,
lo_ext_win TYPE REF TO if_wd_window.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = '<Your WD application name >'
IMPORTING
out_absolute_url = lv_root.
This will give you the root URL , then you need append taht with teh parametres like following
concatenate lv_root '?sap_boid=' lv_boid '&sap_publ=' ls_header-bid_type into lv_root.
and then you can fire an external window with the values
lo_cmp_api = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_cmp_api->get_window_manager( ).
lo_ext_win = lo_window_manager->create_external_window(
url = lv_root
title = 'MyApplication' ).
Thanks
Anzy
(Award points for useful answers ) -
Possible to run web dynpro apps without a portal??
Hi
Is it possible to run Web dynpro apps on a WAS without a portal?
ThxAh,
Absolutely possible.
Use url like
http://host:port/webdynpro/dispatcher/com.your-company/yourappdc/AppName
in your browser address bar
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
How to close portal page by Web Dynpro App
Hi There,
I would like to close a portal page by clicking a button of a Web Dynpro App which is inside an iView on that page.
Is this possible or not?
BertilBertil,
First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
In WebDynpro you may use <b>Exit plug</b> on interface view with parameter <b>Url</b> (notice the case) of type string.
Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
VS -
Hi All,
I have created two web dynpro application iviews on the same page.
Now there is a button on the first application and when that button is pressed then I am triggering an event TRIGGER from it using method FIRE.
There is a text edit element on the second application.
I have registered the event TRIGGER in the second application in method WDDOINIT using method SUBSCRIBE_EVENT and assigned an action RECEIVE to it.In the method ONACTIONRECEIVE I have set data to be displayed in the text edit element.
However the above scenario is not working.
In methods subscribe_event and fire there is a parameter to be passed which is PORTAL_EVENT_NAMESPACE.What exactly is this parameter and what value to be passed to it.
Please provide any source code if any.
Thanks in advance
Aman GuptaHi Aman,
If you are still not able to do the Portal eventing then to make portal eventing work you should access portal using FQDN (fully qualified domain name).
Check Sap help for [Fully Qualified Domain Names |http://help.sap.com/saphelp_nw70/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm] also check the SAP note 654982.
Maybe you are looking for
-
The iPhone I got was on Version 6.1 when 6.1.2 had already come out. Is that because it was shipped at the time was 6.1 was the latest? I thought that I would receive the phone with the latest iOS.
-
What Procedure do I use to Hook up Printer
My MacBook cannot find my Canon PIXMA MX432 It was working, I changed the ink cartridge and now my computer says it cannot find it. I have turned both the computer and printer on and off several times. I went to Printers and Scanners under system p
-
Audio help for my 2001 Kia Sephia
Hey all, I'm a computer specialist, so when it comes to cars I'm an absolute novice. Long story short, my cars audio system sucks, and the guy who owned my car last did a great job of screwing the wireing up a lot, so I would not trust myself to inst
-
Crystal Reports 2008 Server and MySQL DataBase source for reports
Hello, I am having an issue with crystal reports server 2008. I have created a report on my local machine with crystal reports and the datasource is a ODBC connection to a MySQL database. The report works fine on my local. if i publish to the Crystal
-
Flash CS4 IDE based project and embed metadata tags
I posted this in one of the other sub-forums before I realised this one was available. I am moving over to using the Flex based embed metadata tags to import assets into my Flash CS4 IDE based project. This is working very well but I have hit one sma