Popup window on success

Hi,
I have a reqirement in OAF where i have page with some fields, apply and cancel buttons. When i click on apply button it should validate the data entered in those fields and if any thing is wrong, it should display error messge on the top of the page and if success it should show a popup window or alert box with a messge that the record is successfully created and an ok button. When i click Ok button it should navigate to Home page.
For now i am validating the data when i click on apply button and throwing error or success message on the same page (This happens in Process Form Request). But cannot go to home page.
The part which i dont know is, when i click on apply button, how to popup a small window or alert box with an Ok button if it is success. When i click on OK button it should navigate to Home page.
I have gone though a lot of threads on this forum and developers guide but couldnt find a match to my requirement.
Can some one please help.
Thanks
Pavan

1. adding a RawText item to your page.
2. binding a attribute of VO to the RawText. (ex: VO Name:TempVO; Attribute name:Script)
3. writing coding in your processFormRequest
am.invoke("showMessage");
4. writing a method in your AM
public void showMessage()
Row row = getTempVO().first();
row.setAttribute("Script", "<script>alert('test');</script>");
}

Similar Messages

  • Creating a PDF report within a popup window

    bq. Hi, \\ Within my application i've a page which uses JasperReports to generate a simple PDF report within prerender(): \\ public void prerender() { \\ try { \\ this.planned_bar_tripsDataProvider1.refresh(); \\ if (this.planned_bar_tripsDataProvider1.cursorFirst()) { \\ getApplicationBean1().*jasperReport* \\ ("PlannedBarTripsReport", "application/pdf", \\ getSessionBean1().getPlanned_bar_tripsRowSet1(), null); \\ } \\ } catch (Exception ex) { \\ log("Exception generating report", ex);} \\ } \\ jasperReport() is taken from the Sun PDF tutorial (http://developers.sun.com/jscreator/learning/tutorials/2/reports.html) \\ Now, when this page is opened within the application (browser) window the PDF report successfully renders. \\ However, when the page is opened within a popup window, using the (onclick) Javascript function: \\ function generateReport() { \\ window.open('PlannedBarTripsReport.jsp') ; \\ window.event.returnValue = false; \\ } \\ the PDF report fails to render. The result is a brief pause followed by a blank popup. No exception. No Abobe embedded window. No clues as to what's gone wrong. \\ Any advice would be greatly appreciated. \\ Ta.

    Hi Venkatv and everyone.
    This is the link where I found about Including Dynamic Images in a Report.
    http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
    It's so easy and clear to do.
    Good Luck!!!
    Regards.
    Ayrem

  • How do I get a popup window to stay open with a validation failure?

    Environment:
    APEX 3.1.1.00.09 on AIX 5.3
    Oracle 10.2.0.2 EE on AIX 5.3
    Sample app on apex.oracle.com:
    Workspace: galway
    User: gwicke
    Pass: gwicke
    Steps:
    1- run Page 3
    2- select J & B Marketing from drop down
    3- select only contract from drop down
    4- click on Edit Existing Contract
    5- click on Add New Builder
    6- Enter the same builder from calling page: Builder Name: Alvarez Construction City: Baton Rouge State: LA
    7- click Add Builder
    The original version of this page would add the new builder to the database, pass the information back to the calling page and close the popup window. Cool.
    I have added a validation on the popup page (Page 4) to check for an existing builder with the same name and city.
    What I'd like to have happen is the popup window stay open so the user can see the error message with the instructions for them to click on the CANCEL button and then select the builder from the drop down list. When they click the CANCEL button I need to have the window close.
    What is happening is the window is closing as soon as the Add Builder button is clicked.
    This is because there is a region called 'scripts' that contains javascript to submit the page and close the window and the condition on the region is only that the Builder Name is not null. So, the good news is that I understand why the window is closing but I'm not sure the best way to keep it open when the error condition happens.
    Thanks very much for your help. I'm sure you recall everything about this app you helped me with many months ago. NOT!! :-)
    -gary

    Gary, I think I've got it working the way you want.
    1. I added a conditional branch to page 4 which fires on the not exists builder condition condition.
    2. I disabled the reset page process. With that running, the conditional branch to page 4 woul always fire because the builder name and city were always cleared by the time the branch executed.
    3. I noticed that the new builder did not show up in your select list until I refreshed page 2. I haven't had a chance to look at that. Maybe a branch back to page 2 from page 4 after successfully loading a new builder will take care of that.
    Bob

  • Refresh only page item while submitting data from the popup window

    Hi All,
    I'm pretty new to Apex .....
    I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
    javascript:doSubmit();
    window.opener.doSubmit('REFRESH');
    window.close();
    On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
    Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
    Any help in this regard is appreciated.
    Thank you!!!
    Regards,
    Ganesh

    Value set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
    Before refreshing the report you would need to set the session state of this item.
    You can set it after you assign the item a new value or before the report is refreshed
    For Interactive Reports, this is available built in
    you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
    For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session.

  • Trying to get a popup window to work via report

    I have a need to offer a link in reporting on the Opportunity Description field where the description would be displayed in a popup window (I do not wish to launch another child OOD window via prompt report). The fact that these description field can be quite long and make reports difficult to read drives this request. I am currently looking at overriding the data statement on the column in question. For example, I can easily do the following:
    @[html]"<a href=""http://www.cnn.com"">"@"</a>" -which simply proves that I can embed html code with the column value
    I have tried the following with no success:
    @[html"<a href=""javascript:mywindow=window.open('','','width=200,height=100');
    mywindow.document.write('"@"');mywindow.focus();"">"@"</a>"
    I have a feeling that the problem lies in the escaping of the quotes but hoping that someone else may have the answer.  Also, if there is a better way to accomplish what I'm trying to do, please chime in.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Glfnute,
    When writing the HTML code in column formula, ensure you start it with a single quote and also end the expression with it. So your code will look something like this:
    '{<}a href = "http://.... com" target="_blank" {>}' || column name here || '{<}/a{>}'
    Using target = blank will open your link in new window.
    Curly brackets are used above to prevent the text from getting rendered as an html over here. Remove them and use the remaining string in your report.
    I hope this helps.

  • Progress popup window

    Hi, All,
    I want to show a popup window with indeterminate progress bar while time consuming operation is performed. Time consuming operation is jpeg encoding and network activity with URLLoader. Like this:
    private function buttonClickHandler(event: Event): void {
         progressPopup = ProgressPopup(PopUpManager.createPopUp(this, ProgressPopup, true));
         progressPopup.addEventListener(FlexEvent.CREATION_COMPLETE, doLongOp);
    private function doLongOp(event: Event): void {
         var worker: MyWorker = new MyWorker (...);
         worker.addEventListener(MyWorker.COMPLETE, successHandler);
         worker.addEventListener(MyWorker.ERROR, errorHandler);
         worker.go();
    successHandler and errorHandler handlers enable close button on popup and when operation completes (successfully or not) user is able to close popup. What is actually happening is that worker starts BEFORE popup is shown, UI is freezing, I see worker loads CPU (jpeg encoder on a large image) and only after that popup is shown. How should I make popup before worker is actually started, so that popup is shown all the time worker is processing?
    Thanks.

    This is the simple app which is not working, as I want it to (popup is shown actually AFTER jpeg encoding):
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Button x="117" y="177" label="Button" click="click(event)"/>
         <mx:Script>
              <![CDATA[
                   import mx.managers.CursorManager;
                   import mx.events.FlexEvent;
                   import mx.graphics.codec.JPEGEncoder;
                   import mx.managers.PopUpManager;
                   private var _popup: MyPopup;
                   private function click(event: Event): void {
                        _popup = MyPopup(PopUpManager.createPopUp(this, MyPopup, true));
                        _popup.addEventListener(FlexEvent.CREATION_COMPLETE, popupCreationHandler);
                        //callLater(longOp); // this calls longOp before popup is shown
                   private function longOp(): void {
                        var jpegEncoder: JPEGEncoder = new JPEGEncoder(60);
                        var jpegData: ByteArray = jpegEncoder.encode(Bitmap(image.content).bitmapData);
                   private function popupCreationHandler(event: Event): void {
                        callLater(longOp);
              ]]>
          </mx:Script>
         <mx:Image x="239" y="177" width="100" height="100" id="image">
              <mx:source>ANY_LARGE_IMAGE.jpg</mx:source>
          </mx:Image>
    </mx:Application>

  • PopUp window at public wifi hotspots?

    If I connect to a public wifi hotspot I get a popup window where the landing page from the operator is shown (captive portal). How can this be managed? Because the window is closed after the login there is no chance to get the session window for logout etc. from the service provider.
    Thanks.

    I run a number of wifi hotspots, all of which use a captive portal "Splash Page" that is branded per location.
    Since the iOS6 update I have been swamped with guests and customers complaining about this www.apple.com "success" page popping up instead of the intended customers login and terms acceptance page. When cancelling it drops the wifi router connection and there is no way to connect to the intended free wifi hotspot.
    The problem is in Apple's update, there currently is no way to disable this unwanted feature.
    The solution is to go to your Settings>General>Cellular>Cellular Data and turn it OFF when you are at the hotspot location.
    Now when you choose the hotspot's SSID and join it......you will get the sign in page from the captive portal and not the "success" page.
    Be sure and turn the Cellular Data back on.....when you leave the hotspot.
    Apple needs to fix this WISPr function, I am only a small provider and I am sure that worldwide there are going to be hundreds of thousands of iphone, ipad and laptop users who will no longer be able to sign on at wifi hotspots, work, universities, hospitals and hotels.
    As a side note: I have an older 4S phone with iOS6 and I cannot join.....my wife has a newer 4S phone with iOS6 installed and even though both our phones are set exactly the same......she can connect without turning off her cellular data and I cannot.   Curious?

  • When button press it should validate item and open another popup window

    apex 4.2.1
    I am having difficulties on it please help.
    I have a report and link and it open a page (popup window ) and it has items say, :p2_item_no and :p2_Final_Date (Date) and button submit and cancel.
    this page has process that is fetced the data for some hidden items. for example. :p2_Last_date (hidden).
    all above work ok but when hit the submit button then :p2_final_date item should be validated with :p2_last_date item
    so if :p2_final_date < :p2_last_date then error else accept the date value and same time go to the page 3 (another popup window).
    so from same submit button it must control both action. first validate and if success then open another page (popup window).
    thanks for help!
    RI.

    You can create an item level validation of type PL/SQL Expression on the popup page opened from the report.
    The item you would create the validation on would be P2_FINAL_DATE and the pl/sql expression you would use would be:
    :p2_final_date >= :p2_last_date;--Keith                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to put the messages getting in popup window on statusbar facet:

    In panelcollection i dragged a table.in toolbar i have createinsert and committ buttons.
    i am able to display the messages like "*Dupliacte rows not allowed* " using customErrorhandler by ovveriding the getdisplaymessage() when JBO,SQl exceptions occured.
    and also able to display message like "*record saved successfully* " using managed bean method.
    i am getting these messages in popup window.but i want to get these messages in statusbar of panelcolletion.
    please anyone help me what i need to do.
    Thanks
    Sailaja.

    Hi,
    Check the below sample code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|BorderContainer {
                background-image:Embed(source="image/wheres_the_green_rez.jpg");
                background-image-fill-mode:clip;
        </fx:Style>
        <s:TitleWindow width="100%" height="100%">
            <s:BorderContainer width="100%" height="100%"/>
        </s:TitleWindow>
    </s:Application>
    Regards,
    Anitha

  • How to open a popup window ?

    Hi,
    I try to open a popup window it does't throgh any exception but it will not show the popup window
    I want open popup window when i enter in url of the parent window.
    Thanks & Regards,
    Merlin Roshina

    Tested successfully with the following code ...
    <html>
    <head>
    <SCRIPT>
              function openindex()
              var OpenWindow=window.open("http://yahoo.com", "newwin","height=300,width=300");
              <%     System.out.println("inside the script"); %>
    </script>
    <%     System.out.println("outside script"); %>
    </head>
    <body onload="openindex()">
    <p>Hello,</p>
    </body>
    </html>NOTE:
    The System.outs will be printed during interpretation by browser during page load and not during javascript invokation.
    Cheers
    -Rohit

  • HT4168 How to open a popup window in epub3

    I am trying to open a new popup window in epub3 but its not working.
    Is there any sample epub or files to test it?
    <Email Edited By Host>

    Tested successfully with the following code ...
    <html>
    <head>
    <SCRIPT>
              function openindex()
              var OpenWindow=window.open("http://yahoo.com", "newwin","height=300,width=300");
              <%     System.out.println("inside the script"); %>
    </script>
    <%     System.out.println("outside script"); %>
    </head>
    <body onload="openindex()">
    <p>Hello,</p>
    </body>
    </html>NOTE:
    The System.outs will be printed during interpretation by browser during page load and not during javascript invokation.
    Cheers
    -Rohit

  • How to close a popup window in a used component?

    Hi Experts,
    I have two applications in the same project, and they each have one component controller. Let they be component A and B. They have similar functionalities and screens. There is a popup window in A that I would like to use in B instead of creating a new popup window in B, so I added a used component of A in B in order to share the popup window. I am able to click a button in B to get a popup window from A successfully, but I am unable to close the popup window since the event has been created in A.
    Can anyone suggest me how to fix this please? I would really appreciate your help.
    Thanks,
    -Napadol

    Hi,
    You can either use the approach above, which is having an Attribute, type IWDWindow in B's Component Context. When you open the popup you store the reference. When you click close you get that reference back and destroy the window.
    Note, I'd suggest you to have your "View" with no Close Button. Then in Component A you create another View that has an UIViewContainer with your Popup View. You can code the Close code in Component A.
    This way you can do the same and have a code in Component B to close your window.
    Other way would be having it as a Component variable and using the Component Interface on A (create a Method) that goes to Component A and destroy that instance.
    Regards,
    Daniel

  • Styling the Alert popup window

    In Flex 3, you could style the popup window produced by Alert.show with the Alert selector:
    Alert
      background-color:aqua;
    This appears not to work any more in Flex 4, even with the appropriate namespace prefix:
    mx|Alert
        background-color:aqua;
    I've confirmed that the selector is correct, because it can be used to modify the fonts within the Alert popup, but any colors, corner radius settings, etc. are ignored. I also tried switching to the Halo AeonGraphical theme with no success.
    Are there any new tricks to know about in this area?
    Thanks,
    David

    Hello,
    Does this article help?
    http://www.adobe.com/devnet/flex/articles/flex3and4_differences_02.html
    This code seems to work:
    <fx:Style>
        @namespace mx "library://ns.adobe.com/flex/halo";
        mx|Alert   
            contentBackgroundColor:aqua;
    </fx:Style>
    - Rob

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

Maybe you are looking for

  • SY-TABIX within a search help exit...

    Hallo all, I tried to find an answer in earlier postst, but did not succeed, therefore this message. I have built a customtabel with several columns. For one of the columns I have built a custom search help, including some coding in the search help e

  • Business one to SAP one (All in one)

    I am a fresh SAP FICO certified individual, I have applied for (SAP ERP one) position in one of the renowned consultancy firm, how ever they have approached saying any they do not have vacancy on SAP ERP one but they can offer me a position in Busine

  • Best way to select image with fine hairs?

    I have been using the quick selection tool to select images that I want to remove from their backgrounds or edit separately. It always works well except in the hair area. Even when the hair is smooth it looks a little unnatural, and when the hair is

  • External iSight camera's compatibility with OS 10.5.8 / iMovie 09

    I'm new here and joined because I couldn't find the answers to my questions anywhere on the net. I just upgraded my OS to 10.5.8 and then installed iLife 09, only to discover that my USB iMage webcam won't capture video in iMovie 09. So I've been res

  • Discoverer Drill Down Sample

    Hi all, I am new in discoverer, will like to have sample on how to do the drill down. I have created two folder in one business area. I will like to have drill down when user click on the column in first folder say po column, the drill down will happ