Closing the NonModel External Window in Webdynpro
Hi,
I have a Webdynpro Application, in which i used to call the webdynpro application in a Separate external window by using the below code.
String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
String url = URLGenerator.getApplicationURL(depObjectpart) ;
*// Code to Popup the View in External window by calling the Application *
window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Update View");
wdContext.currentContextElement().setCtx_WindowInstance(window);
window.setWindowSize(625, 225);
window.setWindowPosition(50, 75);
*window.setTitle("Update View"); *
window.show();
This opens the Separate external window and after editing some fields, I need to Update the DB and close the window.
When i try to use the code,
window.destroyInstance();
The window is not getting closed. I have used the window instance as the static IWDWindow window, still i am not able to close the window.
Anyone Please let me know how to close the External Non Model Window.
Thanks and Regards,
Sekar
Hi Sekar,
my suggestion is to open another window that contains html code which invokes opener . close() on the parent window - your window to be closed. This worked for me and made my day.
I open an HTML file created as IWDCachedWebResource as nonModalExternalWindow over a LinkToAction which invokes onActionClose. There is a second window opening for a short moment which will be closed by its onLoad event.
The HTML code is basically sporting a < script >-section which contains a call to opener . close().
regards,
Christian
Ps: sorry, I can't post the code - it simply does not work... Had the same problem days ago with another thread .
Similar Messages
-
Create external window with webdynpro application
Hi,
is it possible to create an external window with another application?
The method if_wd_window_manager~create_window_for_cmp_usage would be great. But this method create only a modal popup.
Greetings
MarcusHi,
We can create external window using below method.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window(
url = l_url( "URL of the webdynpro application")
title = 'Submitted candidate'
has_menubar = abap_false
has_toolbar = abap_false
has_location = abap_false ).
lo_window->open( ).
Regards,
Lakshmi. -
Create External Window in Webdynpro for Abap
I am creating an external window using method CREATE_EXTERNAL_WINDOW. The componentcontroller context and the assistance class attributes are not available in the Handledefault method of the external window. Is there a way to pass data to the external window without using URL parameters?
Thanks
Cindy>@Thomas: with all your wonderful eLearnings on WDA is there one which covers this in any depth? As it would be nice to point people to it.
No I can't say that I have ever created something specifically on this. The ACFUpDownload example is closest simply because I use the cache table is a similiar way, althought I hesitate to recommend that eLearning in this situation becuase that aspect isn't central to the eLearning and it might just confuse things further.
>don't forget about the possibility of database persistence of the data either -
That was actually what I was talking about in server cookies as well. Server cookies are something that was originally created for BSP, but work fine in WDA as well. They are just a cluster table where you can store any data you want and access in another session via a key. The nice thing about server cookies is that there is already a help class for read/write and batch job that can be scheduled to clear out expired entries.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm -
Wireless mouse and Keyboard Issue after closing the lid - external display
Can anyone give any insight. Recent purchase of a new Late 2008 15" MBP. I have connected it to an external 24" Apple monitor on my desk and use a wireless mouse and wireless keyboard on my desk top. I have configured the laptop to wake on bluetooth devices. So here is the problem: The laptop when the lid is up recognizes the bluetooth keyboard and mouse. I close the lid/screen. Laptop powers down... the after several seconds I move the mouse and the laptop comes alive... But after that there are no bluetooth devices attached. When I use the mouse, I get "connection lost" with a white figure of the mighty mouse on the screen. The wireless keyboard is not there and I have to open the lid and manually find the mouse and reconnect. The keyboard seems to work however....
Apple..... any thoughts..... anyone?????Hi Stentdoc; I'm thinking, 'connection lost ~= sorta low AA batteries in the Mighty Mouse? (I would put in fresh AA batteries in the mouse and keyboard, to eliminate as an issue that the 'connection lost' is due to low batt voltage; that this is causing the failure to wake.) ... then, in System Preferences > Hardware > Energy Saver, settings for Power Adapter > Sleep, set to "never" for "Put the computer to sleep when it is inactive for ..." to eliminate that as a conflict when trying to wake with bluetooth from sleep induced by closing the lid ...
Check your current "Sleep" setup (I left my MBP as "3")
go to Utilities > Terminal
After you launch Terminal, the first step is to determine which sleep mode your Mac is currently using. You can both view and change the sleep mode using the Unix program pmset. To see your current settings, type (or, copy and paste)
pmset -g | grep hibernatemode
press 'enter'
You should see something like this:
$ pmset -g | grep hibernatemode
hibernatemode 3
So your machine is using mode 3 ... thanks to the documentation for the handy Deep Sleep Dashboard widget, which puts your machine immediately into hibernation mode (so you don’t have to yank all the power sources to invoke it):
* 0 - Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.
* 1 - Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.
* 3 - The default mode on machines introduced since about fall 2005. RAM is powered on while sleeping, but RAM contents are also written to disk before sleeping. In the event of total power loss, the system enters hibernation mode automatically.
also, I enabled this (to change back, input "lidwake 1":
go to Utilities > Terminal
type in sudo pmset lidwake 0 then "enter"
it will ask for your password. type it in, that's it!
Now, when your computer is sleeping with the lid closed, when you open the lid nothing happens until you press any key ... nice: keeps it off when accidentally opened, like in a backpack?
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort. -
Generated JNLP and closing the original browser window
Hi All, This is my first post so bear with me. Here is my problem.
I am using Web Start for an application.
I need to check to see if web start is installed or not.
If it is NOT I need to auto-install
if it is I need to call a servlet that dynamically generates the jnlp with the user that I passed in as <arguments/> maybe other arguments in the future also
I need to shut the original browser window
I will use this servlet in multiple web apps
I have it working like this but I don't think it is clean enough
I call a servlet with the syntax checkJREServlet?USER=username
this servlet writes out:
<html>
<body>
<h1>Installing Java Runtime</h1>
<OBJECT
CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="0" height="0"
codebase="http://<myservler>/<plugins folder>/j2re-1_4_2-windows-i586.exe#Version=1,4,2,0">
<PARAM NAME="code" VALUE="redirectAndClose.class"> //my applet class
<PARAM NAME="archive" VALUE="RedirectUtil.jar"> //the jar where my applet class is stored
<PARAM NAME="archive_cache" VALUE="RedirectUtil.jar">
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME="where_to_next" VALUE="http://<myservler>/<mywebapp>/openAppServlet?USER=username">
You did not install Java.
<p>Please use the <b>Back</b> button to return to the previous page.
</OBJECT>
</body>
</html>
I have redirectAndClose which is:
import java.applet.Applet;
import java.net.URL;
import java.net.MalformedURLException;
import netscape.javascript.*;
public class redirectAndClose
extends Applet
java.util.Timer timer = null;
int seconds = 5;
public void start()
try
getAppletContext().showDocument(
new URL(getCodeBase(), getParameter("where_to_next")), "_blank");
//now we have to close ourselves in 5 seconds
timer = new java.util.Timer();
timer.schedule(new java.util.TimerTask()
public void run()
timer.cancel(); //Terminate the timer thread
destroy();
, seconds * 1000);
catch(MalformedURLException e)
throw new RuntimeException(e);
public void destroy()
super.destroy();
//close this window because we don't need it
JSObject win = (JSObject)JSObject.getWindow(this);
win.eval("window.opener=self;self.close();");
If try to close without a timer my entier session gets killed, including my webstart app that the openAppServlet wrote out the jnlp for
I hate this because it is not definite. I want to DEFINITELY know when my webstart app is open and I can close this original window. Like a whenWindowExists then close me but I have no clue how to do this.
The "where_to_next" location is a servlet that will dynamically build a jnlp file specific for each web app building it from parameters in web.xml for each individual web app. Basically I will have to store the actual name of the class, the jar href's I will be needing, title, vendor, description, basically everything that can be different.
So what I need is some kind of library so I can include it in multiple web apps EASILY. I don't want to have to write a document on how to include this thing. It should be self explainatory. I originally just mapped to the first servlet in my web.xml and then included the jar file but it appears to be non-existent in my project. Maybe some suggestions on what others would do may help me.
Thanx in advanceI don't want to use a timer because who knows if the servlet that writes out the dynamic jnlp will get hung up for a little while or any number of other reasons. If that did happen the timer would kick off and close my web start app. I cannot have this.
-
How to implement the File Browser Window in Webdynpro
Hello,
The Scenario is as follows.
I need to read a file.
If the file does the exists then the user should be prompted with a file browser window to choose the location of the file.
Please can you let me know how this can be implemented.
Regards,
Vaishali.Vaishali,
See [this tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f]. I believe this is the best that you can do for now.
Vishwas. -
Hello,
I would like to close an external window dynamically by calling the method
lr_myextwin->close( ) when some event occurs.
This does not seem to work since the opened external window is still open...
Ofcourse it is possible to manally close the external window, but I would like it to happen dynamically.
Can any brief me in, if it possible.
Cheers,
GeraldHi Jagruti,
Its possible to close the external window dynamically.What you have to do is , while creating the external window instance, save the instance in the component controller as an attribute .
Which means create an attribute in the component controller of type IF_WD_WINDOW ( In this case i have created LO_POP_UP ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW
EXPORTING
MODAL = ABAP_TRUE
WINDOW_NAME = <WINDOWNAME>
TITLE =
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND =
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
CLOSE_IN_ANY_CASE = ABAP_TRUE
MESSAGE_DISPLAY_MODE =
DEFAULT_BUTTON =
RECEIVING
WINDOW = l_final_window
When you get the instance of the window.Save it in the component controller attribute.
wd_comp_controller->LO_POP_UP = L_FINAL_WINDOW.
CALL METHOD L_FINAL_WINDOW->OPEN
At later point of time , you could get this instance from compenent controller and you can call that in your method whenever and whereever necessary , so that you could close the window in a smooth fashion.
mywindow = wd_compcontroller->LO_POP_UP
mywindow.close().
Thanks
Anzy.
mark this thread as closed if this solves your problem. -
Presently, I have 4 windows opened, each with a bunch of tabs.
Since I restarted firefox this morning, one out these 4 windows, keeps on not displaying.
How do I selectivly close this only window (without closing the 3 others windows)Here is what the manpage shows:
[ps(1)|http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/p s.1.html]
state The state is given by a sequence of letters, for example, ``RWNA''. The first letter indicates the run
state of the process:
I Marks a process that is idle (sleeping for longer than about 20 seconds).
R Marks a runnable process.
S Marks a process that is sleeping for less than about 20 seconds.
T Marks a stopped process.
U Marks a process in uninterruptible wait.
Z Marks a dead process (a ``zombie'').
Additional characters after these, if any, indicate additional state information:
+ The process is in the foreground process group of its control terminal.
< The process has raised CPU scheduling priority.
<div class="jive-quote"> The process has specified a soft limit on memory requirements and is currently exceeding that
limit; such a process is (necessarily) not swapped.
A the process has asked for random page replacement (VA_ANOM, from vadvise(2), for example,
lisp(1) in a garbage collect).
E The process is trying to exit.
L The process has pages locked in core (for example, for raw I/O).
N The process has reduced CPU scheduling priority (see setpriority(2)).
S The process has asked for FIFO page replacement (VA_SEQL, from vadvise(2), for example, a large
image processing program using virtual memory to sequentially address voluminous data).
s The process is a session leader.
V The process is suspended during a vfork.
W The process is swapped out.
X The process is being traced or debugged. -
Invalid URL Exception while opening a file using external window in webdynp
I am trying open an URL ythru external window on click of button in my webdynpro.
This is the URl I am trying to open
File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
if I try to open from a from the browser it works fine but thru webdynpro it is throwing the error.
mww is another system where the file is residing.
But I am using the same techniue in other component where I am able to open file from an external window.
File://mww/Documents/Attachments/2008/10/56254/some.jpg
The only difference in the URL is {FD803B0D-157F-47F9-A5A8-C687E1DC6B96}Since this URL is generated by another system I do not have any other aletrnative but I have live with this URL.
can some body please give some idea how to fix this
if I use java.net.URLEncoder.encode() then I am not getting any error , buit file is not opening in the browser( external window)
below is the error stack I am getting.
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createNonModalExternalWindow(ClientComponent.java:1037)
at com.gis.dcww.findsrch.AttachmentView.onActionOpen_Attachement(AttachmentView.java:179)
at com.gis.dcww.findsrch.wdp.InternalAttachmentView.wdInvokeEventHandler(InternalAttachmentView.java:203)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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)
thanks
PKHi Armin, Josue
Thanks for the reply
Please note I am able to open an external window( browser ) thru my code with "File" protocol.
I have no issue opening an external window or using File protocol.
I am able to open an image/doc with a normal URL as follows
File://mww/documents/image.jpg
or
File://mww/document/temp.csv
But My URL has some system( thru Other applications ) generated charaters in it , I need get the path from DB( which I have done ) and pass this URL to the ExternalNonModalWindow as paramter.
MY code is opening successfully the external window for any URL .
but for URL which has these character { } is throwing the invalid URL error
for the below URL, I am getting the error
File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
thanks
PK
because of the flower bracket it is throwing the error.
thansk
PK -
Closing the Report Viewer causes the application to hang
Hi,
Since a few days we are experiencing some problems with the Crystal Reports viewer. When closing a report viewer in our application, the application hangs for a few minutes. The strange thing is, that it only seems to happen on Windows 7 and Windows 2008 R2 Server.
Our application with the integrated Crystal Report Viewer is running on 2 application servers :
- Windows 2008 Server, versie 6.0 Build 6002, Service Pack 2
- Windows 2008 R2 Server versie 6.1, Build 7600
Crystal Reports version installed on both servers : 12.01.0007.1144
On the 2008 Server, the application works correctly.
On the 2008 R2 server, the application hangs for about 5 minutes while closing the report preview window.
Both server have exactly the same version of Crystal Reports and the same application version.
I'm having the same issue on a Windows 7 x64 (6.1 Build 7600).
I've installed all updates and hotfixes up to SP3 Fix Pack (12.3.3.812 / 12.3.2003.812) but I'm still having the same problem.
We didn't have this problem until a few days ago, so I assume it has something to do with a windows update which only affects Windows 7 and Windows 2008 R2.
Please advice us with a possible workaround, because our application is distributed to a few thousand users ...
Some more debug info :
This is the call of from the main thread when the application hangs :
[Managed to Native Transition]
> mscorlib.dll!System.__ComObject.ReleaseSelf() + 0x5 bytes
mscorlib.dll!System.Runtime.InteropServices.Marshal.ReleaseComObject(object o) + 0x8b bytes
CrystalDecisions.Shared.dll!CrystalDecisions.Shared.SharedUtils.ReleaseComObject(object obj = {CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass}) + 0x75 bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ISCDClientDocumentEvents_EventProvider.Dispose(bool bDisposeManaged = true) + 0x1a2 bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ISCDClientDocumentEvents_EventProvider.Dispose() + 0x32 bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.DisconnectEventRelay() + 0xfc bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.InternalClose(bool bSetupForNextReport = false, bool bAutoClose = true) + 0x10e bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(bool bDisposeManaged = true) + 0xad bytes
System.dll!System.ComponentModel.Component.Dispose() + 0x12 bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ClearCache(bool clearDocument = true) + 0x9d bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(bool bSetupForNextReport = true) + 0x81 bytes
CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.Close() + 0x3f bytes
SyDelSoftControlLibCrystalReports.dll!SyDelSoft.ControlLib.CrystalReports.cReportForm.Dispose(bool disposing = true) + 0x55 bytes
SDProjects.exe!SDProjects.GUI.ReportForm.Dispose(bool disposing) + 0x38 bytes
SharedUtils.ReleaseComObject
Kind regards,
Frederic HoornaertCrystalReportsDisposeIssue.crpe.Diagnostics.0.log
--> Form3 closed
..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:39:17"
N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:17"
..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"7"
..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"6"
N/A:-1,Closing engine,Elapsed Time,"2"
..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:17"
..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"6"
..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"5"
N/A:-1,Closing engine,Elapsed Time,"2"
--> Form2 closed
..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:39:52"
N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:52"
..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"4"
..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"3"
N/A:-1,Closing engine,Elapsed Time,"2"
--> Form1 closed..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:40:29"
N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:40:29"
..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"2"
..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"1"
N/A:-1,Closing engine,Elapsed Time,"2"
..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:40:29"
..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"1"
..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"0"
N/A:-1,Closing engine,Elapsed Time,"100017"
CrystalReportsDisposeIssue.crpe.functions.0.log
0xfb8 17:39:17.871 0 PESetUserSessionInfo 0 PEUserSessionInfoW:<StructSize:262><userName:><requestID:22> IN 21 <==
0xfb8 17:39:17.871 0 0 PESetUserSessionInfo 0 OUT PEUserSessionInfoW:<StructSize:262><userName:><requestID:22> 21 <==
0xfb8 17:39:17.874 3 PEClosePrintJob report {657D0ECA-BC6A-4EC6-9476-02B77376E07C}.rpt 0 jobN:3 IN 22 <==
0xfb8 17:39:17.874 36 3 PEClosePrintJob report {657D0ECA-BC6A-4EC6-9476-02B77376E07C}.rpt 0 OUT jobN:3 22 <==
0xfb8 17:39:17.913 0 PECloseEngine 0 void IN 22 <==
0xfb8 17:39:17.913 3 0 PECloseEngine 0 OUT void 22 <==
0xfb8 17:39:17.923 0 PECloseEngine 0 void IN 0 <==
0xfb8 17:39:17.923 3 0 PECloseEngine 0 OUT void 0 <==
0xfb8 17:39:52.421 0 PESetUserSessionInfo 0 PEUserSessionInfoW:<StructSize:262><userName:><requestID:23> IN 0 <==
0xfb8 17:39:52.421 0 0 PESetUserSessionInfo 1032 OUT PEUserSessionInfoW:<StructSize:262><userName:><requestID:23> 0 <==
0xfb8 17:39:52.423 1 PEClosePrintJob report {F2574C5C-00BC-4627-9A05-B8133D6E6F7D}.rpt 0 jobN:1 IN 0 <==
0xfb8 17:39:52.423 15 1 PEClosePrintJob report {F2574C5C-00BC-4627-9A05-B8133D6E6F7D}.rpt 0 OUT jobN:1 0 <==
0xfb8 17:39:52.441 0 PECloseEngine 0 void IN 0 <==
0xfb8 17:39:52.441 3 0 PECloseEngine 1032 OUT void 0 <==
0xfb8 17:40:29.281 0 PESetUserSessionInfo 0 PEUserSessionInfoW:<StructSize:262><userName:><requestID:24> IN 0 <==
0xfb8 17:40:29.281 0 0 PESetUserSessionInfo 1032 OUT PEUserSessionInfoW:<StructSize:262><userName:><requestID:24> 0 <==
0xfb8 17:40:29.283 2 PEClosePrintJob report {C78FE11F-6465-478F-83AB-49D8F0C6D64A}.rpt 0 jobN:2 IN 0 <==
0xfb8 17:40:29.283 24 2 PEClosePrintJob report {C78FE11F-6465-478F-83AB-49D8F0C6D64A}.rpt 0 OUT jobN:2 0 <==
0xfb8 17:40:29.310 0 PECloseEngine 0 void IN 0 <==
0xfb8 17:40:29.310 2 0 PECloseEngine 1032 OUT void 0 <==
0x1568 17:40:29.315 0 PECloseEngine 0 void IN 0 <==
0x1568 17:40:29.315 100018 0 PECloseEngine 0 OUT void 0 <== -
Complete a GP after closing a pop up window
Hi all,
I have written a wd4j application to be a callable object. When a user clicks to approve the request, a pop-up window appears and ask if they are sure. Upon clicking yes, the window should be closed and the GP should be completed. I am having an issue with completing the GP, as it completes before the window is destroyed and thus throws a null pointer.
Does any one know where I should a)destroy the window and then b) complete the GP?
I am closing the pop up window from my main window, via events raised by the component controller. I have tried to move the gp.complete around, but I am not able to get it to work
Thanks
RyanTo finish the GP you should use
executionContext.processingComplete();
And to close the window popUp
Try to use this confirmation window
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(....)....
And in the actions that you decide
you should destroy with this line, when dialog its the pop up.
dialog.destroy(); -
Mantaining closed the query structure when launching a query from "query mg
Hi,
Is it possible to maintain closed the query structure window when launching a query from the "Query manager" menu?
As say, if I want to see the query syntax, I must click on the "Display query structure" symbol.
Now the query results windows, always starts with the "query structure" opened.
Thanks
AntonioHi Antoni,
Only system built-in queries allow that. We could not control this button to hide query by default. You may post it as a DRQ on this forum:
/community [original link is broken]
Thanks,
Gordon -
Hi,
I am new to webdynpro ABAP, please someone help me in how to close the extenal window, from the application running on the external window.
I am actually creating a URL for a webdynpro component and I am running it on the external window, now I want to close the application browser, so that I can go back to the source window.
Regards,
KamarajHi,
if you are using URL external window then they are two separate sessions. You have no connection as parent and child window and nothing forbids the user to go from one window to another window.
If this is really your use case and you want to close your own application/window by an button action or event handler method. Then you have to find out a way to close your application by an action.
see this forum discussion.
[FORUM|Re: Close External Window in Web Dynpro Application] -
Open URL in a new window by closing the parent window
Hi Friends,
Is there any option to open URL in a new window by closing the parent window on a button click?
Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window ' and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me ..............
Regards,
Radhikahi,
Do the following steps :
-> Make an Outbound Plug to the Window.
->Make the type of Outbound plug to Exit Type.
->Add URL of type String as a parameter to the outbound plug of Window.
->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
DATA lo_zexit TYPE REF TO ig_zexit . <zexit is name of my Component>
lo_zexit = wd_this->get_zexit_ctr( ).
lo_zexit->fire_out_window_plg(
url = 'http://www.google.com' " string
I hope it helps.
Thanx. -
Error while opening the external window
Hi
I am trying to open an external window on click of a button.
This is the piece of code I have written
url = "http://www.google.com";
url = java.net.URLEncoder.encode( url ) ;
String title="External Window";
//IWDWindow win=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);
IWDWindow win=wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,title );
win.show();
//win.open();
I have tried both show() and open() method. and also createExtrenalWindow and CreateNonModalExtrenalWidnow. But I am getting the follwing error.
Application error occurred during request processing.
Details: com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'dc.gs.com/osrch' and application 'http:' are not deployed on the server. Please check the used URL for typos.
Exception id: [0017087D8739002C0000025600001B9C00045A7873FC3E52]
This is the URL it got in the external new window..
http://<host>:50000/webdynpro/dispatcher/dc.gs.com/osrch/http%3A%2F%2Fwww.google.com
I know the www.google.com is concatenating with portal URL , hence it is throwing the error.
How to get rid of the portal path
thanks
PKhi,
You can try the following code:
IWDWindowInfo info = wdComponentAPI.getComponentInfo().findInWindows("PopUpWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(info , true);
window.setWindowPosition(WDWindowPos.CENTER);
wdContext.currentContextElement().setVa_win(window);
window.open();
This works fine.
Thanx.
Maybe you are looking for
-
I updated my Iphone 4 and now my phone no longer charges in my car.
Hello to all, I am a little disppointed because I updated my Iphone 4 and now it no longer charges in my car. I drive alot for work. I need to charge my phone HELp ASAP . I power resetted it..THat didnt work. So I will attempt to restore it to factor
-
What i've to do to run QuarkXpress 7.31 on MAC OS X 10.6.8
I'm having problems with my QuarkXpress 7.31 running on MAC OS X 10.6.8. When i dispatch a job to printer the program just stop working after the job print and open a window with title "Bug Reporter" that display the following message: "Gathering sys
-
What's the best way to extract data (a substring) from a string?
Hi, I have a field being returned from a function call and the data looks like this: sfaqwe4|89uuuroeoi0|kjg3j90493 (It's data...pipe...data...pipe...data) What is the best technique to use to extract the middle set of data between the two pipes? Is
-
Did you manage to print a pdf on a compatible bluetooth printer using adobe reader 1.5LE on nokia E61 ? There is no print option :(( Is this feature planned ?
-
hi i tried the following but getting the error.. Could you help me in this please SQL> create or replace package curpack as 2 type T_CUR is ref cursor; 3 procedure CHECKDYNREF (io_cur out T_CUR); 4 end curpack; 5 / Package created. SQ