Modal windows while changing viewstack.selectedindex

Hi!
I have a viewstack and on one view I push a button and call
below function. The viewstack changes but the screen freezes
without showing me my alert box.
Using "proper" PopUpManager functionality and a custom
component did not solve the problem. So how do you do it?
I want to click a button, show an Alter or custom popup with
further buttons which kan be either "ok" or "cancel". "ok" would
trigger another funtcion, but does not have to.
Any idea?
public function doit():void {
//Alert.show("Your changes have been saved","Success");
pollContainer.selectedIndex = 0;
}

private function promptUser(e:MouseEvent):void {
Alert.show("Are you sure you want to....?", "??", Alert.YES
| Alert.NO, this, userConfirmation, null, Alert.YES);
private function userConfirmation(e:CloseEvent):void {
if (e.detail == Alert.YES) {
//YES .... DO X
} else {
//NO .... DO Y
}

Similar Messages

  • Error window while changing the value in SelectOneChoice.

    Hi I am facing a problem on change of values in SelectOneChoice, "ERROR For input string: "N"
    Below is how i am implementing SelectOneChoice:
    I am creating values for SelectOneChoice in a Java class:
    *SelectItem itemY=new SelectItem();*
    *itemY.setLabel("Yes");*
    *itemY.setValue("Y");*
    *confirmation.add(itemY);*
    *SelectItem itemN=new SelectItem();*
    *itemN.setLabel("No");*
    *itemN.setValue("N");*
    *confirmation.add(itemN);*
    Using this values in JSFF like this:
    *<af:selectOneChoice value="#{bindings.confURLSubmitted.inputValue}"*
    *label="Conference Website URL Submitted"*
    *required="#{bindings.confURLSubmitted.hints.mandatory}"*
    *shortDesc="#{bindings.confURLSubmitted.hints.tooltip}"*
    *binding="#{backingBeanScope.EditComplianceDetails.confURLSubmitted}"*
    *id="confURLSubmitted"*
    *unselectedLabel="Select One"*
    *autoSubmit="true"*
    *valueChangeListener="#{backingBeanScope.EditComplianceDetails.OnConfURLSubChange}">*
    *<f:selectItems value="#{pageFlowScope.generalLists.confirmation}"*
    *binding="#{backingBeanScope.EditComplianceDetails.si1}"*
    *id="si1"/>*
    *</af:selectOneChoice>*
    And in bean method i am trying to print the selected value in SelectOneChoice:
    *public void OnConfURLSubChange(ValueChangeEvent valueChangeEvent) {*
    *// Add event code here...*
    *System.out.println("this.confURLSubmitted.getValue() "+this.confURLSubmitted.getValue());*
    Now when i try to change the value in SelectOneChoice:
    I am getting an error window "ERROR For input string: "N"
    Any idea y i am getting this error.
    Thanks in Advance

    Remove selectOneChoice value binding and set static value and try
    *<af:selectOneChoice value="XXX"*
    label="Conference Website URL Submitted"
    required="#{bindings.confURLSubmitted.hints.mandatory}"
    shortDesc="#{bindings.confURLSubmitted.hints.tooltip}"
    binding="#{backingBeanScope.EditComplianceDetails.confURLSubmitted}"
    id="confURLSubmitted"
    unselectedLabel="Select One"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.EditComplianceDetails.OnConfURLSubChange}">
    <f:selectItems value="#{pageFlowScope.generalLists.confirmation}"
    binding="#{backingBeanScope.EditComplianceDetails.si1}"
    id="si1"/>
    </af:selectOneChoice>

  • Modal windows not frontmost

    I and many others have been having troubles with the Z-ordering of LabVIEW's windows for some time.
    While up until now it was mainly a nuisance it now has be angry.  I've experienced several times that a window which SHOULD be modal is appearing BEHIND other windows, essentially making my work with LabVIEW impossible bec ause none of the other windows respond and without mouse access to the actual modal window to close it, I have no point of entry to conttrol my software.  Looks like a deadlocked process when it's really the window management which is at fault.
    I'm currently looking at exactly such a problem in fromt of my eyes.  I'm not doing anything with win32 DLLs.  Running LV 32-bit on a 32-bit WinXP in a VM.
    Anybody else seeing this?

    TamMou wrote:
    Yes, apparently, this modal windows problem is generally encountered with Windows 7 and is not coming from LabVIEW:
    http://stackoverflow.com/questions/8367700/modal-windows-appearing-behind-others-in-windows-7
    http://www.opengl.org/discussion_boards/showthread.php/170214-Windows-7-fullscreen-OpenGL-Modal-dialogs-pb
    So there's no change of the LV environment being aware of this and simply taking steps to avoid it?  This is a big problem.

  • Adobe Form NOT getting displayed in WebDynpro Modal Window  (Pop Up)

    Hi,
    I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed for most of the users. In some PC's it is getting displayed, strange is all their browser versions and OS versions are same.
    Portal Version: NW04s SP8
    NWDS Version : NW04s SP8
    Adobe Live Designer: 7.1
    Acrobat Reader: 7.0.8
    I tried changing the display type (property of Interactive Form Element) to NATIVE, it is not working at all. If i change it to "activeX", then it works in some PC's.No logs are found in the server as well as in the client PC as well.
    Please let me know if you have come across this problem, looking forward to your solution.
    Thanks
    Senthil

    Hi,
    It seems to be available only for ABAP version. I cant find it in the java version.. check this..
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/656442a1c4de54e10000000a155106/frameset.htm">Help SAP Link for Java Reference</a>
    And even in ABAP , the pre-requisite seems to be installation of ACF,
    The exact words
    <i>
      Adobe Reader (>= 7.0) and, if you are creating interactive forms, also the ActiveX Control Framework (ACF) installed on your computer. Also see SAP note 834573.</i>

  • Adobe Form not getting displayed in WebDynpro Modal Window

    Hi,
    I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed for most of the users. In some PC's it is getting displayed, strange is all their browser versions and OS versions are same.
    Portal Version: NW04s SP8
    NWDS Version : NW04s SP8
    Adobe Live Designer: 7.1
    Acrobat Reader: 7.0.8
    I tried changing the display type (property of Interactive Form Element) to NATIVE, it is not working at all. If i change it to "activeX", then it works in some PC's.No logs are found in the server as well as in the client PC as well.
    Please let me know if you have come across this problem, looking forward to your solution.
    Thanks
    Senthil

    Hi,
    even though this is quite an old post, it still could be worth for someone to have a look at Note 1342716.
    Michal

  • Creation of blocking modal windows

    Hi
    I’m struggling, for sometime now, with the famous
    a-synchronic behavior of flex.
    I’m trying to develop a function that resembles the
    famous VB “MsgBox ()” and opens a UI container (e.g.
    like a Title window) in Modal mode while blocking the continuation
    of the rest of the code until the UI closes.
    I would like to be able to write something similar to the
    following set of commands:
    MsgBoxInFlex( …..); \\ blocks operation until UI closes
    if (x=……)
    Problem – as far as I know – is that such a call
    to a function (i.e. MsgBoxInFlex) returns the control to the
    calling code after the function has finished with no connection to
    UI container status. This means that the if command will be running
    as soon as the UI will be created and displayed.
    Is there a way to both create and work with on the UI
    container before the MsgBoxInFlex function returns?
    Is there a way to return after a different event - such as
    form closure?
    Is there a way to capture and block the creation completed
    event from being transmitted and decide on when to send it?
    Any ideas will be welcomed.
    Thanks
    Raz

    Thanks for your response –
    The problem with using popup modal windows (such as Alert) is
    that the calling program does not stop from executing while in VB
    (or in other tools) the application waits for the Modal window
    thread to return.
    Raz

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • Flash movie in IE modal window freezes

    Hi,
    We have a Flash application, written in AS 2, that presents system simulation to learners.  During the process we present "audio popups" using External Interface to call a JavaScript function that ultimately calls window.showModalDialog (It's for a corporate environment that requires IE).  The page it opens contains a flash file. When one of these audio popups occurs on the first step of the simulation, the flash in the popup is frozen.
    Is anyone aware of a scenario that could cause files in modal windows (or possibly just 2 Flash movies on the same page) to freeze up?  The file loads, but doesn't play beyond frame 1 and is unresponsive if there is a button.
    I can change the Flash file in the popup and the result is always the same, so it's not the file in the popup.
    I've replaced the Flash file on the root page with a simple launch file that only calls the popup and it works fine.
    Also replacing the modal window with a window.open seems to work as well, but right now we'd like to continue using the modal.
    Possibly worth noting, if the modal window is open for too long, I get a "A script in this movie is causing Adobe Flash Player 10 to run slowly...." notice when I close the popup.  Not sure if it's related.
    Thanks for any help,
    Jeff

    Hi kp
    Is this Captivate 1 or 2? There are no issues to my knowledge
    with either playing the movie in IE7. I use IE7 and see movies just
    fine.
    My question about version stems from the fact that there are
    typically more files to distribute with Captivate 2 than there are
    with Captivate 1. However, this can also depend on what you have
    selected when you publish. For example, in Captivate 1, you would
    have three files to ship if you used the .SWF output with the Full
    Screen option. There would be two HTML files and a .SWF.
    With Captivate 2, assuming you haven't deviated from the
    defaults, you have four files. Two .SWFs, one .HTM and a JavaScript
    file.
    When you said you see a "black" screen, does this mean the
    screen is really black? Or was that a typo and you meant to say it
    was "blank" instead. If so, you need to be aware that there is an
    additional file you need to include. If you fail to copy the
    JavaScript file, the page is blank. I'm thinking this is a strong
    possiblity here.
    Cheers... Rick

  • After system restore ,we are not able to activate the windows,while login to systems getting an error 0x800700B7

    after system restore ,we are not able to activate the windows, while login to systems getting an error 0x800700B7
    Cont-8096688758

    hi Jain,
    you may need to check the transfer structures,
    right click infosource and 'change', click 'comm.structure'/expand,
    click 'transfer', move the 0BASE_UOM from left to right side,
    or if you wont use the comm structure anymore, you can right click infosource and 'delete comm structure'
    hope this helps.

  • Modal Window to external Url

    Hello all!
    I found some forum posts but I couldn't find a solution on that.
    We are having two WDJ applications, running in portal. In application "A" I want to call application "B", whilst App "A" needs to be unmodifieable. I would prefer a pop up window of App "B" while "A" is locked as long as "B" is active (not finished).
    Portal eventing won't work, because it will not be shown next to each other but in two different windows.
    Best would be a modal window wherein App "B" is shown. but I can't figure out how I can show a wdj window popUp pointing to  another url.
    If anybody knows how to open a model pop up pointing to a url would be great, if anybody knows how to pass the event "finished" from that window to the other application would also be great
    We use 2004
    Thanks in advance
    Stefan

    Hi stefan..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/webdynpro/wd%20java/wd%20tutorials/inter-application-navigation%20in%20web%20dynpro.pdf
    URs GS

  • Is it possible to make a modal window resizable?

    Is it possible to make a modal window resizable?
    I am not sure that I have the best way to create modal windows in the first place.
    I have a TitleWindow which is hidden, and when I want to display it I make it visible and add it to thePopUpManager.
    For example here I have an "importing" window which is visible while the application imports some stuff:
        <mx:TitleWindow id="importingWindow" title="Importing Frame"
            layout="absolute" styleName="Blue"
            creationPolicy="all" visible="false"
            width="350" height="150"
            modalTransparency="0.3" modalTransparencyBlur="1" modalTransparencyColor="0x999999"
            modalTransparencyDuration="50">
                <mx:Label tabIndex="0" text="Importing... please wait!" left="55" top="45"/>
        </mx:TitleWindow>
                private function showImportingWindow():void
                    importingWindow.visible=true;
                     PopUpManager.addPopUp( importingWindow, this, true );
                    PopUpManager.centerPopUp( importingWindow );
                private function hideImportingWindow():void
                    PopUpManager.removePopUp( importingWindow );
                    importingWindow.visible = false;
    How would it be possible for this window to be resizable?
    If not through the TitleWindow, is there any other way to have a resizable window within the application? (i know the application window can be resizable, but what about windows within the application?)

    Yes, but not as easily as you can make a normal window resizeable (AFAIK).  You would need to handle it all yourself by adding a resize area with listeners, etc.

  • Modal window

    Hi,
         In my application dynamically create the window component using "popUpmanager" with "non modal" but when i click the button how to change the "modal" window component .
    EX:
    import mx.managers.PopUpManager
    import mx.containers.Window
    win = PopUpManager.createPopUp(_root, Window, false,{closeButton:true,title:"welcome"});
    win._x=50;
    win._y=50;
    btn.onPress=function()
        trace("click");
        win.modal = true ;
    It is not working...

    Hi Indrika,
    Sometimes, it may be necessary for developers to create UIX pages which launch other pages. In order to make this easier, UIX provides a client-side Javascript function -- openWindow() -- which developers can call to manage the launching of their new browser windows. This same function is used internally by UIX, and it is located in the oracle.cabo.ui.jsLibs.MarlinCore.js library. This library is already loaded in most UIX pages.
    To use the openWindow() function, you will need to pass it a few parameters:
    parentWindow: A required parameter which is the existing window which creates the new window. For modal windows, this is the window to which the new window will be modal.
    srcURL: Also required, the URL for the contents of the new window.
    windowName: Name that identifies the new window for URLs. It is required if a "closeCallback" function is provided.
    features: a Javascript Object whose same properties (and their values) will be set on the newly created window.
    isModal: a boolean which will cause the window to be modal if set to true.
    kind: The type of window to create, either 'document' or 'dialog'. The default is dependent on the value of isModal--'document' for modeless, 'dialog' for modal.
    closeCallback: a function which will be called when the newly created window is finally closed.
    The function will return a pointer to the new window Object it it was successfully created, or null otherwise.
    I hope this function meets your needs.

  • Opening a Modal window from another Modal window

    Hi All,
    I am opening a Modal window from a Modal window which has applets in it. But when the child modal window opens up from parent modal window, the applets on the child modal window are not loading properly. But when I change the child modal window to normal window, then applets loads fine.
    I just want to know how different is a modal window when compared to normal window when it comes to applets.
    This is the problem which showed up only on specific machine but not on all the machines.
    Is this because of some specific settings or could be any other reason?
    Any help Pls!!!
    Regards,
    Rajesh.

    Christian,
    This problem is occuring on 2 machines which has Java 1.5. But rest of the machines which has 1.5,1.6,1.4 are supporting modal windows. So not really sure whether its a browser issue or JRE issue or it is how the modal windows behave in an inconsistent way. Really need a solution for this problem as early as problem.
    Regards,
    Rajesh.

  • Calling parent's view inbound plug from modal window?

    Hi,
    I have a window A with a view ("the parent") that calls another window B as a modal one. This window B uses own buttons for actions, no standard ones (OK, Yes, No ...). The problem is that the actions in window B are changing the content in window A. I want  that after closing the modal window B a specific inbound plug of the view of the other window A is called (where a refreshing mechanism is available). How to do that? I tried with the - at other posts - suggested method of exit-plugs, but that didn't work (because outbound and requested inbound plug belong to different windows ???).
    Thanks for your help,
    Alexander

    Hi,
    thanks for your reply. My problem was that in my popup window no standard buttons are available, so that the SET_ON_CLOSE_ACTION can't be used (cf. documentation it only works with the CANCEL-Button). But with this hint I was able to find another solution (which was by the way explained in another thread answered by you 8-) ): I have to create an event in the component controller and fire this event from my window B. Then I have to subscribe a method of window/view A to that event which does the required refreshing. [trigger event from "child" webdynpro;.
    Best regards,
    Alexander

  • Cannot open PDF in Modal window

    Hi,
    I am trying to execute the reports and open the pdf file in a showModalDialog window, but I get only blank screen. Basically, I want to open the PDF in modal window so that the URL value is not stored or displayed in the screen..
    Is there any setting required or is pdf not supported in modal windows?
    Has anyone faced such problem.
    Thanks & Regds,
    Nandakumar

    As others have said.....first, go to Finder > Preferences and make sure the checkbox is deselected for "open folders in tabs instead of new windows".
    Any folder can be opened in a new window by holding down the Command Key while double-clicking the folder. But sooner or later you will forget to hold down that key, and then a folder will open in a tab (which will probably resize the window and cause much aggravation and cursing).
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple double-click. (I'm using Mavericks 10.9.5).  Go to any folder on the Desktop, open it, and select View > Hide Toolbar. After that, all folders within that folder will open in a new window. I tried this with the Macintosh HD Folder (which I put on my Desktop) and all folders within it open in new windows with only a double-click.
    Of course, you will lose the sidebar and the toolbar, so it's not a perfect solution, but at least you'll be done with tabs.

Maybe you are looking for

  • Startx on a vmware is throwing a "failed to create screen resources"

    The Bottom line error is: Fatal server error: [ 1431.076] (EE) failed to create screen resources(EE) I am trying to get a browsers running on my new Arch Linux, so I can cut and paste better for questions. I have installed xorg, chromium, firefox. If

  • How to merge portlet.xml file from shared libraries into an EAR application

    Hi all I need some help I have some applications as shared-libs referenced by weblogic.xml into a EAR application. To see all portlets from that shared-libs, I'm creating a portlet.xml into the EAR application with all portlets from all shared libs.

  • Oracle DR Setup Problems / ORA - 600 /

    Dear All, Recently we have implemented DR(Disaster Recovery setup Using Oracle data guard in 10g, GUI configurations ) in our Production server. The DR setups are based on the Maximum performance with Realtime apply mode. The configuration went fine

  • Beginner needs help: how to reach the Petstore application

    Hello, I have just successfully deployed the petstore application (at least the .war) on oc4j and I can't reach the petstore web app. Here is what I point to in the browser: http://localhost:8888/petstore/ I get a 404. Can anyone help please? Julien

  • FireFox has stopped showing the PDF/MP3 dialog option box

    Starting today when I want to open or download a PDF or MP3 file the dialog box that usually pops up in the right-hand corner of the browser window is no longer appearing. Now it is taking me to a "enter to save as" page. How do I bring back the dial