How to handle Window Close in OA Framework

Hi All,
In one of my application I am opening a PG into new window. Now after doing some selection i want to pass soem variable into main page and close the other page that i have opened in new window.
Please let me know how can I handle this window.close() in OA framework.?
Thanks
Debashree

Truely speaking, i could not get the answer to this even when i was in Oracle, I think the primary reason would be that the memory footprint of the page would increase with js usage, another reason could be that FWK itself uses some js and they dont want user defined js to interfere with OAF defined usage.
For Debasree's query, yes, you can do it technically using javascript, but not recommended.
Thanks
Tapash

Similar Messages

  • How to handle form close event or escape key press event for user defined f

    Experts,
    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,
    Pravin.

    Hi
    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Try
                   SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
          Catch ex As Exception
                    SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
          End If
    Hope this helps
    Regards
    Arun

  • How to detect window close event and do some task before exiting

    Hi 
    Anyone knows how to detect window close event and do some task before exiting ?
    Sridhar
    Solved!
    Go to Solution.
    Attachments:
    window close event.JPG ‏34 KB

    Yes .You can discard the panel close event by passing "TRUE" boolean value to the "discard ?" terminal which is lied in the right side of that panel close(filter) event.& It will work in executables.  See attached picture.
    Attachments:
    Panel Close.JPG ‏12 KB

  • How to mark window close button as "unsaved"?

    Using SWT, you can change the main window quit/close icon/button (in upper left corner of title bar) to indicate that the file/whatever of the application has not been saved. The code to do that in SWT is something like this -
    Shell shell = new Shell(new Display(), SWT.CLOSE | SWT.TITLE | SWT.BORDER | SWT.MIN);
    shell.setModified(true);
    Is this feature available in Java FX 2.2? If not, has there been a bug/request filed for it?

    I had a question going in the same direction: "Is there any way to disable the close button in a decorated stage?" but from your answer to the previous question, I guess this is not possible... could you please confirm this? A workaround would be to set an event handler to consume the window close event. Looks like I'll need to go that way. Or could you suggest a better way?I don't think it's possible with to disable the button in JavaFX 2.2 - if you did, it would provide an inconsistent native windowing experience for the user anyway as I've never seen a close button on a Windows 7 app disabled.
    However, as you point out, you can capture (and handle or ignore) the events if generated. You can do this by setting an onCloseRequest event handler for the window and calling event.consume() in the handler. (relevant javadoc comment):
    https://docs.oracle.com/javafx/2/api/javafx/stage/Window.html#setOnCloseRequest%28javafx.event.EventHandler%29
    Called when there is an external request to close this Window. The installed event handler can prevent window closing by consuming the received event.------
    You could check out my related answer at StackOverflow: http://stackoverflow.com/questions/12874664/javafx-entirely-customized-windows, for some other thoughts on this on customizing decorated and undecorated windows, but I think most has already been said in this thread.

  • How to show "window close" link in the page.

    "window close" link is the standard link in the EBS.
    But how can I show it in the EBS page? Thanks.

    Hello Peter,
    Thanks for your reply! That maybe is one solution. I think I used wrong terms to define the problem. But what I really ment, was that how to define links directly to portlet application (through portal of course) not just to portal page. I didn't find help from the HttpPortletRendererUtil class.
    I try to explain the problem more clearly:
    I have an portlet application that have main page (jsp page). The main page contains different 'areas' that are implemented by an iframes.
    For example there is a result area (iframe) and browser area (second iframe). The user can browse the results forward and backward. When user clicks one of the browser links the results are seen in result area.
    Ok this works fine when the application is 'ordinary' (not portlet), but when this is adapted to a portal as a portlet (through web provider) and I have to define the source to iframe (I use HttpPortletRendererUtil class's helper method to define links) I have only option to define the portal page link and that's why there comes additional page banners/headers to the result 'area' of the main page.
    Hope this is better explained. But if it isn't, please be free to ask more...
    Regards, Robert

  • How to handle window controls like minimize,close and move

    Hello,
    I have created a javaFx page with stage style as 'style:StageStyle.TRANSPARENT'
    Now,there are no window controls of close,minimize,move available.I want to add my images for such event and handle them myself. ie, i want to minimize the page by clicking my button.
    Can i do this?
    if yes,then how?
    Thanks to reply
    Anuj

    hello,
    i have found the way to drag and close the window.
    Dragging can be done by :
    onMouseDragged:
                                    function( e: MouseEvent ):Void {
                                        varX = e.screenX-100;
                                        varY = e.screenY-100;
                                  }where varX and varY are used in
    var s: Stage = Stage {
        title: "AppDeploy Demo"
        width : 300 height : 200
        style: StageStyle.TRANSPARENT
        opacity: .9
        x: bind varX
        y: bind varY
    }For closing:
    we can just call s.close();
    Now i just want to know how can i minimize the stage???
    Please help

  • Is how UIInput handles local values a large framework bug?

    UIInput in both 1.1 and 1.2 stores the local value in a member variable. This seems like a large bug to me. JSF seems to be designed after more of a flyweight pattern.
    Take for example UIData. For each row in the data model, the componets are re-rendered. This means that each component represents as many values as there are rows. Therefore, only one value per component makes UIData bugged.
    This bug is evident when submitting a UICommand as immediate on a page with a dataTable. All the UIInput componets lose their values when the page is re-rendered.
    How this could work:
    Instead of a local Object to hold the value, the member value should be a Map<String, Object>. The key of this Map would be the client ID of the component. The value, would obviously be the component's local value (submitted value).
    The "corrected" code could look like:
    private Map<String, Boolean> valid = new HashMap<String, Boolean>();
    private Map<String, Object> localValues = new HashMap<String, Object>();
    public boolean isValid() {
    return valid.get(this.getClientId(FacesContext.getInstance()));
    public void isValid(boolean valid) {
    return valid.put(this.getClientId(FacesContext.getInstance()), valid);
    ... (repeat similar methods for the local value and if the local value is set)...If all components were built this way, then tree, table and other 'complex' controls would finally behave "correctly".
    Without this, I can't see how UIData will ever be fully usable with validators and using the immediate flag.

    you may try these:
    1. Add one more logic (define as boolean variable), then OR this variable with the original Boolean switch you used in subvi, then main vi can change the new added variable which is defined as local or global variable.
    2. Change the subvi while loop as state machine, or use other Synchronization techniques like notifier

  • Window: close event handler

    I have a button (action="dialog:ADD_MEMBER" useWindow="true" windowEmbedStyle="inlineDocument" windowModalityType="applicationModal" windowHeight="600" windowWidth="700"), which open a new window in the same TaskFlow. This window can be closed by using the special (my af:commandButton) button and by using common window close button ('X'). I want to write my custom close event handler in the second case. How can I do it?

    Hi,
    don't think you can. Did you check ifthe return listener fires ?
    Frank

  • How to handle the "cancel" button and "close" icon of a popup ?

    Hi,
    I have a popup with "cancel button" and "close icon"(on the top right corner of the popup), I want the same operations to be performed on clicking of any of these two components.
    Is there a way to handle such situation ?
    I read about 2 cases to look into this but they didn't work too well for me.
    1. I read about the "popcancellistener" but that listener is called whenever the popup closes, so suppose I have an "ok button" on the popup to create a record, after the record is created, the popup closes and goes into the "popcancellistener", now the question is "how do we know if it came there because of the 'ok button' or 'some other event'".
    2. I even checked the "DialogListener", now I'm able to distinguish between the 'OK' and 'CANCEL' button in the dialoglistener using the "Dialog.Outcome.ok/cancel", but when a user clicks on the close icon, we do not enter the "DialogListener" at all, so in this case "how do we handle the close icon click event"
    Do let me know if you need any more information from my side.
    Thanks for the help in advance.

    The following mechanism responds to any of the following events: <Esc> key, Close icon ('x'), Cancel button
    JavaScript part:
    function popupClosedListener(event){
                  var source = event.getSource();
                  var popupId = source.getClientId();
                  var params = {};
                  params['popupId'] = popupId;
                  var type = "serverPopupClosed";
                  var immediate = true;
                  AdfCustomEvent.queue(source, type, params, immediate);
    }JSF part:
             <af:popup ....>
                  <af:clientListener method="popupClosedListener"
                                           type="popupClosed"/>
                  <af:serverListener type="serverPopupClosed"
                                          method="#{myBean.serverPopupClosedMetod}"/>
            </af:popup>Finally, Java part:
    public void serverPopupClosedMetod(ClientEvent event){
    }

  • How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop the fil

    How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop all the files that I had open are there already in the same position as when I closed Photoshop?
    I've been a Fireworks user for over 10 years and just switched to Photoshop. I cannot find a setting that will enable all my file windows to reopen when I quit Photoshop. This is really a problem since I often work on several files at the same time.
    Please let me know if the feature exists or point me to where I can post a message for a new feature to be implemented. The feature is a must for any designer working on large projects.
    Thanks!

    There is no such functionality. You could perhaps create a script that stores that info in a custom text file and arranges them accordingly in the workspace, but that's as good as it gets...
    Mylenium

  • How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?

    How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?
    I have a HTML extension running in In-design CC 2014 version.
    I want to perform some required set of actions before my extension window is closed(by clicking on the cross button on top right corner).
    Does In-design throws any event for it? Or can we capture it using C++ plugin in some way?

    Naah.......haven't got any event for that yet.
    Although, since HTML extensions are using chromium browser,  as a workaround, u can attach listener to HTML onClose event, but it won't solve any purpose if you
    are looking to logout session or do some business login in your code.

  • How to handle power managment features of Windows Vista

    Hi guys
    I searched a little bit in the Toshiba Technical Knowledge Base and found very interesting article about the power management features of Windows Vista.
    *[How to handle power management features of Windows Vista|http://aps2.toshiba-tro.de/kb0/HTD84026Q0000R01.htm]*
    The point is that you will not find a same Toshiba Power Saver tool on Vista like on the Windows XP notebooks and the power saver settings are a little bit hidden in the Vista Power Saver settings.
    But you can also control the certain options like Cooling Method or Power Saving Mode.
    I think this document could be interesting for some here in the forum!
    Greetings to all!

    Hi Jayjay
    Thanks for posting this here in the forum.
    Several days ago I searched for such further power option in Vista.
    This document was really, really helpful for me.
    Thanks again

  • How do I selectivly close the only not responding window (without closing the other 3 responding windows)

    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.

  • How does a servlet close the browser window?

    How can a servlet close the browser window it is running in?

    I'm running the servlet by calling it in a browser window, passing parameters using POST, with the parameters appearing at the end of the url.
    Is there another way to run the servlet, without it affecting the browser window? That would be a better solution.

  • W/zoteroinstalledwedo a window,open() followed by a window.close() in tha window. Zotero remains and the window is still open. How do I close the window with zotero present in FF w/o disabling zotero?

    the js function to window.open() is in pageAA on a tab.
    We click the form or link to open the popup to run a video.
    We have a close button on the popup window.
    When that is clicked the window.close() js is executed on that page leaving Zotero present and the popup still open.
    We've tried using close() window.close() name.window.close() and
    all fail the same way.
    Short of disabling Zotero is there a way to close the popup in FF and any other addons with one shot?

    Thank's but still no fix.
    In safe mode everything works.
    Without Zotero - everything works.
    When the popup is loaded with Zotero, the tab shows a constant "Loading" with the circular in process icon.
    The Zotero icon shows to the left of the tab.
    If I right click on Zotero and close it, the close() js works properly
    Is there a way to do a window.open() with:
    A. no tabs -or-
    B. block all add on's -or-
    C. to kill an add on
    before doing the close()?

Maybe you are looking for

  • My Menu - Add a Query Print Layout to the Report Folder

    This is a newb question.  I can easily add a Query or form or most anything else to the Folders under My Menus ... But how can I add a specific Print Query Layout to the Reports folder un My Menu? I know it is simple but I can not find the steps in t

  • Help with Mail & Digital Signatures

    My work is moving to Common Access Cards and digitally signed email. I can't get Mail to bring up the digital signature icon when I use the CAC card. It works fine with a software certificate, but I can't use that. The certificates in the CAC show up

  • WiMAX connection problem

    Hi all, I can't figure out what's wrong with my Beceem connection manager. I'm following this guide: http://minhazulhaq.blogspot.com/2012/01 … -mint.html Processing configuration file ============================= Reading CM Server options file '/etc

  • Sqlexception ,when trying to access stored procedure

              hi           i have a strange problem, iam using jsp code for accessing stored procedure in sql           server database, below is my java code which calls stored procedure,           <%                CallableStatement cstmt=null;        

  • Error in panelsplitter navigator in Mobile ADF Form

    Hi, I have created employees list as navigator and in the paneitem, details of the selected employee as per the example given in ADFMobileTutorial. But when i deploy and testing the application, if i select an employee in the navigator and click on t