Component in an alert?

Hi,
I like the style and functionality that an Alert box gives
me. I was wondering if it's possible to add button components to
the alert box instead of the usual 'Ok' button?
Thanks

A more complete example:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.CloseEvent;
private function alertListener(eventObj:CloseEvent):void {
switch(eventObj.detail) {
case(Alert.YES):
myText.text = myInput.text;
Alert.show("Text was copied!");
break;
case(Alert.NO):
myText.text = myInput.text;
Alert.show("Text was NOT copied!");
break;
case(Alert.CANCEL):
myText.text = myInput.text;
return
]]>
</mx:Script>
<mx:TextInput id="myInput" width="150" text="" />
<mx:Button id="myButton" label="Copy Text"
click='Alert.show("Do you want to copy the text?", "Alert",
Alert.YES | Alert.NO | Alert.CANCEL, this,
alertListener, null, Alert.OK);'/>
<mx:TextInput id="myText"/>
</mx:Application>

Similar Messages

  • Issue while creating Component Based Message Alerting in PI 7.31 Dual Stack

    Hi,
    We tried to implement Component Based Message Alerting following the steps mentioned in the below blog.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Ours is PI 7.31 dual stack. However, after setting up the job with my own user id, I am getting the below error inside the log of Jobs tab:
    javax.jms.JMSSecurityException: You do not have permissions: action alertingVP.queue and instance:name alertingVP.queue
    action consumer
    instance jms/queue/xi/monitoring/alert/ALERT-TO-MAIL
    Please let us know what permission is required to set up the job.
    Thanks,
    Rahul

    Hi, 
    Now I am able to receive alert in my mailbox. But it's coming with improper content.
    I have set up the job at an interval of every 2 minutes in NWA, and in case if only 1 message fails in IE, in ideal case, I should receive only 1 message details in alert.
    However, in every 2 minutes, I am receiving junk data and the number is increasing for the particular scenario for which the alert has been created. Also the Error Category mentioned is showing improper.
    But in table SXMSALERTCONTENT I am able to view only the newly added failed entry.
    An erroneous alert email content is pasted below:
    63 messages failed for "Test_XXX" on "af.s0i.saps0i"
    Root cause: -1
    To navigate to the failed messages in the local message monitor use this link
    The first 1 messages of that data collection:
    "AdapterNamespace": "http://sap.com/xi/XI/System",
    "AdapterType": "File",
    "Channel": "FileSender_XXX",
    "ChannelParty": "",
    "ChannelService": "XXXXX",
    "Component": "af.s0i.saps0i",
    "ErrCat": "",
    "ErrCode": "",
    "ErrLabel": "-1",
    "ErrText": "Configured source directory '\\Outbound\\XXX\\CREMAS' does not exist",
    "FromParty": "",
    "FromService": "XXX",
    "Interface": "Z_CREMAS_SUSMM.CREMAS03",
    "Namespace": "urn:sap-com:document:sap:idoc:messages",
    "RuleId": "3a64dd6e1b1d3e58aff62ea70c97cb80",
    "Timestamp": "2013-02-01T09:43:23Z",
    "ToParty": "",
    "ToService": ""
    The failed message however do not relate to the 'source directory does not exist' issue. Please help.
    Thanks,
    Rahul

  • How to exclude synchronous interfaces from component based message alerting

    Hi Pi experts,
    We are configuiring Alerts in PI 7.3 single stack.If we have 'n'number of interfaces, and if we configured general alerts for all.How to exclude synchronous interfaces in that.Alerting is for asynchronous interfaces only.How to do that.
    Please advice on this.
    Regards
    Suneel

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

  • Java-only, Component based message alerting - loopback to sender system

    Dear guys,
    we are using the alert framework availbale on PI 7.11 to notify the sender system if there is an alert for specific interfaces. In that case a customer function module is called giving the message id of the request message (message is sent via ABAP proxy). As a result the according entry in customer table is updated.
    The implemntation is based on the BADI ALERT_MODIFY_TEXT and uses the standard function module ALE_BAPI_GET_UNIQUE_RECEIVER to determine the system /rfc destination to send the alert notification.
    This solution works fine so far.
    As PI 7.11 dual stack is not the latest release, we are thinking of upgrading to current PI/PO release. In this context also shift to java-only installation is contemplated which will need an alternative solution for the described alert/error notification loopback.
    Are there any possibilities analog to BADI to implement such a solution?
    What are your approaches regarding this requirement in the context of java-only?
    Any help/thoughts appreciated.
    Best regards,
    Jochen

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

  • Component based message alerting

    Hi,
    I am working on component bvased message alertig in SAP PI 7.4 (dual stack). As per the Michal's blog i have define everything in PI.-
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Also i have configured Configuration -> Infrastructure -> JAVA System Properties -> XPI Services: AF Core  -> and choose tab Services .
    Set the value of the alerting.target service property to 1.
    and alerting.isActive (value true).
    But still i am not getting mail in mail box.
    When i check the log viwer i found two logs saying:
    Job AlertConsumerJob (ID: 5fe771e0ec86100082e50000002ab43a, JMS ID: ID:1344010011108-000000008399) started on Thu, 5 Jun 2014 03:52:43:011 EDT by scheduler: c0000173a37f11e2b6ab00237d240438
    Job AlertConsumerJob (ID: 5fe771e0ec86100082e50000002ab43a, JMS ID: ID:11344010011108-000000008399) ended on Thu, 5 Jun 2014 03:52:43:044 EDT
    Could some body help me in this .
    Thanks,
    Anurag

    Hi Anarug,
    I am not sure whether it is solved.
    From the log entry from the AlertConsumerJob, it seems that this job is running fine,
    but it is not finding any alerts.
    That means probably, no alert events are thrown by any rule.
    So you should focus on that part first and see if you have any aggregated alerts in a job run.
    I had some strange experience with Alert Rules that did not have all Message Statuses checked.
    As soon as you uncheck any of the Message Statuses in the rule (for example any unusual adapter technology), the rule will not work.
    This is a bug in my 7.31 system and I am just trying to fix it using SAP Note 1968989.
    Please check if this Note might fit your situation.
    Anyway, try to use a DEFAULT-RULE, which you can create in the ID by checking the box "create default rule" when defining a new alert rule.
    Other things to check:
    - are you using Integrated Configuration or generate at least errors in the Adapter Engine?
    For errors in the (ABAP) Integration Engine, the whole story is similar but completely different.
    Cheers, Jochen

  • Container variable for softw component/version in alert configuration

    Hi Experts,
    I am unable to find the container variable for SWC/SWCV in the sap help..
    do we have anythign for this?
    I have used all the other variables like msg ID, sender/rcvr interface etc.
    Pls share ur thoughts
    Regards,
    Teja

    I am unable to find the container variable for SWC/SWCV in the sap help..
    do we have anythign for this?
    you dont get a variable for SWCV....if your alert is related to a process X and if process X is related only to SWCV_A then you can hardcode the same into your alert Long/ short text which you define in the alert category.

  • PI 7.31 - Component based alerting v/s Alert framework like 7.0

    PI Experts,
    We are in the process of upgrading PI from 7.0 to 7.31. In current PI-7.0, We are using Alert framework for notifying us for the failed messages in PI.
    PI-7.3 has the the new feature of Component based alerting, while implementation, we have a choice between "Component Based Alerting" and "Alert FrameWork".
    1.     Can someone guiide me on what are the advantages of using  "Component Based Alerting" v/s "Alert Framework" in PI-7.3?
    2.     If we choose "Component Based Alerting" now, then can we switch it back to "Alert Framework"? If yes, how difficult it is? What are the configuration steps for the "Component Based Alerting"?
    3.     If we choose "Alert Framework" now, then can we switch it back to  "Component Based Alerting"? If yes, how difficult it is? We would be able to use our current alert configuration and alert rules?
    Thanks.
    MP

    Hi,
    >>>>1.     In current AF, we get the alert for the new error if we have confirmed the alert for the same rule in the system otherwise we do not get a alert for the new error.How the alert confirmation works in CBA
    depends how you consume alerts - if you do it with SOLMAN for example it's there (for "number of hours" and/or "until" AFAIK)
    >>>>2.     Is there any way we can move the current alert rules of AF to CBA in 7.3?
    not sure if with 7.3 but there is some upgrade function in 7.31 as per:
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/b2/58b14b70744d0db55599230d2c5bce/frameset.htm
    quote:
    "In case you upgrade your system to enhancement package 1 for SAP NetWeaver 7.3, and in case the “classical”alerting function (already available prior to enhancement package 1 for SAP NetWeaver 7.3) is switched on, the CTC wizard asks you if you like to switch on the new component-based message alerting."
    but I've never tried it so don't know if/how it works,
    Regards,
    Michal Krawczyk

  • Default Alert Consumer for Custom job

    Hi Experts,
    can we use the "ALERT-TO-MAIL" alert consumer to a custom job.
    If not why cant we apply the default alert consumer to custom job and what could be the relation between them.
    here i am trying to create an custom job in SAP PI 7.3 server basing on Customize Alerts Using Job in PI 7.31/PO as in  here creation of the Alert consumer details has not been provided i was thinking to use the "ALERT-TO-MAIL" consumer and i also want to know the process to create the customized alert consumer so please help me in this issue.   Thanks very much in advance.
    Regards,
    Avinash

    Hi
    PFB the blog for creating custom consumer.
    Michal's PI tips: Component based message alerting - API
    Also a blog on creating custom job, might be helpful to you
    Customize Alerts Using Job in PI 7.31/PO
    Regards
    Osman
    Message was edited by: Osman Jabri

  • Alert Configuration in PI 7.4 Guidance Required

    Link Michal's PI tips: Component-Based Message Alerting
    Regards,
    Tibin Joseph

    Hi Praveen,
    Thanks ..I am following Competent Based Alerting and I processed a mapping error  through the scenario which I have added to the alert rule  I am getting the below log for the Alert Jobs which is running for every 3 minutes.Log is showing success.But I am not able to receive any mails on that and I am using the ALERT-TO-MAIL Consumer . Smtp host ,User ,Password,Port everything I have provided.Do u have  any idea why am not getting emails on alert?.
    Do we need to do any Firewall setting or any Basis activities for getting mails or can we give simply  Java Mail Client details (smtp host ,port etc) and will PI take care by itself using the details
    Return Code -1
    Return Code 0
    Regards,
    Tibin Joseph

  • Multiple alerts in PO single stack

    Hi all,
    I am working on PI single stack, PO 7.40
    I have multiple interfaces. The functional owner of MM, SD interfaces are different.
    I am doing Component Based Message Alerting.
    I want to send mails to SD functional consultant for errors in SD interfaces and I have to send mails to MM consultant for errors in MM interfaces. For all these interfaces I have to give cc to one another person also. How can I achieve this?
    When I go to NWA, Operations -> Jobs -> Java Scheduler -> Job Definitions
    I have the option to add a sender mail id only. That mail id is specific to all interfaces.
    Can I add this email id for respective interfaces? How can I incorporate my requirement here?
    Regards
    Harish

    Hi Harish,
    It's Possible.
    Please check the reply given by Hareesh Gampa in this thread New Alert consumer in PI 7.31 dual stack.
    Regards,
    Suhale Shaik.

  • Alerting in PI 7.31

    Hi Experts,
    I am new to PI / PO, would like to understand how does Alerting works in PI 7.31 and how is it different from the earlier version we have, Can anyone pl help me with this. Thank you!
    Best Regards, Neha

    >>>>>except triggering alert as this functionality already exist in our earlier version also..
    The main purpose still remains same i.e. triggering alerts.
    In earlier versions, you were doing all the configuration on ABAP stack. From > 7.3, we have an option to install java-only PI system.
    The CBMA helps in triggering the alerts without the need of ABAP stack.
    >>>so what new??
    You even have an API to read the alerts, makes it easier to integrate the alert framework with any external system.
    Michal's PI tips: Component based message alerting - API
    Some other things like multiple consumers.. interface specific configuration etc are easy to configure and maintain

  • PI 7.4 message alert to ECC backend.

    Hello Experts,
    I am busy with a project for IDOC2JDBC scenario.
    In the best case scenario things are working fine, and i get the recors to the external SQL database.
    My question is, if there is an error occured in the sql statement or other JDBC error, the communication channel should send an error message to the IDOC sender of the backend ECC.
    I am following this tutorial ( http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting).
    How can i specify the backend as the receiver for the alert, or is there another way of doing this task?
    Any suggestions would be appreciated.
    Regards,
    Antony.

    Hi antony,
    In this case, I think that the better way is to create a technical bpmn to send error back to the sender.
    Pls refer to the link below:
    Detecting Technical Errors in NetWeaver BPM

  • Alert Framework Creation...

    Hi All,
    In our current production environment all the alerts of different functional tracks are coming to the admins assigned under fixed reciepients(under alrtcatdef). Now we are planning to segregate these alerts based upon different functional tracks like CRM,HCM etc.
    Request you all to help me and provide the best possible way to achieve this like is there any option so that that i can define any rules(under Alert configuration in RWB) based upon the software component versions( actually i dont want to use sender namespace option becoz there are so many namespaces anywayz if i wont fine any solution this will be the last option)
    And one more thing to choose different sender or receiver namespaces(under RWB Alert Configuration) do we also need to create diiferent alert category(under ALRTCATDEF)???
    Request you all to please help.
    Thanks
    Amit

    And one more thing to choose different sender or receiver namespaces(under RWB Alert Configuration) do we also need to create diiferent alert category(under ALRTCATDEF)???
    Not required. We can use the same the same alert categories in multiple rules.
    is there any option so that that i can define any rules(under Alert configuration in RWB) based upon the software component versions
    The alert rules cannot be defined with software component version as condition.
    planning to segregate these alerts based upon different functional tracks like CRM,HCM etc
    Create classifications for different tracks and use 'receipients via user roles' instead of fixed receipients.
    Assign authorization for classifications based on track based roles.
    For example, CRM classification alert category should be defined with CRM specific roles so that only they can receive the alerts for CRM interfaces.

  • Alert Configurations

    Hello SAP PI Experts,
    I was going through Michal's blog regarding alerts creation, Michal's PI tips: Component-Based Message Alerting . There he mentions from the 1st step itself that we create alerts in ID, but I dont see any option or button to create alerts in our system's ID.
    Kindly mention how to do that in ID.
    Thanks,
    Ajeya G V

    Hi,
    If CBMA is not available then use classical alert configuration for your system.
    Alert Configuration – Step by Step Guide
    Regards,
    Muni.

  • BPM Alerting

    Hello experts,
    does anybody have a hint for me, how we can get automatic alerts for fail processes e. g. via e-mail? We are using the component-based message alerting for PO. But afaik, this does not cover processes.
    Thanks in advance.
    Regards,
    Markus

    This cannot be achieved through just configurations as the experts have rightly said.
    The failure to execute automated activites can be captured via boundary events as mentioned earlier by Christian.
    Technical exceptions in execution of automated activities can be captured in boundary events:
    The flow connector coming out of the boundary event can be then conected to a notification activity where you can alert the recipient of the failure:
    Hope this helps.

Maybe you are looking for