How : Close PopUp after 10 seconds

Hello I have a popup with a info text .  The popup should close after 10 seconds.
I have create I View in the PopUp with a TimeTrigger and this TimeTrigger fire the Exit Plug of the PopUp window.
but it doesn't work
PopUp Cal :
  data: context_node type ref to if_wd_context_node.
  data: lr_popup type ref to if_wd_window,
        lr_view_controller type ref to if_wd_view_controller.
  data: lr_api_comp_controller type ref to if_wd_component,
        lr_window_manager type ref to if_wd_window_manager.
  lr_api_comp_controller ?= wd_this->wd_get_api( ).
  lr_window_manager = lr_api_comp_controller->get_window_manager( ).
  lr_popup = lr_window_manager->create_window(
  modal               = abap_true
  window_name         = 'W_POPCOUNTER'  "Name of the window created in step 2
  title               = 'Please enter all information'
  close_button        = abap_true
  button_kind         = if_wd_window=>CO_BUTTON_OK
  message_type        = if_wd_window=>co_msg_type_warning
  close_in_any_case   = abap_false
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
  lr_popup->open( ).

Thanks for your soultion.  Now I have the problem that my abap code not wait until the popup is closed.
Have you a solution for this ?
  lr_popup = lr_window_manager->create_window(
  modal               = abap_true
  window_name         = 'W_POPCOUNTER'  "Name of the window created in step 2
  title               = 'Please enter all information'
  close_button        = abap_true
  button_kind         = if_wd_window=>co_button_ok
  message_type        = if_wd_window=>co_msg_type_warning
  close_in_any_case   = abap_false
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
  lr_popup->open( ).
'/// Not Waitung
concatenate lv_numbersessions_str ' Active User Session from  ' iv_sid ' on system are killed' into g_text.

Similar Messages

  • Don't close popup window on action

    Hello!
    I have a popup window, which contains another window from my component. I assigned actions to buttons. I need not to close popup after action in some cases. I want to decide in action's method. How can I avoid closing the popup?
    Edited by: Konstantin Milutin on Feb 24, 2010 12:55 PM

    Hi,
    when u are creating the pop up window then there is a parameter close_in_any_case set its value as abap_false.

  • Force to close popup

    Hello,
    Im using Jdeveloper 11g .
    I have popup.On the popup you can choose what kind of file do you want to open and to press OK button for opening file. And everything works fine. But I want to close popup when you choose file nad after pressing button OK.
    On other popup this is work corectly but here not, because button is calling fileDownload.
    This is way how i usualy clos popup:
    FacesContext context = FacesContext.getCurrentInstance();
    String popupID= popID.getClientId(context);
    StringBuilder script = new StringBuilder();
    script.append("var popup3 = AdfPage.PAGE.findComponent('").append(popupID).append("'); ").append("if (popup3.isPopupVisible()) { popup3.hide();}");
    ExtendedRenderKitService erks = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    This is button:
    <af:commandButton text="OK" id="cb1"
    actionListener="#{backingBeanScope.Izvodi.closePopup}">
    <af:setActionListener from="#{pageFlowScope.idIzvoda}" to="#{pageFlowScope.Print.jasperParam}"/>
    <af:setActionListener from="eizvod" to="#{pageFlowScope.Print.jasperTip}"/>
    <af:setActionListener from="#{backingBeanScope.Izvodi.vrstaStampeSufiks}" to="#{pageFlowScope.Print.jasperVrsta}"/>
    <af:fileDownloadActionListener contentType="application/x-download" method="#{pageFlowScope.Print.printReport}" filename="#{backingBeanScope.Izvodi.pdfXls}"/>
    <af:resetActionListener/>
    </af:commandButton>
    Do you have idea how to force to close popup after pressing button OK????
    Thanks!!!!

    I really dont know how it doesnt work for me.
    Please, take a look.
    <af:popup id="popStampaj" eventContext="launcher" launcherVar="source" contentDelivery="lazyUncached" binding="#{backingBeanScope.Izvodi.popStampaj}">
    Bean:
    import oracle.adf.view.rich.component.rich.RichPopup;
    private RichPopup popStampaj;
    public void closePopup(ActionEvent actionEvent) {
    popStampaj.hide(); // method hide not found
    public void setPopStampaj(RichPopup popStampaj) {
    this.popStampaj = popStampaj;
    public RichPopup getPopStampaj() {
    return popStampaj;
    It is all. I really dont know what is problem. How do you have method hide() and I dont have???
    Do you use the same version JDeveloper like me?
    Thanks :)
    Edited by: djavolchic on 09.06.2010. 03.53

  • Close popup on completion of procedure

    I have built a custom popup that I use to record a value in conjunction with the current screen. The popup gathers values from the current screen, asks the user for a little more input, then saves the records. The procedure is working great. After the procedure completes, I would like to close the popup window.
    I've tried two things: using a Close Popup Window procedure and using hints from this thread:
    Re: Close popup after MRU
    I had it working (the close part) but I had to go back and alter some of my page and now it isn't working again. Can someone suggest what to look at?
    HTML header:
    <script language="JavaScript" type="text/javascript">
    function closeWindow()
    if ( document.getElementById("P1069_SAVESTATUS").value == 'R' )
      window.opener.location.href=window.opener.location.href;
      window.close();
    </script>One HTML region, source is:
    <script language="JavaScript" type="text/javascript">
      onLoad="closeWindow();"
    </script>Region item P1069_SAVESTATUS     is set as Hidden, set to 'N' when session state is null.
    Process is as follows (triggered by FINISH button):
    declare
      v_job        NUMBER     := :P1069_TC_ID;
      v_dt         DATE       := to_date(:P1069_DT,'MM/DD/YYYY');
      v_emp        NUMBER     := :P1069_EMP_ID;
      v_pkg        NUMBER     := :P1069_PKG_ID;
      cursor c_pkg is select COURSE_ID from TRAINING_PKG_ASSIGN
                where COURSE_PKG_ID = v_pkg and COURSE_ID > 0
                order by COURSE_ORDER;
      v_crs        NUMBER;
      v_eemp       NUMBER     := :G_USER_ID;
      v_edt        DATE       := SYSDATE;
    begin
      delete from EMP_TRN_HISTORY
       where TC_ID = v_job;
      open c_pkg;
        LOOP
          FETCH c_pkg into v_crs;
          EXIT WHEN c_pkg%NOTFOUND;
            insert into EMP_TRN_HISTORY (EVENT_ID, EVENT_DATE, TRN_CRS_ID,
                  ENTRY_EMP_ID, ENTRY_DATE, TC_ID, EMP_ID, PKG_ID)     
               values (SEQ_EMP_HISTORY.nextval, v_dt, v_crs,
                     v_eemp, v_edt, v_job, v_emp, v_pkg);
        END LOOP;
      close c_pkg;
      :P1069_SAVESTATUS  := 'R';
    end;

    Try changing the HTML in your region to
    <script language="JavaScript" type="text/javascript">
      closeWindow();
    </script>the onload="" notation would be used if you were putting the function call in the <BODY> tag of the page.

  • Automatically close a af:popup after X seconds

    Hi everybody,
    Is there a way to close automatically a popup after X seconds ?
    I don't see a solution for now and users don't want to click on the "Ok" button...
    Thanks for your help,
    Vincent.

    Or if you don't want to use a note window, you can put an af:poll component in the popup and close the popup in the pollListener attached to the poll component close the popup.
    Timo

  • "Mail" application "closes unexpectedly" after a few seconds.

    “Mail” application "closes unexpectedly" after a few seconds.
    I use "Mail 1.3.11" to hnadle my e-mail. It works fine.
    This weekend, due to a problem with an address, the server of my University has delivered more than 1000 messages to my account.
    When I have opened "Mail 1.3.11" those messages have begun to enter into the "in" mail box. I have stoped it but anyway a good quantity of them have entered.
    I have already solved the server issue but now that I want to empty those messages from "Mail 1.3.11" I cannot since the application "closes unexpectedly" a few seconds after opening it without letting me do anything.
    How could I open and kept open my "Mail 1.3.11" until I am able to clean it?
    Thank you,

    [kmosx: Apps unexpectedly quit|http://discussions.apple.com/thread.jspa?messageID=607542&#607542]

  • Why pdf files close automatically after a few seconds?

    I recently re-installed Acrobat XI Pro and when I now open a pdf files it closes automatically after a few seconds - any one knows why and how to solve this problem?

    You may have to reinstall or do a repair, one of the two. I would start with the repair from the help menu. Then do the updates also in the help menu. See if that fixes the issue. If not, you may have to reinstall. If you reinstall, use http://labs.adobe.com/downloads/acrobatcleaner.html and then remove any left over parts of the Acrobat folder, reboot, and reinstall. Then do the updates.

  • Facebook will open on safari but will close after seconds on iphone 3gs

    facebok will open on safari but will close after seconds on iphone 3gs

    Its probably a bug.I don't know how to fix it.

  • How to get a second page in a form letter report after create it by Wizard

    How to get a second page in a form letter report after create it by Wizard
    i've built a report by wizard with a sql-Query
    the sql give me back for example 3 dataset
    and the report prints 3 pages
    dataset 1 - page 1
    dataset 2 - page 1
    dataset 3 - page 1
    thats ok,
    but now I need a second page per dataset ( with only a text )
    so that the report should print 2 pages per dataset
    dataset 1 - page 1 ,page 2
    dataset 2 - page 1 ,page 2
    dataset 3 - page 1 ,page 2
    It's not really clear for me, what to do, to create the second page
    any help ?

    .... found answer in other forum

  • How do I close apps after I have updated them? I have 30 apps saying open.

    How do I close apps after I have updated them? I have 30 apps saying open after I have updated them.
    IPin other words, all of my updates are still showing on the screen after they have been updated.

    The word 'OPEN' next to the name of the app doesn't mean the app is running. Instead, it is a button you can use to launch the App.
    If you don't do anything, then the list will eventually disappear on its own, along with all those buttons saying 'OPEN'.

  • Hi, I just installed my Creative Suite 6 and the programs close right after launching (for about 5 seconds) with no dialog box about an error. I have tried uninstalling and re-installing but still the same thing. Help pls!

    Hi, I just installed my Creative Suite 6 and the programs close right after launching (for about 5 seconds) with no dialog box about an error. I have tried uninstalling and re-installing but still the same thing. Help pls!

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • When i try to create an account on my iphone 5, icloud closes right after accepting the general condition. How can i create my account????

    When i try to create an account on my iphone 5, icloud closes right after accepting the general condition. How can i create my account????

    Reset and try again.
    Reset: Press and hold Power and Home button until Apple logo appears. Release and wait to reboot.

  • How to close PopUp (from taskflow region)???

    Can someone, please, explain how to solve this use-case:
    I have PopUp in which I put a region (in which is a small TaskFlow consiting of 2 JSFFs). I want to have Cancel and OK buttons in both JSFFs in TaskFlow. How to close PopUp from within TaskFlow ??? I saw the TaskFlow Return component in ADF TaskFlow diagram components (in palette) but haven't found any help/documentation on it. Or, should I use Return listener on command button used to rise popup (but, still, how to close popup from taskflow?)?
    Any help would be great!
    Thanks in advance,
    Marko

    mimarko,
    Regions/Taskflows are meant to be isolated reusable components. They are not meant to
    have knowledge of their parent or container. That said, code contained with in a region should not attempt to reach out an modify the parent. Regions can fire contextual events that can be handled by a listener declared in the parent pages pageDef. However, attempting to close a popup from a context listener would be bad practice. The easiest fixt is to put the popup in the taskflow for your region. That will create a reusable popup that you can use through out your application.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Close session after a period of time with a popup mesage

    hey ,
    my requirement is to display a popup mesage if the user didnt touch the system after some time 
    - if the user didnt respond to the popup after 30 seconds the session will be closed .
    is there any FM ?
    regards
    ASA .

    follow this settings..
    To activate automatic logging off, do the following:
    Go to Profile Maintenance by choosing Tools --> CCMS --> Configuration  --> Profile Maintenance or the transaction RZ11.
    Maintain the parameter rdisp/gui_auto_logout. Enter the required number of seconds of inactivity before the user is logged off automatically.
    To deactivate automatic logoff, delete the parameter from the profile(s) or set the value '0'.

  • HT5858 How do you close apps after the new apple update?

    How do you close apps after the new apple update?

    Double tap the home button and swipe upwards on the preview of the App (not the App Icon).
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

Maybe you are looking for

  • 1.2 for OSX even worse than 1.1

    What's wrong with 1.2? I've just installed this on OSX and it's showing the wrong tables in my schemas, including an entry <null> as a table. In one schema it's showing no tables at all, yet I know there are about 30 tables... I reverted to 1.1 (tryi

  • Thread pool with AT MOST one thread at a time

    Hi, I want to create a pool that creates at most one thread when it is needed. I want the pool to terminate the thread when it is idle for some time. Executors.newSingleThreadExecutor() creates a thread pool with one thread, but this thread doesn't d

  • Photoshop elements trial version plugin not working with lightroom

    Hello, I just downloaded adobe photoshop element trial version. The plug-in is not working with my already installed Lightroom. Any idea what I need to do? Thanks!

  • How to select .app application package itself on Mac?

    Since IOpenFileDialog in CS6 does not support SetNavDlgOpFlags() anymore, I was forced to use AddCustomMenu(). But I could not find a solution or sample to select a Mac OS X application package (.app folder). This Open dialog just shows all the conte

  • Pro Import Crash

    I have used after Effects for Some time. I usually import Avid AAF for final colorization and effects. I recently updated to Creative Cloud. I just tried to import a Wedding that I did . When starting Pro Import CC crashes completely. I have to resta