How to close current window  of webdynpro application using webdynpro java

Hi All,
u201CTo close the current  window  of webdynpro application"
if i using exit plug its giving the following error in portal runtime.
u201Ccom.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application! u201C .
could you send me the  process how to use  portal navigation for the above scenariou2026u2026instead of exitplug.
Thanks& Regards,
Srinivas.

Hi,
Follow the steps below:
1. Create a new Window and embed a View which needs to be opened from the main view.
2. Create a context attribute of type IWDWindow (Java Native Type Option)
3. Write the following code in the controller for opening the new window:
IWDWindowInfo windowInfo = (IWDWindowInfo)  
                                                 wdComponentAPI.getComponentInfo().findInWindows("<windowname>");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
wdContext.currentContextElement().set<contextattributename>(window);
window.show();
4. In the new window, create a contextattribute and bind it to the attribute created in controller and on action of the close button write the following code:
IWDWindow window = wdContext.currentContextElement().get<attributename>();
window.destroyInstance();
Hope this helps you.
Regards,
Poojith MV

Similar Messages

  • How to close current window in firefox

    hi friends ,
    i  am doing a web application in flex4 .now i am running in that firefox.i  want to close the current window while i am clicking close button.but i  couldnt make that please help me
    Thanks,
    B.venkatesan.

    To close Browser try JS  top.window.close();

  • How to deal with credentials for external applications using a Java Client/

    Hi Guys,
    This is the case. I am integrating an external application with an ADF Application. I have implemented some programmatic ViewObjects that are being filled up by a REST Java Client Wrapper. Everything is working fine but the issue is that the credentials the wrapper is using are hard coded inside the java class. I am thinking to ask for the credentials at the beginning of my taskflow and then store them somewhere and use them then to create my client wrapper (passing them in the constructor).
    However, I don't know if my approach is good and I would like you to share your experiences or how to deal with this.
    Regards

    You can use Credential Store Framework to store the credentials securely in the weblogic server instead of hardcoding in the java class.
    The Credential Store Framework:
    - enables you to manage credentials securely
    - provides an API for storage, retrieval, and maintenance of credentials in different back-end repositories
    Check the documentation on CSF API -
    http://docs.oracle.com/cd/E29505_01/core.1111/e10043/devcsf.htm
    Major Steps -
    1. Create a credential map and key in em console to store the password (http://docs.oracle.com/cd/E25054_01/core.1111/e10043/csfadmin.htm)
    2. Use CSF API to retrieve the stored password
    3. In jazn-data.xml give permissions to access CSF key and map

  • How can I close current window.

    I have a submitButton.
    When I click it, using a method of javascript to close current window.
    the coding like below:
    pageContext.putJavaScriptFunction(
    "closeCurrentWindow",
    "javascript:window.opener=null;window.close()");
    pageContext.getJavaScriptFunction("closeCurrentWindow");
    But I think it's not a idea.
    Do you have another recommendations about the solution of this problem?
    thx.

    Hi,
    I don't understand. Would you like to have a button to close the current window?
    Or should it do also something else?
    If you want only to close the window you can use a "button" (not item_style = "button", not "submitButton").
    Then you must set its Destination URI property to javascript:self.close();
    This will close the current window.
    However note that using javascript is not right, according to OAF standards.
    Bye
    Raffy

  • How to close child windows when parent window closed in jsp

    how to close child windows when parent window closed in jsp
    becoz it can't be able to recognise it's parent
    with the whole application
    plz send me some sample code of it

    Hi, I have no idea how to do this is JSP.
    However createing a modal window (with javascript) would mean that the user can not use the parent window untill he closes the child window. However not sure if this is what you are searching.
    Otherwise you can detect the onClose (I think) and close the window from there.
    However both the above are JavaScript and not JSP.
    rwgards,
    sim085

  • Very simple question, how do you configure windows 8.1 to use a SF card as the default install location for software applications?

    Very simple question, how do you configure windows 8.1 to use a SD card / external drive as the default install location for software applications? Primarily interested in apps installed from the windows store. This should be available in the settings
    charm within the windows store. This must have been overlooked in the development of windows 8.1 or is a bug.
    Regards, Bill
    * update
    I've tried modifying this key and the path:
    “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx”
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/how-do-you-install-apps-in-windows-8-from-the/c4fbe2a8-fd3d-41c1-b9a6-6f881eed374f
    Also tried using symlinks as detailed here:
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral

    Here's some links I've used to try to figure this out:
    http://social.technet.microsoft.com/Forums/windows/en-US/2dfc0cd9-7d1b-41de-abce-e03fb6a5a383/metro-apps-not-working-in-windows-8-pro-x64-after-moving-users-and-programdata-folders?forum=w8itproinstall
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral
    http://social.technet.microsoft.com/Forums/windows/de-DE/f5e33ac9-beab-4b99-b3ca-7cb5e6f415e4/how-do-you-change-metro-apps-default-install-location?forum=w8itprogeneral
    Regards, Bill
    The registry method does not work with 8.1.  I found this out the hard way.  Doing it on 8.1 will leave you reinstalling the OS if you didn't do a SRP beforehand.

  • How to implement GP for an approval application in  webdynpro

    Hi
    I want to develop a webdynpro application which should create a callable object to be used in GP.
    In the application, one view is there ,which one EP user will submit to a higher authority to get approval.
    the higher authority person will get that view with some additional fields(like remark field, approval button etc.).
    How can I use GP for this type of application??
    Can I use the same view for both the levels of users with some changes??
    How can I create such a webdynpro application using GP?
    I have gone through some of the forum documents in all those, only one view is there.
    How can I link different webdynpro views(based on business scenario) using Gp??
    Can anybody help me.
    Thanks in advance
    Smitha

    Hi
    You need to use KM API to write a code
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=creatKMfilters&adv=false&sortby=cm_rnd_rankvalue

  • How to close open windows with ios7, How to close open windows with ios7

    How to close open windows with ios7, How to close open windows with ios7?

    Guess they thought we needed more exercise so now we have to swip them to close.....miss iOS6. My eyes are blurry now after looking at my phone, and my arms are tired from swipping lol

  • How to close parent window when we use call method l_window_manager- create

    hi...
    how to close parent window when we use call method l_window_manager->create_external_window
    thank you.

    hi
    good
    go through this link,hope this ll help you to solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011
    thanks
    mrutyun^

  • How to close ie window?

    hi,
    i need to write a program that could open and close a particular url in ie browser for a particular number of times. i could open the browser using following code
    cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    Process p = Runtime.getRuntime().exec(cmd);but i could not find how to close the window - please help

    p.destroy()... but how do you decide when to destroy the process -- are you using a timer or whuh?
    By the way, if you just want to open a browser in a platform independent way, you could try the new Desktop [browse |http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html#browse(java.net.URI)] method.

  • Testing Webdynpro Application using ECATT

    Hi
    all
    I am going to test webdynpro Application using ecatt.For this in se80 I selected the
    existing component(z component which was created by me) and i selected the application of that component and right clicked  and selected START ECATT RECORDING and i have given the test cript name at that i have got one error USER ECATT_HTTPDoesnot exist. How to resolve this problem.
    Please give me the soulution regarding this.
    regards
    venkat

    Hi Venkatesh,
    Before you can start recording any webdynpro application make sure that the below settings are done in the ecatt system and the target system , for further information refer ecatt documentation.
    Create User ECATT_HTTP in the eCATT System
    The administrator in the eCATT system must create a user called ECATT_HTTP(with a password). The user requires no special authorization but must be a system user (in transaction SU01, display the user and choose the Logon data tab. Under User Type, select System).
    Activate the Service ecatt_recorder in the eCATT System
           1.      In the eCATT System, start transaction SICF and navigate to the service ecatt_recorder.
           2.      Double-click on ecatt_recorder.
           3.      On the Logon Data tab, enter the user ECATT_HTTPand the password.
           4.      Choose Save.
           5.      Select ecatt_recorder and choose Service/Virtual Host  ->  Activate.
    Activate the Service ecattping in the Target Systems
    Java System
           1.      In the Visual Administrator, choose Server ->Services -> Deploy.
           2.      On the Runtime tab, select Application.
           3.      Select ecattping.
           4.      Choose Start Application.
    ABAP System
           1.      In the target system, start transaction SICF and navigate to the service ecattping.
           2.      Select ecattping and choose Service/Virtual Host ->  Activate.
    Thanks and Regards,
    Balaji.D.N
    Edited by: Balaji DN on Dec 31, 2008 12:04 PM

  • AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem. I believe that it is in AirPort Express, and wou

    AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem.
    I believe that it is in AirPort Express, and would have to clean it. How do you do that?

    You need to use the Express in router mode.. I think you are trying to use it in bridge mode.. but you need to give us a lot more details.. screenshots might help more than anything.

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • Simple application using WebDynpro for ABAP

    Hi All,
    I want to Build a simple application using WebDynpro for ABAP..
    Thank you,
    Karan

    Hi Mr.Karan,
    Pls Go through the link [Application|http://****************/Tutorials/WebDynproABAP/SimpleApplication/SimpleApp1.htm]..
    Let me know if need any help...
    Thank you,
    Srini.S

  • How to screen capture windows 7 via parallels using 27" iMac

    How to screen capture windows 7 via parallels using 27" iMac

    Just like you would with a Mac. Command shift 3 captures the whole screen to yourMac desktop and command shift 4 will capture a selection to the Mac desktop.

Maybe you are looking for

  • XSL-1009 XSL:Version

    The following xsl sample will translate with ORAXSL without errors in one of my docs: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../generic/parsePOHeader.xsl"/> <xsl:import

  • Change user for folio

    How do i change the user that folio's are created under?

  • Terminate 3th party application

    Hi Forum, I use a third party application (C+, no source) and a labview application in my test setup. Sometimes this C program does not work well. In this case the Labview application terminates and restarts it. In 99% of the cases it works well as a

  • How to create a View between two Ztables?

    Hi experts, I have two ztables TableA and TableB both has one common field. Now Which type of view (Database,Maintanance,Projection or Help) I should create? If so what are the steps I should follow. What I suppose to do in Table/Join Condition tab ,

  • Sovrapposizione caratteri

    Salve a tutti, ho un problema che riguarda i fonts della mia installazione, o meglio la resa grafica di questi e lo spazio che intercorre tra due caratteri. In pratica nel terminale mi capita di avere caratteri sovrapposti gli uni agli altri. Uso xfc