How to display an Alert synchronously ?

The Alert.show() function displays an alert asynchronously in
Flex (the code line which follows the Alert.show() statement is
executed well before the alert actually appears on screen).
Anybody knows a way to force this alert to show itself
syncronously instead please?
Thank you in advance.

In the following example an Alert box is popped up with a
Yes/No question. At no time is the Flash Player (your Flex SWF)
paused or waiting. This is purely event driven.
private function showChoiceAlert() : void
Alert.show("This is a choice. Either pick Yes or No,
please", "Choices",
Alert.YES | Alert.NO, null,
alertHandler);
You call this function as the result of some action, such as
a button click. When either of the Alert's Yes or No buttons are
picked, the function, alertHandler(), is called:
private function alertHandler( event:mx.events.CloseEvent ) :
void
// the event.detail indicates which button was pressed.
Compare it
// to the static values in the Alert class.
if( event.detail == Alert.YES ) {
result.text = "You picked Yes";
} else if( event.detail == Alert.NO ) {
result.text = "You picked No";
} else {
result.text = "I don't know what you picked!";
In this example, the alertHandler fills a Label component's
text property.
In other words, you cannot 'wait' for the user to do
something. The 'waiting' is simply the Flash Player doing whatever
it does until the user picks a button on the Alert dialog which
fires an event.

Similar Messages

  • How to display an alert message on click of link in tableview

    Hi,
    Following is the code for a tableview in layout section of a BSP( i have specified only one tableview column here). The requirement is to display an alert message on click of link in the first column that is "evbeg". Can anyone please help me how to achieve this? Appreciate quick response on this.
    CREATE OBJECT lr_dateiterator TYPE cl_lso_bsp_it_trdates
                EXPORTING im_application = application
                im_tform = trainingform.
            <htmlb:tableView id            = "dates"
                                 table         = "<%= dates %>"
                                 iterator      = "<%= lr_dateiterator %>"
                                 width         = "100%"
                                 rowCount      = "<%= lp_len %>"
                                 footerVisible = "FALSE"
                                 sort          = "SERVER" >
                  <htmlb:tableViewColumn columnName    = "evbeg"
                                         type          = "user"
                                         title         = "<%= otr(LSO_FRONTEND/schedule) %>"
                                         tooltipHeader = "<%= otr(LSO_FRONTEND/schedule) %>"
                                         sort          = "TRUE" >
                  </htmlb:tableViewColum>
    Thanks and Regards,
    Archana.

    you have to code in the iterator for this.
    in the render_cellstart method of the iterator you need to code.
    this is for a column.
    when 'MATNR'.
    data: text type string.
    text = 'disp_alert()'.   "this java script i placed in the page
    data: lo_link type ref to cl_htmlb_link.
      create object lo_link.
         lo_link->id = p_cell_id.
         lo_link->onclientclick = text.
         lo_link->text = <fs>-matnr.
         p_replacement_bee = lo_link.
    below is the java script i added in my page..
    <  sc ri   pt type="text/javasc ript"   >
    f u n  ction disp_alert()
    a  l e  rt("helloworld");
    < /s  c ript >

  • How to Display an Alert or Dialog Box in Flash CS4?

    I would like to have a quick message displayed on the screen for a few seconds after a user clicks a button.  I can't seem to find an Alert Box or Dialog Box option in Flash CS4...can anyone help?
    Thanks.
    Dave

    as2 has the window component.  and for both as3 and as2 it's pretty simple to create your own movieclip to use as an alert window.

  • How to display some alerts

    Hi,
    I want to know if Portals has some types of alerts like in Forms 6i/Developer2000 has alerts.
    Thanks
    Muhammad Ejaz

    Hi ejaz
    Portal does not support alerts by it self ,But u can create alerts by using javaScript for field level validations in the form ..
    vishnu

  • How displaying an alert message called from a database procedure

    Hi,
    How can I display an alert message that is called from a database procedure.
    I've tried the following code:
    l_al_button NUMBER;
    l_al_message VARCHAR2(80);
    l_al_id ALERT;
    Set_Alert_Property(l_al_id, alert_message_text,l_al_message);
    l_al_Button := show_alert(l_al_id);
    When trying I receive an error that says that the word ALERT need to be declared.
    Any suggestions?
    Thanks

    Hi,
    leave the procedure without error handling.
    This is what you can do:
    1.Inside the database procedure-
    BEGIN
    RAISE_APPLICATION_ERROR (-20001, 'The chosen length of the Public Key Exponent ....');
    END;
    2.Into your Form -
    BEGIN
    EXCEPTION
    WHEN OTHERS THEN
    IF sqlcode = '-20001' THEN
    Display Your Messages.
    END IF;
    Monica
    END;

  • How to display Alerts?

    Hi all,
    In My dashboard, I  already cleared Alerts, so  how to display Alerts again?
    Thanks!
    Anne

    Hi Anne
    Refer this Blog
    http://www.peakindicators.com/media_pi/Knowledge/obiee%2011g%20-%20overview%20of%20action%20framework.pdf
    http://123obi.com/2011/05/obiee-11g-configure-oracle-bi-scheduler-e-mail-settings/
    Thanks,
    Reddy

  • How to make an alert view without buttons on iphone?

    Hi,
    I'm trying to create an alert view without buttons. On my iphone application I have to run a process, while the process is running I want to display an alert view with info about the process, and then when the process is done I want to dismiss that alert view.
    Any ideas about how to do this?
    Thx!

    this is what i use. I added in an ActivityIndicator just for looks
    UIActivityIndicatorView *loadingInd = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(120.0, 90.0, 30.0, 30.0)];
    alertView = [[UIAlertView alloc] initWithTitle:@"Loading" message:@"Telling your Mom" delegate:self cancelButtonTitle:nil otherButtonTitles: nil];
    loadingInd.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
    [loadingInd startAnimating];
    [alertView addSubview:loadingInd];
    [loadingInd release];
    [alertView show];
    [alertView release];

  • How to pop up alert "No Data found" if there are no values in database

    Hi All,
    Please tell me how to pop up alert if there is no data found and all fields are null in report for given parameter value. or else is there any way to trigger user while entering parameter value that wrong parameter value. (I dnt want to use drop down) in my report.
    Please help me. Any help will be valuable.
    Thanks.

    There's no way that I know of to do this as a "Pop-up", but providing a "no records returned" warning still easy enough to do.
    Just insert a new Report Header section...
    Add a text box that has whatever message you'd like to display.
    Right click the new header section and choose Selection Expert
    Click the X-2 button next to Suppress (No Drill-Down)
    Enter a formula similar to this...
    IF COUNT({TableName.FieldName}) < 1 THEN FALSE ELSE TRUE
    This will suppress the warning if records are present and display it if there are none.
    HTH,
    Jason

  • How to delete all ALERTS in iCal at once?

    Over the years I have added repeating Events with Alerts to iCal on various devices (some of them passed on to my relatives). As a  result I get plenty of Alert emails or sounds. I find it onerous to go through all repeating events to delete the alert. Hence my question: how to delete all Alerts at once?
    Thanks for any suggestions/pointers/ideas. Cheers, Veit

    Hi John,
    Thanks so much for your help with this problem. I am trying to remove alerts for a couple of specific shared calendars (which I can edit) but am having some difficulty due to my inexperience with applescript! I am also not sure where else to go for help solving this problem.
    My plan is to run your script a couple of times specifying one calendar at a time by name.
    This is the modification I made to your script:
    tell application "Calendar"
      activate
              delay 0.5
              display alert "Removing all alarms from your editable calendars" message "This process may take some time and is permanent. Are you sure you want to do this?" buttons {"Yes", "No"} cancel button 2
              set calname to "Consultant_on_call"
      --- repeat with myCalendar in (calendars whose writable is true)
              repeat with myCalendar in (calendars whose name is calname)
                        repeat with myEvent in events of myCalendar
      delete display alarms of myEvent
      delete mail alarms of myEvent
      delete sound alarms of myEvent
      delete open file alarms of myEvent
                        end repeat
              end repeat
              display alert "Removing all alarms from your editable calendars" message "This process is complete." buttons {"OK"} default button 1
    end tell
    Are you able to tell me what I am doing wrong? Thanks again.
    Andrew

  • How to clear the alerts in Grid

    Hi,
    Grid version : 10.2.0.5
    1)I would like to clear the alerts older than two days in grid.
    We are monitoring more than 500DB's in grid.Is there any procedure to remove the alerts ?
    2)How to clear or reduce the "All Targets Policy Violations" in grid.
    3)How to clear or reduce the "Security Policy Violations" in grid.
    Please need your help on this.
    Thanks.

    Open your Grid Control Console
    Go to Alerts --> Warning
    Select database and press go
    You will see that the Clean button appear and checkbox for each warning alert that its possible manual clean you will see the checkbox to activate
    The Critical Alerts can't clean manualy.
    OR
    1. Make a SELECT * from MGMT_CURRENT_SEVERITY and show for the TARGET_GUID, METRIC_GUID and KEY_VALUE.
    2. Connect to db user SYSMAN and execute:
    exec EM_SEVERITY.delete_current_severity(TARGET_GUID,METRIC_GUID,KEY_VALUE);
    for example:
    exec EM_SEVERITY.delete_current_severity('0DEB8E6980695B7548CF98871084AD10','F95BA0D95585002889E1ABF92B2DA7C3','SYS');
    3. Wait a few minutes.
    The content of the MGMT_CURRENT_SERVERITY table is displayed as ALERTS or ADDITIONAL ALERTS in EM’s main menu. If you delete the ALERTS only in the MGMT_CURRENT_SEVERITY table, the alert messages appears still in some EM submenus.

  • How to display the eror message in the iView

    Hi
    I want to check the user input in the client side and display an error message in the iView instead of displaying the error message as an alert
    it is ok when I tried to do it as an alert
    alert('ERROR MESSAGE');
    but the problem is how to display the error message as a text in the iView ...
    I wrote the below code..
    any one can see it and has any sugestion?
    Thanks
    =============
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <%
    String compid = "";
    String message = "";
    %>
    <hbj:content id="MyContent">
    <hbj:page title = "Selection Screen">
    <hbj:form id = "myForm">
    <br>
    <br>
    <br>
    <center>
    <H3>Benefits Statement </H3>
    <H4>Selection Screen</H4>
    <hbj:gridLayout
    id="FSSLayout"
    debugMode="False"
    width="40%"
    cellSpacing="5"
    >
    <hbj:gridLayoutCell
    rowIndex="1"
    columnIndex="1"
    width="10%"
    horizontalAlignment="LEFT"
    style="WildStyle"
    >
    <hbj:label
    id="label_inputPernr"
    required="TRUE"
    text="Personal Number:"
    design="LABEL"
    labelFor="inputPernr"
    />
    </hbj:gridLayoutCell>
    <hbj:gridLayoutCell
    rowIndex="1"
    columnIndex="2"
    width="40%"
    horizontalAlignment="LEFT"
    >
    <hbj:inputField id = "inputPernr"
    >
    <%
    compid=MyContent.getParamIdForComponent(inputPernr);
    %>
    </hbj:inputField>
    </hbj:gridLayoutCell>
    <hbj:gridLayoutCell
    rowIndex="10"
    columnIndex="1"
    width="40%"
    horizontalAlignment="CENTER"
    colSpan="2"
    >
    <hbj:button id = "myButton" text="Submit.." design="EMPHASIZED"
    tooltip="Click me to submit this form" onClick="ClickEvent" onClientClick="validRequired()">
    </hbj:button>
    </hbj:gridLayoutCell>
    </hbj:gridLayout>
    </center>
    <p font="Arial" size=20><%= message%></p>
    </hbj:form>
    <SCRIPT LANGUAGE="Javascript">
    function validRequired()
    var myvar = document.getElementById('<%=compid%>').value;
    var ivID='<%=componentRequest.getComponentContext().getContextName()%>';
    if (myvar = " ")
    message = "Enter Employee Number";
    ivuRefresh(ivID);
    htmlbevent.cancelSubmit=true;
    </SCRIPT>
    </hbj:page>
    </hbj:content>

    No problem, here is an example of some html code and javascript that you can adapt to your needs. You can display this standalone to see how it works.
    I hope this helps
    <html>
         <head>
              <script language="JavaScript">
                   function validateForm(){
                        if(document.getElementById("nameField").value == "")
                             document.getElementById("errormessage").innerHTML = "Please enter the Name";
                        else if(document.getElementById("ageField").value == "")
                             document.getElementById("errormessage").innerHTML = "Please enter the Age";
                        else if(document.getElementById("idField").value == "")
                             document.getElementById("errormessage").innerHTML = "Please enter the id";                         
                        else
                             document.getElementById("errormessage").innerHTML = "";
              </script>
         </head>
         <body>
              <table border="0" cellpadding="0" cellspacing="0">
                   <tr>
                     <td>Name</td>
                     <td><input type="input" id="nameField" name="nameField"></td>
                   </tr>
                   <tr>
                     <td>Age</td>
                     <td><input type="input" id="ageField" name="ageField"></td>
                   </tr>
                   <tr>
                     <td>Id</td>
                     <td><input type="input" id="idField" name="idField"></td>
                   </tr>
                   <tr><td><font color="red"><span id="errormessage"></span></font></td></tr>
                   <tr><td><input type="button" name="validate" onClick="validateForm()" value="Click to validate"/></td></tr>
              </table>
         </body>
    </html>

  • How to set the alert

    Hi All,
                         Based on the below criteria i want to set the alert
    Select U_SDate,U_EDate from [@PROJ_DET]
    =====================================
    U_Sdate             U_Edate
    1)2008-10-01       2008-11-01
    2)2008-10-02       2008-12-25
    so, in the first row the project planned is 30 days..so i want to set a alert like if the current  date comes to 2008-10-10(i,e before 20 days)....i should show a alert....can anybody suggest me some ideas like how to set these alert before completion of the project before 20days of U_Edate.
    regards,
    shangai.

    hi sierdna,
                        Based on the query i have taken 2 fields
    Select B.ProjectName,A.EmployeeName from [@PRJ_DET] A inner join [@PRJ_MST] B on A.code=b.code Where (U_EDate)-(GetDate())<=20
    Project Name        Employee name
    ==========        ============
    Sample1                John
    Sample2                Micheal
    SAmlpe3                David
    so,in the alert i want to display the project name end date is going to comlpete.......how to set the alert.........can anybody tell me
    regards,
    shangai.

  • How to display array values in jsp of screen flows

    Hi,
    can u please help me .
    I am having one array variable i have stored all the values but i have to display that in JSP page .how to display
    Edited by: user12171025 on Nov 4, 2009 11:11 PM

    Hi,
    I think that its necessaries to use AJaX.
    I am implemeting something like that.
    I have a input text that works like a filter and depends on what my user types in input text I populate my table with some information.
    In order to do that, I put in my JSP a div with an Id and I used ajax, like that:
    function ajaxFunction()
              var xmlhttp;
              if (window.XMLHttpRequest)
              xmlhttp=new XMLHttpRequest();
              else if (window.ActiveXObject)
              // code for IE6, IE5
              xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              else
              alert("Your browser does not support XMLHTTP!");
              xmlhttp.onreadystatechange=function()
                                                      if( xmlhttp.readyState==4 )
                                                           document.getElementById("tabelaResponsaveis").innerHTML = xmlhttp.responseText;
         var resp = "<f:invokeUrl var='solicitacao' methodName='getResponsaveis'/>";
         xmlhttp.open("POST",resp,true);
         xmlhttp.send(null);
    getResponsaveis is a method inside my BPM that returns a HTML code (the table HTML code with all the information that I need to show.
    I Hope to help
    Thanks Marcos

  • ADF how to display a processing page when executing large queries

    ADF how to display a processing page when executing large queries
    The ADF application that I have written currently has the following structure:
    DataPage (search.jsp) that contains a form that the user enters their search criteria --> forward action (doSearch) --> DataAction (validate) that validates the inputted values --> forward action (success) --> DataAction (performSearch) that has a refresh method dragged on it, and an action that manually sets the itterator for the collection to -1 --> forward action (success) --> DataPage (results.jsp) that displays the results of the then (hopefully) populated collection.
    I am not using a database, I am using a java collection to hold the data and the refresh method executes a query against an Autonomy Server that retrieves results in XML format.
    The problem that I am experiencing is that sometimes a user may submit a query that is very large and this creates problems because the browser times out whilst waiting for results to be displayed, and as a result a JBO-29000 null pointer error is displayed.
    I have previously got round this using Java Servlets where by when a processing servlet is called, it automatically redirects the browser to a processing page with an animation on it so that the user knows something is being processed. The processing page then recalls the servlet every 3seconds to see if the processing has been completed and if it has the forward to the appropriate results page.
    Unfortunately I can not stop users entering large queries as the system requires users to be able to search in excess of 5 million documents on a regular basis.
    I'd appreciate any help/suggestions that you may have regarding this matter as soon as possible so I can make the necessary amendments to the application prior to its pilot in a few weeks time.

    Hi Steve,
    After a few attempts - yes I have a hit a few snags.
    I'll send you a copy of the example application that I am working on but this is what I have done so far.
    I've taken a standard application that populates a simple java collection (not database driven) with the following structure:
    DataPage --> DataAction (refresh Collection) -->DataPage
    I have then added this code to the (refreshCollectionAction) DataAction
    protected void invokeCustomMethod(DataActionContext ctx)
    super.invokeCustomMethod(ctx);
    HttpSession session = ctx.getHttpServletRequest().getSession();
    Thread nominalSearch = (Thread)session.getAttribute("nominalSearch") ;
    if (nominalSearch == null)
    synchronized(this)
    //create new instance of the thread
    nominalSearch = new ns(ctx);
    } //end of sychronized wrapper
    session.setAttribute("nominalSearch", nominalSearch);
    session.setAttribute("action", "nominalSearch");
    nominalSearch.start();
    System.err.println("started thread calling loading page");
    ctx.setActionForward("loading.jsp");
    else
    if (nominalSearch.isAlive())
    System.err.println("trying to call loading page");
    ctx.setActionForward("loading.jsp");
    else
    System.err.println("trying to call results page");
    ctx.setActionForward("success");
    Created another class called ns.java:
    package view;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.model.generic.DCRowSetIteratorImpl;
    public class ns extends Thread
    private DataActionContext ctx;
    public ns(DataActionContext ctx)
    this.ctx = ctx;
    public void run()
    System.err.println("START");
    DCIteratorBinding b = ctx.getBindingContainer().findIteratorBinding("currentNominalCollectionIterator");
    ((DCRowSetIteratorImpl)b.getRowSetIterator()).rebuildIteratorUpto(-1);
    //b.executeQuery();
    System.err.println("END");
    and added a loading.jsp page that calls a new dataAction called processing every second. The processing dataAction has the following code within it:
    package view;
    import javax.servlet.http.HttpSession;
    import oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    public class ProcessingAction extends DataForwardAction
    protected void invokeCustomMethod(DataActionContext actionContext)
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.invokeCustomMethod(actionContext);
    HttpSession session = actionContext.getHttpServletRequest().getSession();
    String action = (String)session.getAttribute("action");
    if (action.equalsIgnoreCase("nominalSearch"))
    actionContext.setActionForward("refreshCollection.do");
    I'd appreciate any help or guidance that you may have on this as I really need to implement a generic loading page that can be called by a number of actions within my application as soon as possible.
    Thanks in advance for your help
    David.

  • How to setup FAX Alert CCMS MTE

    Hi,
    I would like to know how to setup fax alert, for example if fax does not work, so what is MTE will I use for fax alert
    all others alerts are working fine and i received e mail , how do I receive e mail if fax does not working... ?
    Thanks

    Hi
    The alert inbox is user-specific and displays all the alerts for each alert server that have been generated based on the alert configuration.
    An alert can be delivered to you by e-mail, fax, or SMS. In each case, you will also find the alert in your alert inbox, irrespective of the delivery method
    In the Personalization tab in the alert inbox, you can either specify how u want the alert to be sent via fax, sms or mail. In your case it will be fax.
    MTE
    By resetting a monitoring tree element, you delete open alerts and data collected for the MTE. You can also reset multiple selected MTEs, or also all MTEs in a particular hierarchy in the monitoring tree. Resetting an MTE deletes alerts and performance data.
    To be able to reset MTEs and alerts, you must first activate the maintenance functions.
    Choose CCMS ® Control/Monitoring ® Alert Monitor in the SAP Easy Access menu, or call transaction RZ20.
    Expand the monitor set that contains the monitors that you require and choose Start Monitor.
    Choose Extras ® Activate Maintenance Function.
    Select the MTEs that you want to reset and choose Edit ® Node (MTE) ® Reset.
    After you have confirmed the Alert Monitor warning, the MTEs are reset to their status at the time of the system start or their insertion into the Alert Monitor. The Alert Monitor continues to collect data and trigger alerts for the MTEs.
    please go through this link
    http://help.sap.com/saphelp_nw04/helpdata/en/26/1afe3b470a1649e10000000a11402f/frameset.htm
    To receive Email Alerts
    Refer
    Configuring scenario specific E-mail alerts in XI-CCMS: Part 3
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    Configuring scenario specific E-mail alerts in XI-CCMS: Part-2
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
    Configuring scenario specific E-mail alerts in XI-CCMS: Part u2013 1
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    Hope this will clear your doubts
    Thanks
    Saiyog
    Edited by: Saiyog Gonsalves on Jun 3, 2008 4:53 PM

