Close portal window ( popup ) through an button event within the wd-app

Hello Experts,
the scenario is as follows:
i click on a link within the enterprise portal environment and it opens a wd application within a popup( portal window ). This application has a CANCEL button. when a user clicks on this the portal window should close. How can this be achieved ?
I tried firing the outbound plug of type exit of the wd app main window, but it just blanks out the screen and doesn't close the window it self.
Regards,
Shweta

Hi Shweta,
as i discussed with you to update the script code
<html><script> function closeWindow( ){       top.close( );     }                  </script><body><form> The application was logged off successfully. <br><input type="button" value="close window" onclick="closeWindow( );" /></ form></body></html>
in sicf transaction for your component.
it will work (close the window).
dont forget to give me points
all the best...
Rgds,
Mahesh.Gattu

Similar Messages

  • Was just watching an HD movie and tried to resize the window midway through. Now I get the error "This movie cannot be played in HD on this display" Yes it can I just was. How do I fix this?

    Was just watching an HD movie and tried to resize the window midway through. Now I get the error "This movie cannot be played in HD on this display" Yes it can I just was. How do I fix this?

    I have the same problem on an original iPad.

  • In repeating events , in the calendar app of Iphone or Ipad,

    In repeating events , in the calendar app of Iphone or Ipad, How can I stipulate for egsample: "every second tuesday of the month " or even every last monday of every second month..
    These selections work in the Google Calendar. but I cannot find the way to do it in the standard ipad or iphone calendar
    all I can find to select are "Monthly , weekly , . I want to be able to select "day of the week " or "day of the month" Thanks ,
    Victor

    The iPhone/iPad version of iCal doesn't have this option, but the Mac desktop version does (assuming you use a Mac). Follow the directions below and then sync your device with your Mac and the repeating event will appear in your mobile device.
    Open iCal on the desktop. Make a new event. Double click on the event and then click "edit." Change the repeat option to "Custom..." Select frequency as "monthly." Click the bottom radio button that says "on the" to enable you to set which day to repeat on. Close the event info window and then sync your device.
    I hope they enable this option in the mobile software soon. It is a glaring omission for a calendar program.
    P.S., sorry, I just noticed you didn't include a Mac in your hardware list. I don't know how you'd accomplish this with Windows. Maybe this post will help someone else, though.
    Message was edited by: Hoover411

  • Unknown events in the photos app

    After Install 5.1 there are unknown events in the photos app like 137imprt or 138imprt and so on. Is there a way to delete them, I already  delete all pctures in this folders.

    I found this work arround:
    first I opened the empty folder, than I added one (old) picture in this folder, opened the picture, deleted this picture - and then disappeared not only this picture even the folder!

  • How to create a button that close a window/popup.

    Hi, I must create in a view a button that close the window/popup that include the view, the button must be like the OK button of the popup or the X button at the top-right side . It's possible?

    Hi Avalor.
    You can create a custom pop up window. Just create a view that contains all
    elements that you want to display. Add the button that closes the view. Create a
    new window that only contains this new view. Use the mentioned method to create
    a new window as pop up. You just have to pass the name of the window you have
    created. Store the reference to the new window in the component controller
    (mr_window).
    From the new window->view you have access to the component controller.
    In the action handler of the button you can use something like this:
    wd_comop_controler->mr_window->close( ).
    Cheers,
    Sascha

  • How to close Portal Window

    Hi,
    I'm opening my iVew as "Display in seperate Window" and this iView has one close button.
    Once I click on this button, the full browser window should be closed.
    I have done like this:-
    First created an html file (Say close.html) inside Project\src\mimes\Components\package with contents
    <html>
    <head>
    <script langauage="javascript">
    function closeWindow()
    var currWindow = window.top;
    currWindow.opener = window.top;
    currWindow.close();
    </script>
    </head>
    <body onload="javascript:closeWindow()">
    </body>
    </html>
    Now open InterfaceViews-><ViewName>InterfaceView
    Create an Exit outboundplug with parameter Url(use the same name in the scenario) of type String. Save all metadata.
    Inside the closeAction, written following code
    String url=WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Close.html");
    wdThis.wdGet<ViewName>InterfaceViewController().wdFirePlugCloseWindow(url);
    This is working fine with simple Web Dynpro App but once I deployed this as a iView in the portal and opened as "Display in seperate Window" than this code is not working for me.
    Can anybody suggest how can I close my portal window?
    Thanks,
    Vikas
    Message was edited by:
            Vikas Saxena

    Hi,
       You can try this:
    1. In the portal create a URL iview and set the URL to the absolute URL of the HTML file that you have created. This URL will be in the following format:
    http://<server>:<port>/webdynpro/resources/sap.com/<dc name/project name>/Components/<package name>.<component name>/<filename>.html
    2.  On click of the button do a portal navigation to this new iview like so:
    WDPortalNavigation.navigateAbsolute
    "ROLES://portal_content/<pcd path to URL iview>",
    WDPortalNavigationMode.SHOW_INPLACE,
    WDPortalNavigationHistoryMode.NO_HISTORY,
    null                    
    Regards,
    Satyajit.

  • I can't update individual events in the Calendar app.

    I'm trying to update an event in the list of events on the left side of the Calendar app display in my Ipad2 ios 5 device.  When I tap on the event nothing happens.  Anyone have any suggestions?

    Hi there RonBeaucahmp,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    -Griff W.

  • How to manage Events in the new app Photo ?

    Hello,
    I downloaded the new app Photo, and I have a big problem of using : I can't use the same way of managing my photos than iPhoto.
    In the previous iPhoto, I create "Events" and these events constitute a "album".
    For example, I have iPhoto Events "Soho", "Tower Of London", "Pub with friends" etc in the album "London", which operate like a Playist.
    Since I have been using Photo, my iPhoto events became Albums, and the new Events are Moments, that we cannot rename !
    The problem is when I am in the London Album, I can't reach my event "Pub with friends" directly, I can only reach the Moment, with a non-explicite name... So I don't know where I was, that's catastrophic for me and my XXX photos..
    How can I do to avoid this lost of information ? It's not possible to rename all the Moments by the name of the old events ?
    I liked this way of classification, Apple stucked us in this way and now changes the rules !
    Thank you very much for your help, I hope I was clear enough.
    Thomas

    The problem is when I am in the London Album, I can't reach my event "Pub with friends" directly, I can only reach the Moment, with a non-explicite name... So I don't know where I was, that's catastrophic for me and my XXX photos..
    Do you mean that the contextual menu will only offer "Show in Moments"?  The moments are more useful, if you assign locations by adding GPS tags to your photos before importing them to Photos. Moments are based on dates and locations. That will take care of the "where I was".
    If your photos have GPS assigned, you can click the name of the location in the Moment and see the photos on an Map, for example:
    Click the location name "Cutty Sark" and you will see the the map:
    And the map in Moments:

  • I was prompted for an Itunes update 11.?.? and my laptop (with windows) will not open i tunes now the itunes app

    I was prompted to update my Itunes with version 11.?.? and now I can't open Itunes.  When I tried to download the itunes app off the internet I quit after asking for me to verify Iapple devices.  What am I doing wrong?

    Hello Capt1961,
    Thank you for the details of the issue you are experiencing with installing the latest iTunes update.  I recommend following the steps below:
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    When you get to the step to uninstall iTunes, it is important to uninstall iTunes and the related components in the order listed in the link for that step.
    You can find the full article here:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I center rollover buttons floating within the main frame?

    This is actually for GoLive, but I hope someone can help!
    My site used to auto-size and I just removed that annoying feature and used the Frame Inspector to Center the page.
    This worked for the boxes contained within the frame but NOT for the floating rollover buttons which still align LEFT.
    I'm sure there's a simple solution.  Thanks for your help!    J.

    You're using Absolute Positioning which is well... absolute.  By that I mean everything is positioned relative to the top left corner of browser viewport.  By itself, APDivs can't be centered which is why you're having trouble.  You would need to wrap your page content inside a CSS container that has relative positioning; a width in px, em or %; a margin-left and margin-right of auto (browser determined margins).
    Try adding this to your CSS:
    body {
    position:relative;
    width: 960px;/**adjust width as needed**/
    margin:0 auto; /**centered in modern browsers**/
    text-align: center /**centered in older browsers**/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Can we create a sub Event within the main Event in iPhoto?

    I would like to reduce the amount of Events I have showing in iPhoto, to one Event for one catogory and then create sub events within this main Event.
    For example.
    Create 'Holidays' for Main Event
    Then various sub Events within 'Holidays' showing destinations for each holiday with the photos.
    Regards
    John

    This is what Larry is referring to:
    OT

  • Dispatch event from the main App file

    Hi,I have one simple question.I know how to dipatch events from the some of the components files to the main App file,but I don't know how to do the opposite?
    I have an HTTPService with id = "getData" in some component file and I want to dispatch an event that will send it getData.send();
    Is this possible,and it if is how?

    It is possible but not a recommended practice.
    Worst case you proxy out methods on your components and call directly:
    maiAPpp.someComponent.doSomething();
    SomeComponent
    doSomething();
        someOtherComponent.doSomething();
    SomeOtherComponent
    doSomething();
        servcie.send();
    My 2 cents are too look into MVC architecture and have the service inside a command which gets treiggered by a controlled which reacts to your event dispatched by the view.
    C

  • Trackpad is presenting a bug to open and close windows, mission control, and to move/roll the application (App) up and down.

    Totally out of the blue, my trackpad is presenting a "bug". Every time that I try to open and close my mission control, or in the moments that I move / roll up and downs the Applications Screen, my Mac freezes for less than a second.
    It never suffered any damage (NEVER!)! I am feeling very frustrated because I have no idea about what could cause such problem.
    My MacBook Air is running OS X 10.9.5.
    Any help will be very welcome!

    Well, it all really depends on the custom program and how it was written. Does it have an ActiveX interface? If it does, than that's the easiest way to go. If you put an automation refnum on the fron panel, you can right click and it and choose Select ActiveX Class>Browse. The browser will list all of the ActiveX type libraries that are registered on your system. If you can find one that refers to your custom program, then you should be able to use it's methods and properties to control. If it does not have an ActiveX interface, then things get much more difficult.

  • Popup reuse and instantiate data within the popup

    Hi,
    I'm trying to implement a popup I can use to edit values via a form. I only pass an ID to the popup. The popup will contact a datasource to load the data from a database, based on the ID, and pre-fill the form. If no ID is passed (or empty), the popup displays an empty form which can be used to add the record to the database.
    Based on the samples I found this was quite easy to implement... However, I'm facing a problem in instantiating values, when the popup gets called the first or the second time.
    I first added the initialisation code (clearing fields and getting new data from database) in the creationComplete of the popup; but the event does not get fired anymore when opening the popup the second time (popup gets called by PopupManager.addPopup).
    I tried triggering the init on the event 'added' or 'addedToStage' as well, but then some of the components in the popup are not yet created the first time I open the popup, giving an exception thrown...
    What's the best approach or event to trigger on, to instantiate my data when the popup displays?
    Tnx
    Stefan

    Thanks, I found where I went wrong... the removePopUp was porperly called from my code; I tried a createPopUp, but stored it in a local value, and reused it... Now I realy use a new instance and it works on the creationComplete...
    However, if I would like to use the same instance, and add it with 'addPopUp', should I still remove it?, and on which event I can best trigger the instantiation : I would like to instantiate the values when the popup is displayed, I don't want to add a button 'update the data'...?

  • Why doesn't the add button appear on the contacts app

    Ever since I updated my iPod to the latest version the add button has gone from my contacts list

    Go to Settings>iCloud and make sure Contacts is on.  Same for Calender too if yo want to add events.

Maybe you are looking for

  • Yo, Bappers, let's win one for the Geeks with an answer to this question!

    Yo, Bappers - My good friend and colleague Ted Smith posted this question in the Document Management forum: Hi SAP Consultants, We are in the process of linking DMS with BOM. While Creating a DIR in CV01n we are unable to link a BOM because when we c

  • Profit center wise hierarchy

    hiiiii... by which t.code we can see the profit center wise hierarchy? Thanks & Regards Rekha Sharma

  • An application like Winpopup?

    I have two computers in the same room. I want to send a message from one to the other. How do I do this? I'm not interested in running an AIM-type message system over the internet. I'd just like my message to go from one Mac to the other, without doi

  • Speed Adjustment Trouble (tried everything)

    Hi All, I am having a real problem with changing speeds. I am working with a short clip which are no longer the original capture. It contains filters and the speed had been adjusted to 25% and it was fine. Now, I did this a few weeks ago and since th

  • Setting width of af:query component

    I have an <af:query> component that horizontally spans the whole screen. I think it is unnecessarily long, but I can't find a "width" property. Is it possible to shorten it?