Close Popup problem

Hello

I am developing a DateChooser custom which will display several months at a time. I've created a popup window witch contains the month and created an event that fires when a date is selected. Now it all works, but when I try to close the pop-up window I get an error.

Source:

private void dateSelected(event:DateChangedEvent):void {}

trace (event.selectedDate);                         The trace shows the date

PopUpManager.removePopUp (dpw);

}

The error:

TypeError: Error #1009: cannot access a property or method of a null object reference.

at mx.managers::FocusManager/childHideHandler() [E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\managers\FocusManager.as:1744]

to::EventDispatcher/dispatchEventFunction() flash.events

to::EventDispatcher/dispatchEvent() flash.events

at mx.core::UIComponent/dispatchEvent() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]

at mx.core::UIComponent/setVisible() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:3038]

to mx.core::UIComponent / set visible() [E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:2997]

at mx.controls::CalendarLayout/mouseUpHandler() [E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\controls\CalendarLayout.as:2497]

Any help is appreciated!

This is a bug in Flex.  Please fill in a bug if there is not already one.

One solution would be to not remove the popup after a mouseUp

Tags: Flex

Similar Questions

  • close popup after download

    Jdev 11.1.1.7

    I have a poopup that has 2 buttons, download another file cancel as indicated:

    quest.png

    popup codes is:

    < af:popup id = "p3".

    Binding = "#{pageFlowScope.BeanName.downloadBulkRolePopup} '"

    contentDelivery = "immediate" >

    < af:dialog id = "d5" type = "id ="pgl29"layout ="vertical"nLayout >"

    < af:panelGroupLayout id = "pgl31" layout = "horizontal" >

    < af:spacer width = "30" height = "50" id = "s22" / >

    "" < af:selectOneChoice label = "Please select a Type" id = "soc4" autoSubmit required = "true" = "true" value = "".

    Binding = "#{pageFlowScope.BeanName.selectTypeSOC_binding}" >

    < af:selectItem label = 'G' value = 'G' id = "si7" / >

    < / af:selectOneChoice >

    < / af:panelGroupLayout >

    < af:panelGroupLayout id = "pgl30" layout = "horizontal" >

    < af:spacer width = "20" height = "50" id = "s23" / >

    < af:commandButton text = "download the role in bulk" id = "cb8.

    inlineStyle = "do-size: small;" do-family: Arial; make-weight: bold; ">

    < af:fileDownloadActionListener filename = "BulkRole.csv"

    contentType = text/csv"; "charset = utf - 8"

    Method="#{pageFlowScope.BeanName.OrgTypeBulkRoleDownloadCSV_ActionListener}"/ >

    < / af:commandButton >

    < af:spacer width = "40" height = "50" / >

    < af:commandButton text = 'Cancel' id = 'commandButton5' immediate = "true".

    inlineStyle = "do-size: small;" do-family: Arial; make-weight: bold; »

    actionListener="#{pageFlowScope.BeanName.cancelDownloadActionListener}"/ >

    < / af:panelGroupLayout >

    < / af:panelGroupLayout >

    < / af:dialog >

    < / af:popup >

    Cancel of works well as:

    {} public void cancelDownloadActionListener (ActionEvent actionEvent)

    this.getDownloadBulkRolePopup () .hide ();

    }

    But when calling () .hide () this.getDownloadBulkRolePopup; for the download after the download code button, it does not close the pop-up window as expected

    Please notify

    This is because fileDownloadActionListener calls internally the responseComplete(); and you can't do anything after that

    So use this way:

    http://www.gebs.ro/blog/Oracle/affiledownloadactionlistener-generate-export-and-close-popup/

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • Restart TaskFlow bounded for every close popup in ADF

    Hello

    I created a taskflow running in the popup, starts everytime I close popup., where he finished.
    How can I re - start taskflow for each closing of the pop - up... ?

    Note: A button opens a popup and after the success of all the steps in a workflow, then iam closing popup. Even in this case by clicking the watch button will empty popup (not not from the default activity of taskflow).


    Kind regards.

    Hi again.

    Sorry delay I was a little testing this issue.

    Please in your defined configuration task Flow, on the behavior tab uncheck 'data controls share workflows with the appeal '.
    Or set manually in the task definition xml stream:

    
          
    
    

    Kind regards.

  • Screen Popup problem

    Hello

    I need to display a popup with a message and two buttons and based on the selection of button I want to do an action.

    I am able to display the popup screen with buttons. But the buttons do not update.

    Please find the code below. Can someone tell me where I was wrong.

    Thanks in advance.

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    
    class RegPopup extends Screen {
    
    private final static int _CUSTOM_SIZE = 150;
    private final static int _ALPHA = 0xBF; // 75% alpha
    private final static int _X = ( Display.getWidth() - _CUSTOM_SIZE ) >> 1;
    private final static int _Y = ( Display.getHeight() - _CUSTOM_SIZE ) >> 1; 
    
    private LabelField wait = null;
    private LabelField status = null;
    VerticalFieldManager vm = null;
    ButtonField try_button = null;
    ButtonField exit_button = null;
    
    RegPopup() { 
    
    super( new VerticalFieldManager(VerticalFieldManager.VERTICAL _SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR));
    init();
    }
    
    private void init(){
    wait = new LabelField( "Please wait ..." );
    this.add(wait);
    //this.setFocus();
    }
    public void setMessage(String message){
    if(message != null){
    status = new LabelField(message);
    this.add(status);
    this.add(new RichTextField(Field.NON_FOCUSABLE));
    addButton();
    changeMessage();
    }
    }
    
    private void addButton(){
    vm = (VerticalFieldManager)this.getDelegate();
    //vm.setVerticalScroll(0);
    //vm.setFocus();
    HorizontalFieldManager midManager = new HorizontalFieldManager(HorizontalFieldManager.FIEL D_HCENTER | HorizontalFieldManager.HORIZONTAL_SCROLL);
    try_button = new ButtonField("Try Again");
    exit_button = new ButtonField("Exit");
    // try_button.setFocus();
    
    try_button.setChangeListener(new FieldChangeListener(){
    public void fieldChanged(Field field, int context) {
    ButtonField buttonField = (ButtonField) field;
    
    closePopup();
    
    }
    });
    exit_button .setChangeListener(new FieldChangeListener(){
    public void fieldChanged(Field field, int context) {
    ButtonField buttonField = (ButtonField) field;
    
    //System.exit(0);
    
    }
    });
    
    // midManager.setFocus();
    midManager.add(try_button);
    midManager.add(exit_button);
    
    vm.add(midManager);
    
    //this.add(vm);
    
    }
    private void closePopup(){
    this.close();
    }
    /**
    * This method repaints the screen with new Message
    * Added by Koka Phani
    */
    private void changeMessage(){
    
    final Screen scr = this.getScreen();
    if(scr!= null){
    UiApplication.getUiApplication().invokeLater (new Runnable() {
    
    public void run(){
    try{ 
    
    scr.invalidate();
    
    }catch(Exception e){}
    }
    });
    } 
    
    }
    protected void sublayout( int width, int height ) {
    setExtent( _CUSTOM_SIZE, _CUSTOM_SIZE );
    setPosition( _X, _Y );
    layoutDelegate( _CUSTOM_SIZE, _CUSTOM_SIZE );
    }
    
    protected void paintBackground( Graphics g ) {
    XYRect myExtent = getExtent();
    int color = g.getColor();
    int alpha = g.getGlobalAlpha();
    g.setGlobalAlpha( _ALPHA );
    g.setColor( Color.BLACK );
    g.fillRect( 0, 0, myExtent.width, myExtent.height );
    g.setColor( Color.WHITE);
    g.setGlobalAlpha( alpha );
    }
    
    public boolean onClose(){
    return false;
    }
    }
    

    Hi all

    Thanks for your time. I found the problem. Stupid mistake not having not try catch blocks to debug.

    The problem is that I update the screen with calling the call later.

    Once again thank you for your time.

    Concerning

    Koka

  • Popup problem

    Hey all,.

    I've set up a popup window to display information.  I've got 7 of them on the same page.  They all work very well, but with one problem.  The problem is that when you close the 'x' in the upper right pop, the window (for example the 7th), it runs through all the previous popup windows.  Someone would please good enough to let me know where I was wrong?  Thank you.

    The CSS for the pop-up

    <style>
    *, *:before, *:after { box-sizing: border-box; }
    
    
    .modal-container {
      margin: 0 auto;
      padding-top: 0px;
      position: relative;
      width: auto;
    }
    
    
    .modal-container .modal-backdrop {
      height: 0;
      width: 0;
      opacity: 0;
      overflow: hidden;
      transition: opacity 0.2s ease-in;
    }
    
    .modal-container #modal-toggle {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 100%;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    
    .modal-container #modal-toggle:hover ~ button { background: none; }
    
    .modal-container #modal-toggle:checked {
      width: 100vw;
      height: 100vh;
      position: fixed;
      left: 0;
      top: 0;
      z-index: 9;
      opacity: 0;
    }
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop {
      background-color: rgba(0, 0, 0, 0.6);
      width: auto;
      height: auto;
      position: fixed;
      left: 0;
      top: 0;
      z-index: 9;
      pointer-events: none;
      opacity: 1;
    }
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content {
      background-color: white;
      max-width: 250px;
      width: auto;
      height: auto;
      padding: 10px 30px;
      position: absolute;
      left: calc(50% - 125px);
      top: 50%;
      border-radius: 4px;
      z-index: 999;
      pointer-events: auto;
      cursor: auto;
      box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6);
      overflow: auto;
    }
    @media (max-width: 300px) {
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content { left: 0; }
    }
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close {
      color: gold;
      position: absolute;
      right: 0px;
      top: 0;
      padding-top: 7px;
      font-size: 16px;
      width: 25px;
      height: 28px;
      font-weight: bold;
      text-align: center;
      cursor: pointer;
    }
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close.button {
      top: initial;
      bottom: 20px;
      right: 20px;
      background: none;
      color: #fff;
      width: auto;
      padding: 7px;
      border-radius: 2px;
      font-size: 14px;
      font-weight: normal;
    }
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close.button:hover {
      color: #fff;
      background: none;
    }
    
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close:hover { color: white; }
    
    </style>
    

    PHP for each of the Pop Ups

    // total hours
    
    $total_hour_msg = "This is calculated by adding your Paid Hours (".$tot_hrs_pd.") to your Total Unpaid Hours (".$total_hours_unpaid.").";
    
    echo "<tr><td>";
    echo "<div class=\"modal-container\">";
      echo "<input id=\"modal-toggle\" type=\"checkbox\">";
      echo "<button style=\"border: none; background: none;\">Total Hours <img src=\"images/help.png\" style=\"height: 18px; margin-left: 15px;\"></button>";
      echo "<div class=\"modal-backdrop\">";
        echo "<div class=\"modal-content\">";
          echo "<label class=\"modal-close\" for=\"modal-toggle\">x</label>";
          echo "<span>".$total_hour_msg."</span></a></td><td style =\"min-width: 25%; width: auto;\">".$total_hours."</td></tr>";
        echo "</div>";
      echo "</div>";
    echo "</div>";
    echo "</td></tr>";
    

    You use the same ID 7 times more. It takes trouble.

    Personally, I would have a modal dialog box with the content transmitted through variables.

    What follows is a modal (Bootstrap) which shows a YouTube video when the user clicks on a link

    
    

    and here's the JavaScript code to manage content and modal behaviour.

    // BOOTSTRAP 3.0 - Open YouTube Video Dynamicaly in Modal Window
    // Modal Window for dynamically opening videos
    $('a[href^="http://www.youtube.com"]').on('click', function(e){
    // Store the query string variables and values
    // Uses "jQuery Query Parser" plugin, to allow for various URL formats (could have extra parameters)
    var queryString = $(this).attr('href').slice( $(this).attr('href').indexOf('?') + 1);
    var queryVars = $.parseQuery( queryString );
    
    // if GET variable "v" exists. This is the Youtube Video ID
    if ( 'v' in queryVars )
    {
    // Prevent opening of external page
    e.preventDefault();
    
    // Calculate default iFrame embed size based on current window size
    // (these will only be used if data attributes are not specified)
    if ($(window).height() < $(window).width()) {
        var vidHeight = $(window).height() * 0.7;
        var vidWidth = vidHeight * 1.77777;
    } else {
        var vidWidth = $(window).width() * 0.9;
        var vidHeight = vidWidth / 1.77777;
    }
    if ( $(this).attr('data-width') ) { vidWidth = parseInt($(this).attr('data-width')); }
    if ( $(this).attr('data-height') ) { vidHeight = parseInt($(this).attr('data-height')); }
    var iFrameCode = '';
    
    // Replace Modal HTML with iFrame Embed
    $('#mediaModal .modal-body').html(iFrameCode);
    // Set new width of modal window, based on dynamic video content
    $('#mediaModal').on('show.bs.modal', function () {
    // Add video width to left and right padding, to get new width of modal window
    var modalBody = $(this).find('.modal-body');
    var modalDialog = $(this).find('.modal-dialog');
    var newModalWidth = vidWidth + parseInt(modalBody.css("padding-left")) + parseInt(modalBody.css("padding-right"));
    newModalWidth += parseInt(modalDialog.css("padding-left")) + parseInt(modalDialog.css("padding-right"));
    newModalWidth += 'px';
    // Set width of modal (Bootstrap 3.0)
    $(this).find('.modal-dialog').css('width', newModalWidth);
    });
    
    // Open Modal
    $('#mediaModal').modal();
    }
    });
    
    // Clear modal contents on close.
    // There was mention of videos that kept playing in the background.
    $('#mediaModal').on('hidden.bs.modal', function () {
    $('#mediaModal .modal-body').html('');
    }); 
    

    Note my use of an ID because it occurs only once in my document.

    See run at BunchOBlokes - videos

  • Shuttle Popup problem

    Hello

    I'm struggling with this problem for a few days. I have popup containing the shuttle and a "submit" button. User can select values in the shuttle and on submit I want the value to be entered in the text box on the homepage as a comma-separated string. The first TI looked simple, but when I started to be implemented, I'm dealing with a lot of problems. What I've done,
    1. to send popup - after calculations and Validations, I called a process of PL/SQL
    DECLARE
    l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
    v_valPass varchar2 (200);
    BEGIN
    -Convert the string two points separated values in a PL/SQL table

    l_selected: = APEX_UTIL. STRING_TO_TABLE(:P2_POPUP_SHUTTLE);

    -Loop on the table to build the string to pass to the back
    BECAUSE me IN 1.l_selected.count
    LOOP
    IF i = l_selected.count
    THEN
    v_valPass: = v_valPass | l_selected (i);
    ON THE OTHER
    v_valPass: = v_valPass | l_selected (i) | ',';
    END IF;
    END LOOP;
    : P1_MAINPAGE_TEXTAREA: = v_valPass;
    END;

    with the above code, I can't get value: P1_MAINPAGE_TEXTAREA with ONLY to refresh the page, but I do not want to refresh the home page. so I thought this value through javascript by adding code to the PL/SQL block above below.
    --------------------------------------------------------------------------------------
    -the comma separated in application value point F115_HUC_VALUE
    APEX_UTIL. SET_SESSION_STATE ('F115_HUC_VALUE', v_valPass);
    -(Get_temp_val) function to get the value of the item Application F115_HUC_VALUE see code below
    HTP.prn (get_temp_val); -able to get to this point
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ("alert (" value = > "+ ' |)") get_temp_val |') ;") ; -Here I get the error message
    HTP.p ('opener.document.getElementById (": P1_MAINPAGE_TEXTAREA") .value = ' | get_temp_val |) ';');
    HTP.p ('window.close ()');
    HTP.p ("< /script >");
    END;

    -----------------------------------------------------------------------
    create or replace FUNCTION get_temp_val
    RETURN VARCHAR2
    AS
    BEGIN
    V RETURN ('F115_HUC_VALUE');
    END;
    ---------------------------------------------------------------------------
    The problem here is that if the value is comma, after this line, I get the error message.
    HTP.p ("alert (" value = > "+ ' |)") get_temp_val |') ;") ;
    How to read the value of PL/SQL in javascript?

    Is there a simple way to implement the functionality I'm looking for?

    booth.

    Hello:

    You can not call a pl/sql JS function, as you seem to do. What you are trying to achieve can be done as follows

    Delete the page defined process to format the value of P2_POPUP_SHUTTLE etc.
    Change the target of the button that submits the pop-up to be URL
    For the URL, specify

    javascript:setValue()
    

    Define a process named 'FORMAT_STRING' with a process "at the request...". ».
    Use the code below for the application process

    DECLARE
    l_selected APEX_APPLICATION_GLOBAL.VC_ARR2;
    v_valPass varchar2(200);
    BEGIN
    -- Convert the colon separated string of values into a PL/SQL array
    
    l_selected := APEX_UTIL.STRING_TO_TABLE(:P2_POPUP_SHUTTLE);
    -- Loop over array to build the string to pass back
    FOR i IN 1..l_selected.count
    LOOP
    IF i = l_selected.count
    THEN
    v_valPass := v_valPass || l_selected(i);
    ELSE
    v_valPass := v_valPass || l_selected(i) || ',';
    END IF;
    END LOOP;
    :P1_MAINPAGE_TEXTAREA := v_valPass;
    htp.prn(v_valPass);
    END;
    

    Add the JS below into the HTML of the page popup header

    
    

    CITY

  • close PopupScreen problem

    Hello

    I have a PopupScreen which is called from an EditField inside of a screen.

    When I close the PopupScreen using the ESC key and the following code, the screen gets closed as well. I want only the PopupScreen to close, not the screen. Any ideas on what could be the problem?

    public boolean keyDown(int keycode, int time)
        {
        if (Keypad.key(keycode) == Keypad.KEY_ESCAPE)
            {
            close();
            return true;
            }
        else if (Keypad.key(keycode) == Keypad.KEY_ENTER)
            {
            AcceptEntry();
            return true;                }
        return super.keyDown(keycode, time);
        }
    

    Thank you

    Override keyChar rather than keyDown.

  • Close popup screen programmatically

    I have a popup screen that I displayed to inform the user that they are wating on entry. When I try to close it in my earpiece method it gives the error:

    IllegalStateException - UiEngineImpl.assertHaveEventLock)

    I push the pop-up screen on the stack using a runnable.invokeAndWait and push as a ModalScreen because otherwise it will not show.

    What is the error of assertHaveEventLock for, and why the window display not using invokeLater and pushScreen?

    The IllegalStateException is thrown because the thread that calls the close method (the listener) is not the thread main event.  Calling the method close must occur in a block, as described on the next page.

    How - to upgrade a screen on the main event Thread
    Article number: DB-00136

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

  • QT Close window problem

    Hello

    I have a shutdown problem Qt QMainwindows on BB10 / Dev Alpha. I have a QMainwindow parent who created a QMainwindow child who is open, allows you to set some options for the user, then closed (I would close but not destroy the window if possible).

    The window is created as follows:

    gW_Options = new COptions(this);
    gW_Options->showFullScreen();
    

    and closed by a button on the form:

    void COptions::on_pbClose_clicked()
    {
        this->close();
    }
    

    It works on the Nokia N9 / N900 (screen disappears and the user sees the parent window), but on the Dev Alpha, the child window remains on the screen and accept no other entry.

    Anyone has any suggestions please? I have only a QMainwindow? I need to convert this child window of a dialog box instead?

    Note: I prefer not to create the window with Qt::WA_DeleteOnClose set such that it is useful to have the hidden window to reuse them later.

    Thank you

    Tom

    Edit: I tried several other options, including: showMinimized(); masquer(); parent-> raise(); parent-> showFullScreen() but no luck yet.

    Hello

    It seems that the cause of this problem was the showFullScreen() method. I opened the window as follows:

       gW_FEMView = new CGUI_FEVMob(this);
       gW_FEMView->setAttribute(Qt::WA_DeleteOnClose,false);
       gW_FEMView->showFullScreen();
    

    but now open it with:

       gW_FEMView = new CGUI_FEVMob(this);
       gW_FEMView->setAttribute(Qt::WA_DeleteOnClose,false);
       gW_FEMView->show();
    

    To close the window that I use:

       (*this).hide();
       this->parentWidget()->activateWindow();
    

    My next job is to get the opening full screen of windows (either maximized or hard-coded I guess). But at least I don't get suspended app more )

  • events of button inside the popup does not close popup

    Hi all

    I have a requirement to create the popup to enter some lines. So I created integrated popup and I placed the table advanced inside the popup. Also, I placed a button (AddNewRow) with the partial action of fire in table advanced table actions. in the basic PFR page, I wrote for the event AddNewRow event action. Once I click on this button, its perfectly calling event written in base page. But the window closed. How to avoid close the pop up window because I have to do the creation of multiple line inside the popup.

    version: R12.1.3

    Please guide to achieve this.

    Thank you

    SAN

    I achieved this goal by creating a button with partialFireAction event and event action written inside the window popup controller.

  • Close popup region

    Hello gurus,

    I'm new in the adf and use Jdev 11.1.2.3. I have a popup in a page. Popup has an area that is created from an external jar file. This region is ok and Cancel button. I want to close the popup buttons in this region. Please give me idea and sample code how can I accomplish this task.

    Add under method in your managed bean:

    public RichPopup retrieveParentPopup (UIComponent component) {}

    System.out.println ("in retrieveParentPopup:-->" + component);

    If (component == null)

    Returns a null value.

    If (component instanceof RichPopup) {}

    return component (RichPopup);

    }

    Return retrieveParentPopup (component.getParent ());

    }

    Now, in the listener to the button action (used for closing popup), above the method call:

    retrieveParentPopup (uic) .cancel ();   where uic is UIComponent to your button object.

    I hope this helps.

  • After refresh in Internet Explorer popup problem (404)

    Hey there,

    We use JDeveloper 11.1.2.3.0.

    We have an index (jsf) page that contains a model and a dynamic region.

    During his connection, we decide what TF (bounded, fragments of the page) to load in the region (we have 2 main TF who call other 'sub' TF).

    When we have one open a random popup (based on a TF, stubborn, no fragment of page) the first time that everything works as expected but when switch us to another language and try to open the same / another pop-up window, we get a 404.

    This problem occurs in IE8, IE9 and IE10 (perhaps in other versions as well) and in all environments (local, dev, prod,...). When loading of the pop-up window, we see the content for a few milliseconds and then comes the 404.

    The access log example:

    06/Aug / 2013:14:32:40 + 0200 < IP > GET /astm/faces/team-responsibles-add-edit-train-btf/select-teams HTTP/1.1 200
    06/Aug / 2013:14:32:40 + 0200 < IP > GET /astm/faces/team-responsibles-add-edit-train-btf/select-teams?_adf.ctrl-state=1cnndlhzmq_43 HTTP/1.1 404


    When we move from the language, a full page refresh happens (using

    JDeveloper, Oracle ADF & amp; amp; Java: Refresh the Page in Oracle ADF by Code Java

    ).

    The problem only occurs in Internet Explorer and that if we open a popup before we go to another language. No newspaper in JDeveloper NI WLS.


    This thread is somewhat similar:

    Fields disappear in Internet Explorer 8 and 9

    The user suggested replacing the parent calls with TF-calls, but we already use this approach.

    Any help would be appreciated.

    The problem lied with the refresh of the page. For some reason, IE couldn't handle the new root of the view.

  • Close Popup and Parent of redirection

    Hello

    I have an app with a report page (page 3) displaying the list of possibilities. Is there a button on the page to add an opportunity. By clicking on this button redirects to a form page (page 241) in a pop up window using the button action = url with the url redirection:
    javascript:html_PopUp('f?p=&APP_ID.:241:&SESSION.::&DEBUG.:241:P241_BRANCH_BACK_PAGE:&APP_PAGE_ID.','','800','900','yes','yes');
    On the popup form, there are two buttons. The Cancel button simply closes the window, with a redirect to the url:
    javascript:self.close();
    The Create button submits the page during the normal processing of DML. I added a process of last page in the page type popup 'close window' which is conditional when you press the button create. This everything works fine, the popup closes, the database is updated and the user is back on page 3 of the report.

    However, what I really need to do is rather than return them on the page of the report, I need to redirect to another page (page 242) where can add additional details on the line, they have just created in the form of popup.

    Is there a simple way to do this? I looked on the forum and the web widely. Maybe I do not use the right search terms because I have not found a solution. I tried various javascript methods to change the url of the parent window (for example, window.opener.href = "url of <>", but of course this does not work after the page has been submitted.)

    I suppose it would be possible to have a part of the application that I could set in the popup page and then have a branch "on load: before the header" on the report page that would check the value of this point for the application and redirect to the detail page (242) if it has been set to a particular value. Is there an easier and more direct way?

    Thank you!
    Mike

    Hi Mike,.

    Ok. Wouldn't be the after submit process Page only, or can you create for this purpose dynamic action (if you're on the APEX 4.0 or newer) or a process of Ajax if you on APEX APEX 4.0 prior version?

    I have change my sample application and added a few dynamic actions.
    There are now two buttons:
    1 'service select' - with the feature "old."
    2. "create Department" - with the "New" feature

    The "Create Ministry" button opens a popup window with a form to insert a new Department. When you click on the button 'Create' dynamic action will be drawn - inserts the new Department, redirects the new department number to the parent page, and after that, it opens the next page with information from the employee to the Department created fresh.

    Please test this example, that hopefully wins the "Right answer" mark ;-)

    http://Apex.Oracle.com/pls/OTN/f?p=20621:103

  • Close Popup after video is done playing

    Hello

    I want to ask you something. I ve integrated a video in a popup on an indesign document, which will play after that section of the folio is open. So, what I want to build is, that the popup closes automatically when the video is finished.

    How to do this?

    Thank you.

    Build a MSO and he then expire so that when the video is finished, the window disappears.

Maybe you are looking for