Maybe you are looking for

  • Problem with JComboBox in aTable Cell

    I try to put JComboBox in JTableCell, what i want to do is something like this... Question | Answer | 1. what is your favourite | a. Pizza | food? | b. Hot Dog | 2. what is your favourite | a. red | color? | b. blue | Object[][] data = { {"1.What is

  • Photos from computer to empty card for digital photo frame?

    I've downloaded 1,000 photos from my camera to the computer and want to empty the card and use it afresh. Is it possible to then load a selection of photos from iPhoto 6 onto an empty card so that I can play a short selection in a digital photo frame

  • Help Needed Sony Monitor Cable Hookup

    I just received my Sony PVM 14-L2 monitor today for color correcting and need help with what cables I should use. I have a Canon Elura camcorder that I will be using as a deck. Please guide me on which ones I should use as I don't want to buy/use the

  • Requirement in Web Analysis

    Hi Experts, We are designing a new Chart report in Web analysis, in "Rows" their are three members and the "Columns" contain two members. Our Client requirement is that Two specific Dimension members Of "Rows" should show Data specific to One dimensi

  • Encoding for javascript in netscape

    Hi, In my project, we are making a call to cgi program from javascript. cgi program returns output in javascript which will be executed to the display the screen. This is working fine in IE browser, but screen hangs in Netscape 7.1. We are using enco