Save As  on Alert message

  I  have a requirement where I want to open up a " Save as" Dailog box inorder  for user to save the files.
I know that how to write the same code if i have a button using FileReference Class(http://blog.flexexamples.com/2008/08/25/creating-a-filereference-object-using-mxml-in-flex)
But I want to write the same kind of code when an alert pops up asking to save (YES/NO) & I click yes.In nut shell I want to the above functionality but not on Button.
Hope I am clear in explaining the requirement.If not get back to me so as to understand the requirement I
Regards
Kalavati Singh
[email protected]

private function someFn():void{
//function where you are calling you alert popup
Alert.show("SomeMessage", "Confirmation Window", Alert.YES|Alert.NO, null, handleConfirmation);
private function handleConfirmation(event:CloseEvent):void{
if(event.detail == Alert.YES)
//logic which you initially calling on button click
You can ge the code for Button click on (http://blog.flexexamples.com/2008/08/25/creating-a-filereference-object-using-mxml-in-flex)
Let me know if any issue.
Regards
Kalavati

Similar Messages

  • Dynamic alert messages

    Hi All,
    I have got alert categories created by client,I have to use alert categories and dynamic alert message in BPM.i am not authorized for transaction ALRTCATDEF.Can you tell me where i can see dynamic alert messages for alert categories created.Is there any transaction or I can check in RWB in alert configuration
    Best Regards,
    Harleen Kaur Chadha

    Alert Configuration:- You use alert configuration to have the system informed you about the errors that occurs during message processing.
    *Used for alerts that occurs at IE.
    Alert Management: When you define the integration process you can specify that if a particular situation occurs at runtime a alert has to be thrown using alert management.
    *Used to handle business specific errors.
    For example if the stock falls below certain level an alert has to be thorwn to the specified user using the integration process in this case you have to follow steps defined in alert management
    Defining Alert Categories
    During alert category definition, you specify the alert text, expiry time, escalation, and all other conditions related to the sending of this kind of alert.
    1. Ensure that you are in change mode in the alert category definition environment (transaction ALRTCATDEF).
    2. Choose Create Alert Category.
    3. In the Alert Category column, enter a technical key. Choose a key that describes the situation that triggers the alert, such as CUSTCANC for a category responding to a customer cancellation. This key is language-independent and identifies the alert category. The standard namespace convention applies to the key, this means keys Z* und Y* belong to the customer name space.
    4. On the Properties tab page:
    a. In the Description field, enter a description for the alert category. Choose a description that is informative with respect to the content of the alert category. The description is language-dependent.
    b. If required, you can select a classification in the Classification field. If you do not choose a specific classification, the category is stored in the classification folder Unclassified. For more information on classifications, see Alert Classification.
    c. In the Max. No. of Dels field, specify a maximum number of times that an alert of this category is to be delivered if it is not confirmed. This refers to delivery using a communication channel other than to the recipientu2019s display program (UWL, application-specific program, or alert inbox).
    d. Select Dynamic Text if the texts of the alert category cannot be defined at this stage. This refers to situations in which the texts are not known until runtime, for example when CCMS Alerts are forwarded to ALM.
    No translation can be performed for alerts with dynamic text. System messages can be entered manually in several languages.
    e. In the Expiry Time in Min. field, you can enter a life span for alerts of this category if the alerts will no longer be relevant after a specific period of time. If the expiry time elapses, the alert is removed from the alert inbox and is no longer delivered using any other channel.
    Expiry times can be derived from various sources. Priority is given first to the data provided by the triggering application, second to the BAdI ALERT_EXP_DATE, and third to this field in the alert category definition. If none is found in any of these sources, the default expiry of 31.12.2099 applies.
    f. If you wish to specify an escalation recipient, select Escalation Active and enter the escalation recipient. Also specify a tolerance time in minutes. When escalation is active for an alert category, an alert is escalated if none of the alert recipients has confirmed the alert after this tolerance time. The escalation recipient is also informed that he or she has received the alert because of an escalation.
    The escalation functionality is based on the administrator report RSALERTPROC. This report has to be scheduled as a regular job. For information on this report.
    5. On the Container tab page, define any variables that you may want to use in the short text or long text. You can also define other application-specific variables, such as company code or material number. These variables are then replaced at runtime with values from the application. For more information, .
    6. On the Short and Long Text tab page, enter texts for the alert category. You can include text variables referring to elements of the alert container or system symbols. In the case of a container element, the variable must be defined in the alert container. The entry in the text must be in the form &<ElementName>&.
    The title is used as mail title, fax subject, and alert title in the inbox. The long text is used as mail/fax body and the long text view in the inbox. The short text is used for pager and SMS.
    7. On the Optional Subsequent Activities tab page, you can enter URLs for subsequent activities. If you trigger your alerts by calling a function module, you can also specify dynamic subsequent activities. For more information, see Triggering by Calling a Function Module Directly in Triggering Alerts.
    8. Save your entries.
    You create an alert category to use in alert rules.
    Basic alert configuration
    The specified item was not found.
    The specified item was not found.
    Trigerring alerts from UDF
    Triggering XI Alerts from a User Defined Function
    Alert Configuration
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Alert Inbox
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Alert Notification Step-by-Step
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Defining Alert Classifications
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Triggering Alerts
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Setting up alerts
    Setting up alerts in RZ20
    Alert Management
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e04141e8-0f11-2a10-adaa-9d97b062c2df
    Alert Notification
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90f449a8-a6db-2910-a386-d2b5999f5751
    ALRTCATDEF Editing Alert Categories
    ALRTCATDEF_SEL Define Alert Category
    ALRTDISP Display Alerts
    ALRTINBOX Alert Inbox
    ALRTMON Alert Monitor
    ALRTPERS Personalize Alert Delivery
    ALRTPROC Process Alerts
    ALRTSUBSCR Subscribe to Alert Categories
    The Alert Framework provides an interface from the Basis (Web AS) Alert Framework. You use
    transaction ALRTCATDEF to define the text, the priority, number of delivery, etc. for the alert.
    ?? To configure your alerts, proceed as follows:
    ?? To define an alert category, choose Create Alert Category.
    ?? You can also create the alert category directly by calling transaction ALRTCATDEF. In both
    cases you require the authorizations of the role SAP_XI_ADMINISTRATOR.
    Triggering XI Alerts from a User Defined Function
    The specified item was not found.
    The specified item was not found. - Alert Configuration
    The specified item was not found. - Trouble shoot alert config
    Configuring scenario specific E-mail alerts in XI-CCMS: Part  - 1 -- ccms alerts ? 1
    Configuring scenario specific E-mail alerts in XI-CCMS: Part-2 -- ccms alerts ? 2
    Configuring scenario specific E-mail alerts in XI-CCMS: Part 3 -- ccms alerts --- 3
    Alerts with variables from the messages payload (XI) - UPDATED -
    The specified item was not found.
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    From HelpFile
    When alerts r not displayed in inbox ?
    Then check the following
    Tcode - ALRTCATDEF_SEL
    Report - RSALERTDISP and RSALERTPROC , SXMSALERT_LOGREADER
    Did you run the report SXMSALERT_LOGREADER in SE38... If you run it, please post the corresponding logs here. If not, try to run the report giving corresponding message id and post the logs here. We will try to figure it out

  • Field Abstract Date is required then Browser alert message coming

    Hi All,
    When ever we have a Abstract Date field as a mandatory and when you click Save or Check in from the ribbon its throwing the alert message "Are you sure you want to leave this page". See the detailed message on the screen shot attached.
    If we remove the required field for the Abstract Date we are not getting any message like below. This is happening on the OOB page as well. To replicate this issue just make that field as a Required and try to save or check in the particular page.
    Any help would be appreciated.
    Rajasekar A.C

    Hi,
    According to your post, my understanding is that you wanted to remove the alert message.
    Most probably you see javascript confirmation dialog when trying to leave page edit mode without saving.
    This is standard IE Javascript confirmation dialog which prevents user to leave the page.
    This functionality is not SharePoint-specific, it is standard IE behavior.
    For more information, you can refer to:
    Publishing pages auto save mechanism in Sharepoint when user leaves edit mode
     Warn users before leaving a page with unsaved changes
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Regarding Forms6i Alert Messages..!

    Hi,
    When i am trying to go to Enter Query Mode in my form..i.e when i am pressing
    F7.. i am getting an Alert message
    Do you want to save the changes..?
    How can i suppress this message..!
    Thanks & regards
    ravi.

    that's an important message. This message is displayed, because the form want to clear the block and clear all the data of the actual block. In the case, that unsaved changes are in the block you get the message.
    You can use the KEY-ENTQRY for example. There you can force a commit or rollback before you start the "enter_query;". But I think, that the default-behaviour is quite the best way the form gives to you.

  • Help!  InDesign CS4 Unused Paragraph Styles Alert message

    Below is the script that I have download from Adobe Forum.
    This script deletes all the unused paragraphstyles from active document in InDesign CS4.
    I want to modify this script to show only alert message for unused style and save report as a text file.
    I don't want to remove my unused style from my active document.
    Please help.
    var myDoc = app.activeDocument;
    var myParStyles = myDoc.paragraphStyles;
    var myCharStyles = myDoc.characterStyles;
    for (j = myParStyles.length-1; j >= 2; j-- ) {
    removeUnusedParaStyle(myParStyles[j]);
    for (i = myCharStyles.length-1; i >= 1; i-- ){
    removeUnusedCharStyle(myCharStyles[i]);
    function removeUnusedParaStyle(myPaStyle) {
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = myPaStyle;
    var myFoundStyles = myDoc.findText();
    if (myFoundStyles == 0) {
    myPaStyle.remove();
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    } function removeUnusedCharStyle(myChStyle) {
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = myChStyle;
    var myFoundStyles = myDoc.findText();
    if (myFoundStyles == 0) {
    myChStyle.remove();
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    }a

    Hi,
    Thanks for your reply. It helps to show only single paragraph style on alert box.
    But if I have changed the code write(myPaStyle.name) to $.writeln(myPaStyle.name) then it shows unused style one by one on alert message.
    Is anybody know how to save this message into text file in computer?
    And also how to show all unused styles together on alert dialog message.
    Please let me know.

  • Displaying alert message based on user input on input param screen

    Hi,
    Based on user input I wish to display an alert popup on my report. I
    have provided the user 2 dropdowns called sortasc and sortdesc with all
    the column names used in the report to simulate dynamic sorting.This is
    because we do not have dynamic sorting in CR XI R2. When the user
    selects same column name in both sortasc and sortdesc then the sort
    type which has priority in the record sort expert is executed. This is fine but we want an alert
    or message popup displayed so as to prevent user from selecting same
    column names.
    I tried adding an alert with the following code:
    if {?sortasc} = {?sortdesc} then true else false
    So far I have not been prompted with any alert message box.
    Let me know if there is any other option.

    Hi Shalu,
    I have created a alert and it is working fine, please follow the steps
    Create a new Alert using two static parameters and give the condition for message like :
    if {?Myworld} = {?Myworld1} Then
    'You have entered a correct word'
    else
    'This is not a correct word'
    Then create a condition like :
    {?Myworld} = {?Myworld1} or {?Myworld} <> {?Myworld1}
    Also check the check box Enabled and save the alert.  Now it will popup if the myworld is equal to myworld1 or myworld is not equal to myworld1.
    Hope this will help you
    Thanks,
    Sastry

  • Give alert message

    Hi all,
    I have WD table with the list of records to update or create a new record. I have updated the record but I did not save that record, in this case I want to display an alert message if I select an another record to change or if I open another component or if I close the window. 
    Regards

    Hi,
       You can do something similar to WorkProtect Mode. Go through <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/88/585d420447e054e10000000a155106/frameset.htm">this</a>.
       You can set the <i>"setApplicationDirty"</i> property to true as soon as some record is in the modify mode and set the property to false as soon as it is saved. Now when switching to modify mode for a record, you can check this property and if it is true, throw a pop-up.
    Regards,
    Satyajit.

  • Filename in an alert message

    Hi Friends,
    I am doing a simple file to idoc scenario.
    if mapping error occurs.
    the requirement is to trigger an alert which says "A mapping error occurred when processing the file XYZ.txt"
    Constraints are:
    1. BPM is not used as it is a simple scenario.
    2.RFC lookup during mapping is to be avoided since if mapping itself fails then it will be of no use.
    Is there a way/work around to get the filename dynamically in the alert message.
    Thank you,

    Seems to be not possible without a BPM.....at least by using a standard alert procdure
    Using a mapping get the FileName .....have both the source and target message as the same.....
    map the FileName to some empty node of the structure.
    In the mapping logic, one for which you want to check for any exception, do not make use of the node containing the FIleName...let the rest mapping remain as is
    Create a Container Variable and Assign the node containing the FileName to it using a Container Operation.
    Then raise the Alert.
    I have used a similar approach in one of my interfaces.
    Regards,
    Abhishek.

  • Display an Alert message in PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna
    Edited by: user9955252 on Apr 21, 2010 1:47 AM

    Hello,
    APEX Forum is here : Oracle Application Express (APEX)
    Regards

  • An alert message observered while appling latest patch MLR 10

    Hi Gurus,
    While applying latest patch MLR10 we observed an alert message as below
    "Creating log file "C:\oracle\midtier\.patch_storage\8404955\Apply_8404955_05-21-
    2009_15-44-27.log"
    Conflicting patches: 8204237,
    Patch(es) 8204237, conflict with the patch currently being installed (8404955).
    If you continue, patch(es) 8204237, will be rolled back and the
    new patch (8404955) will be installed.
    Note: If the patch currently being installed (8404955) is rolled back,
    it is recommended that the fixes being rolled back here (8204237, ) are reinstal
    led.
    If a merge of the new patch (8404955) and the conflicting patch(es)
    8204237, is required, contact Oracle Support Services and request
    a Merged patch.
    Do you want to STOP?
    Please respond Y|N
    Should we rollback the previous patch before applying MLR10 ? or can i continue with patch application ?
    Thanks in advance,
    Regards,
    Cema

    Please continue the MLR10 patch installation, this message would appear for the all patch installation (of course, patch number would be different though).

  • An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions.

    An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions. Than when it opens all of my saved passwords are gone, I use a master password and its disabled. When I try to enter in a new on e it says can't change password. I can't even open yahoo e-mail says that my ssl security is down but when I check it its clicked. I'm just very confused as to whats going on.
    == This happened ==
    Every time Firefox opened
    == 5/14/2010 ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

    See [[Could not initialize the browser security component]]
    Rename (or delete) secmod.db (secmod.db.old) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file.

  • Can we use the value of a variable in an alert message

    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?

    Gul wrote:
    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?Try
    DECLARE err_txt VARCHAR2(200) t;
    al_id ALERT;
    al_button Number;
    BEGIN
    al_id := FIND_ALERT('My_Error_Alert');
    SET_ALERT_PROPERTY(al_id, alert_message_text, 'Hello how are you mr. variable '||:variable_name );
    al_button := SHOW_ALERT( al_id );
    END; Hope it works..
    Hamid

  • How to stop printing the crystal report with an alert message

    I am having a field called "APPROVAL" in my stored procedure with which I prepared the CR. I want that if the value in the filed is 'A' then only the crystal report should print else it should prompt with an alert message.

    Hi Sreejith,
    Check this helps you:
    Create an alert from "Report  -> Alerts -> Create or Modify Alerts" with below steps:
    1. Provide name of the alert (say Alert1)
    2. Click on X+2 in front of "Message" field and write the Alert message you want to display.
    3. Click on Condition button and write the condition If not({APPROVAL}='A') then true;
    The above Alert will prompt with configured alert message when {APPROVAL} field is not having value of 'A'
    Now, in a formula, write below content and display it where you want to display the APPROVAL field value:
    If {APPROVAL} = 'A' then
              {APPROVAL}
    This formula content will be blank if the value of {APPROVAL} is not 'A'
    Thanks,
    Raghavendra

  • When I am writing an email, I get an alert message that says "The message could not be copied or moved to the drafts folder. Writing to the folder failed. To ga

    When I am writing an email, I get an alert message that says “The message could not be copied or moved to the drafts folder. Writing to the folder failed. To gain disc space, choose Empty Deleted and choose Compact Folders and try again.”
    If I do that, I get a message saying “There was an error copying to the Sent folder,, retry?”
    If I retry it sends the uncompleted email. All I can do is keep deleting the message and carry on. Then the whole business might repeat itself.
    Help!
    Frank

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • Cash account with nagative balance shows an alert message

    Hi All,
    when user  create  any type of  Outgoing Payment , Incoming Payment, deposits , Journal Entry with the Cash account which is active accounts and the account balance is less than ZERO so system gives an alert message  on the screen I want this type any query or any store procedure.

    Hi ,
    As far as i  am understanding your query this may be for outgoing payment.
    Do you want to stop a outgoing payment from cash account? if balance in this account is zero.
    Clerify your question.
    Thanks
    Ashutosh

Maybe you are looking for