Window.destroy() - Method of IWDWindow is deprecated.

Hi Experts,
I am getting following message inside a Java program of Web Dynpro:
window.destroy() - Method of IWDWindow is deprecated.
Could you please let me know how to sort out the issue. I am using NWDS 7.0.06.
Regards,
S

According to <a href="https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow.html#destroy()">JavaDoc</a> :
<i>
Deprecated. This method is not part of the Web Dynpro API and might be withdrawn with the first new NetWeaver release in 2007. Please use <a href="https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow.html#destroyInstance()">destroyInstance()</a> instead
Method destroy: invalidates/destroys window instance - the instance is closed and destroyed and can not be reused/reopened
</i>

Similar Messages

  • Database connection not closed in Destroy()  method of servlet

    Hi,
    I have a problem with my deployed web application. At first, I thought Glassfish was messing up on me, and after checking the log I could see plenty of null pointer exceptions being thrown at lines in my code where I generate prepared statements from my connection object. I have been initialising my connection in the Init() method of all my classes, and equally, I've been closing it in Destroy(). I can only imagine that destroy() isn't being called - since the log clearly shows "connection success" messages but not "connection closed" messages. I am connecting to the servlets via a J2ME app on my mobile phone. Does connecting in this way somehow not invoke the destroy method when the servlets work is complete? Am I going to need to move all my connection initilisation and closing into the necessary doGet/doPost methods of each of my servlets?
    Chris

    You shouldn't be keeping the connection that long open. It's a bad design. It will timeout sooner or later and your complete application will crash. Always acquire and close the connection in the shortest possible scope, preferably just in the same method block where you process the query and/or results. If you want to improve performance while connecting, consider using a connection pool.
    Back to the actual problem: a servlet is created only once during application's lifetime and not during every request as you appears to think.
    You may find this tutorial useful to read on about using the DAO pattern in JSP/Servlet.
    [http://balusc.blogspot.com/2008/07/dao-tutorial-use-in-jspservlet.html]

  • Destroy method not available in NWDS 2.0.1 for iframe .......

    Hi,
    I have problem with version..
    Destroy method will work in nwds 7.0.1 but this code does not work with NWDS 2.0.6
    Please give me alternate of this method at lowe NWDS Version.
        if(!firstTime)
              IWDIFrame frame = (IWDIFrame)view.getElement("IFrame1`");
              frame.destroy();
    Regards,
    Gurprit Bhatia
    Edited by: GURPRIT BHATIA on Feb 21, 2008 10:49 AM

    Hi,
    IWDViewElement is the interface which provides the destroy method it seems that is not available in NW 04.
    Regards
    Ayyapparaj

  • We tried the window.ResizeTo and window.MoveTo methods using the javascript. It doesn't seem to be working in the version 9.0.1. Please suggest any alternative .

    Hi,
    We tried the window.ResizeTo and window.MoveTo methods using the javascript. It doesn't seem to be working in the version 9.0.1. Please suggest any alternative .
    Thanks,
    Avinash

    This is no longer allowed for security reasons (bug 565541).<br>
    See https://support.mozilla.org/nl/questions/880032<br>
    https://developer.mozilla.org/en/DOM/window.moveTo<br>

  • Using Standard Windows Select Methods On Interactive Report

    I have an interactive report. Right now I have a check box on each row to select the row. However, this means to select 10 rows you have to click 10 times. I would like to make it possible to use standard Windows select methods - click first row, hold shift key, and click 10th row to result in 10 rows selected. I haven't found how to do this in Apex but I assume it is possible. Thoughts? I googled but maybe not looking for the right thing as I find lots but not what I am looking for.

    Hi,
    you could do something like this:
    1) Create IR report like
    select 
      apex_item.checkbox(1,empno,'UNCHECKED') foo,
      "EMP"."EMPNO" as "EMPNO",
      "EMP"."ENAME" as "ENAME",
      "EMP"."SAL" as "SAL"
    from 
      "EMP" "EMP"2)In you page properties put following code in
    a)Function and Global Variable Declaration:
    In this code I reference f01, because in select I use apex_item.checkbox(1,......
    function isKeyPressed(event)
      var target = event.target ? event.target : event.srcElement;
      if (target.name=='f01'){
        if (event.shiftKey==1){
          i_start = -1;
          i_end = -1;  
          i_swap = -1;     
          end_val = target.value;
          cb = document.getElementsByName('f01');
          for (i=0; i <= cb.length - 1;i++){
            if (cb.value == end_val)
    i_end = i;
    if (cb[i].value == start_val)
    i_start = i;
    if (i_start > i_end){
    i_swap = i_start;
    i_start = i_end;
    i_end = i_swap;
    for (i=i_start; i < i_end;i++){
    if (cb[i_start].checked == true)
    cb[i].checked = true;
    if (cb[i_start].checked == false)
    cb[i].checked = false;
    else{
    start_val = target.value;
    b)Page HTML Body Attributeonmousedown="isKeyPressed(event)"
    You can check example on http://apex.oracle.com/pls/apex/f?p=60428:9
    Regards,
      Aljaz                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • IE not completing the destroy() method

    Hi,
    I am experiencing a problem with my applet in IE. I call a native method in the destroy() method of my applet. The native method takes about 1/2 sec to execute. This works fine in Firefox, however in IE it doesn't seem to allow enough time for the destroy method to complete before blowing away the JVM.
    Can I possibly expend the time IE allows to execute the destroy method?
    Note: this is not an issue when I switch between pages because the JVM remains alive for the whole browser session.
    I have no idea how to fix this.
    Any help or advice would be great.
    Many thanks,
    Alex

    You shouldn't be keeping the connection that long open. It's a bad design. It will timeout sooner or later and your complete application will crash. Always acquire and close the connection in the shortest possible scope, preferably just in the same method block where you process the query and/or results. If you want to improve performance while connecting, consider using a connection pool.
    Back to the actual problem: a servlet is created only once during application's lifetime and not during every request as you appears to think.
    You may find this tutorial useful to read on about using the DAO pattern in JSP/Servlet.
    [http://balusc.blogspot.com/2008/07/dao-tutorial-use-in-jspservlet.html]

  • IE 11, built-in Administrator account, window.open method, JA KB 2909974 exists.. not EN-US ?

    As per title....
    The JA KB (when translated) states,
    If you use the built-in Administrator in Internet Explorer 11, when you open a new window named, such as window.open method, window name is not recognized.
    Therefore, the following phenomenon will occur.
    If you specify in the window.open method of the window named, rather than a window that is already open, URL is displayed in a new tab or new window
    If you specify in the target attribute of the link or form window named, not the window that is already open, URL is displayed in a new tab or new window
    What's Microsoft's comments on tracking to a resolution of this ?

    luca wrote:
    Hi krazyshane,
    try to add this directive in Section "Device":
    Option "DRI" "true"
    This got it!  Thanks! 
    Shane

  • How to migrate users, which have been using the Windows Authentication method

    Hi everybody,
    I have to migrate a productive SQL Server 2008 Database from one to another different server. The problem is that a lot of users have been using this DB throught the Windows Authentication method. Because the migration should be faster as possible, I would
    like to use a SQL script in order to streamline the process. Does anyone know if it is possible to do it?
    Thank you in advance,
    Regards

    Apart from transfer logins scripts Ashwin and Stan mentioned, I usually run following script in order to re-establish orphan users to establish if any SQL logins.
    set nocount on
    declare @username    sysname,
            @errcode     int
    select @errcode = 0
    select @username = min(name)
    from sysusers (nolock)
    where uid <> gid and
          name not in ('guest', 'sys', 'INFORMATION_SCHEMA') and
          suser_sname(sid) is null and
          issqlrole = 0
    while @username is not null
    begin
       if exists (select 1
                  from master.dbo.syslogins (nolock)
                  where name = @username)
       begin
          exec sp_change_users_login @Action = 'Update_One',
                                     @UserNamePattern = @username,
                                     @LoginName = @username
          select @errcode = @@error
          if @errcode = 0
             print 'The user ''' + @username + ''' was re-established in database!'
          else
             print 'Failed to re-establish user ''' + @username + ''' in database!'
       end
       else
       begin
          print 'The user ''' + @username + ''' does not have login ID. So, drop it from database!'
          exec sp_dropuser @username
       end
       select @username = min(name)
       from sysusers (nolock)
       where uid <> gid and
             name not in ('guest', 'sys', 'INFORMATION_SCHEMA') and
             suser_sname(sid) is null and
             issqlrole = 0 and
             name > @username
    end
    go

  • Destroy method in OC4J (Possible Bug)

    Hi,
    I have a Servlet running on the oc4j server.
    When i kill the OC4J i expect the destroy method to be called.The destroy method is having a "System.out.println" statement.
    Yet i dont see any o/p when the OC4J is coming down.
    Please tell me if i am expecting sth which i should not be expecting or is it a OC4J bug.
    TIA,
    Gaurav

    Unlike normal libraries (.lvlib), classes always load all their member VIs into memory when the class is loaded into memory.  So if one of those VIs uses an XControl, then it will become locked as soon as you load the owning class into memory, even if the VI is not open.  You might be able to get around this by right-clicking the XControl in the project and selecting "Unlock Library for Editing".  This will temporarily break any VIs that call the XControl until you are done editing it.
    Chris M

  • Servlets destroy()  method

    what actually destroy() method does in servlets? will it destroy the object or free the memory? pl explain

    jask wrote:
    what actually destroy() method does in servlets? will it destroy the object or free the memory? pl explainWhenever you want to know the purpose of the class and all of its methods and fields, you should be always consulting its API documentation first. In case of the HttpServlet class, here it is: [http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServlet.html]. The destroy method is inherited from the GenericServlet, follow the 'destroy' link to get its API document and so on.

  • Calling destroy() method explicitly.

    All we know,we can call destroy() method explicitly in servlets.Does the explicit call to destroy() will affect the default garbage collection mechanism?
    e.g
    public class MyServlet extends HttpServlet
                 public void service() {  destroy(); }
                public void destroy() {       }
            }After the code in service() gets executed,will the container can call destroy() again at server shutdown?? What are possible ill effects of calling destroy() explicitly ??

    It's just a Java method. There's nothing special about it at all in terms of Java programming. So it doesn't have any special effects on garbage collection or anything else.
    Likewise, if you call it then it executes the code in its body. If the container calls it again then the code in its body is executed again. Nothing more than that (and how would the server even know you called it?) That may be a bad thing or not, depending on the code.

  • Overriding Destroy Method

    Hi,
    Can anyone pl let me know whether we can override destory method in the servlet.
    any help in this regard will be highly appreciated.
    Thanks a lot,
    Regards,
    Prakash.

    be aware that the destroy methode is NOT granted to be executed on servlet destroy nor is it predicable when the destroy methode is called (might be short after the object gets destroyed or might be long time after or never). So do no critical work in the destroy methode (like storing session user data and so on), just those cleanup work (closing db connections, files aso).

  • What happening when we call destroy method

    when we are calling destroy method from init method why it will not destroy the servlet object?

    By default I think that the destroy method is empty and it dosend do anything unless you override it do do some specific work.
    Enve if you somehow destroy a servlet object successfully and make it somehow garbage collect but still when the next request arrives the servlet container will create a new instence and service it.
    Why do you want to destroy a servlet from init and if what you want is to avoid a servlet object from being used to service the request I think that you can throw an exception from init so the container will not use that object for servicing.

  • Destroy() method in service()

    can we call destroy() in service() method. if we call destroy() before any business logic what happens to the request of the client.

    Calling destroy() inside serivce() can affect nothing, because the main job for destroy() is to excute a defined code at the end of the servlet lifecycle, and not the opposite, i mean calling destroy() doesn't finish the servlet..
    check this servlet code it might help...
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,IOException {
    destroy();
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head><title>Servlet</title></head>");
    out.println("<body>");
    out.println("<p>The servlet has received a POST. This is the reply.</p>");
    out.println("</body></html>");
    out.close();
    public void destroy(){
    System.out.println("Inside Destroy");
    now in this code destroy() is called in the begining of service(). and the statement "Inside Destroy" is printed, and the then service() continue its work normally...
    hope i helped (^_^);

  • Not able to use window.addEventListener method in JSLink javascript

    Hi,
    I have developed 2 app parts and passing values between them using post message utility of windows. It works fine from script editor web part but fails when I am trying to use it as JSLink.
    I am getting window is undefined error message.
    I was wondering if I can use window.addEventListener from javascript which is referenced in JSLink property.
    Can anyone please help. 

    Check if below helps
    <script language="ecmascript" type="text/ecmascript">
    var listItem;
    var list;
    var clientContext;
    function getSetListItem() {
    this.clientContext = SP.ClientContext.get_current();
    if (this.clientContext != undefined && clientContext != null) {
    var webSite = clientContext.get_web();
    this.list = webSite.get_lists().getByTitle("Custom");
    this.listItem = list.getItemById(3);
    clientContext.load(this.listItem);
    this.clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess),
    Function.createDelegate(this, this.OnLoadFailed));
    function OnLoadSuccess(sender, args) {
    var value = this.listItem.get_item("SampleOne");
    this.listItem.set_item("SampleTwo", value);
    this.listItem.update();
    this.clientContext.load(this.listItem);
    this.clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess1),
    Function.createDelegate(this, this.OnLoadFailed));
    function OnLoadSuccess1(sender, args) {
    alert(this.listItem.get_item("SampleTwo"));
    function OnLoadFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    }</script>
    <input id="btnGetSetListItem" onclick="getSetListItem()" type="button" value="Get & Set List Item" />
    function AddCar() {
    //Retrieve the txtCar and check if it has some text.
    var txtCar = document.getElementById("txtCar");
    if (txtCar.value == "") {
    alert("please enter a car");
    return;
    //Retrieve the clientContext
    var clientContext = SP.ClientContext.get_current();
    //Retrieve the current website
    var webSite = clientContext.get_web();
    //Retrieve the lists
    var lists = webSite.get_lists();
    //Get the Cars List
    var carsList = lists.getByTitle("Cars");
    //Create new IteamCreationInformation
    var itemCreationInfo = new SP.ListItemCreationInformation();
    //the addItem takes the itemCreationInformation object
    //and returns the listItem
    var listItem = carsList.addItem(itemCreationInfo);
    //Set the title of the list Item
    //to the value in the txtCar
    listItem.set_item("Title", txtCar.value);
    //Call Update the listItem
    listItem.update();
    //Finally execute the operation
    //pass to it a 2 callBack methods OnSucceed and OnFailure
    clientContext.executeQueryAsync(
    Function.createDelegate(this,this.Succeeded)
    ,Function.createDelegate(this,this.Failed));
    Finally add the 2 CallBack method
    function Succeeded() {
    alert("Succeeded");
    function Failed(sender,args) {
    alert("fail");
    Or 
    try 
    http://stackoverflow.com/questions/23134018/onclick-javascript-send-value-to-another-control

Maybe you are looking for

  • Canon DV30 no recognized by FCP 6.0.5

    Fellow FCPers, I just bought our first HD camcorder and FCP won't recognize it. The first time I tried it, log and capture comes up with no communications. Camera is on PLAY. I trashed the FCP prefs and tried again. Now I can control the camera in lo

  • Free purchase not received

    for U2 abum--I tired the suggestions listed. here,. None worked. The store says purchased. I did not get it. Now what? I sent a feed back to  itunes support.  Also when people say they got it on iCloud, what do they mean? I don't see any music librar

  • Replacement Optical Drive Issues

    A friend of mine had a label detach and disintegrate inside her DVD drive. I took it apart and cleaned all the bits and pieces out as best I could. When I put everything back together System Profiler couldn't detect a burning device. The drive seemed

  • Setting up ldap and enabling sso for disussion service

    How to do setup of discussion service site so that user base of the discussion site uses an external ldap like OID? It was very easy with Jive(on which oracle's version si based). It was done at the time of installation. I thought of using system pro

  • I Need To Change The Resolution In A Graphic Without Changing The Graphic's Size

    I am trying to make a banner for a parade, and am stuck because the banner company can't print my design. I made my design with two different layers. I have a black layer which is 8 inches by 2.5 inches high, and the logo graphic which I have copied