Custom event - adding Document in message data

Hi,
I'm trying (without success) to add a document variable into the message data of a custom event.
I have tryed to define in schema an element having no type, and then to put directly the document using the data mapping.
All the process is working except the fact that the passed content (a form) cannot be  readen as passed.
Do somebody have an advice to achieve that?
Thanks for your help
Denis

Hi Bin Dong,
here are some hints in addition to the info from Steffen:
How to find the version of SAP MDM components related to your question:
SAP MDM Data Manager -> click on About
SAP MDM Console -> Help -> select About SAP MDM Console
SAP MDM Server -> on installation machine, go to folder .../Server , and in e.g. Windows, select the file mds.exe and the properties of the file will show its  version.
Please use the installation files you got from the same SP/patch/hotfix.
MDM 5.5 SP4 is in monitored shipment, therefore if you work at a customer, you can ask your customer to upgrade to the latest available SP4 patch1 5.5.33.13.
What I could find about the RC code 82030100 is nothing more than you mentioned "Unhandled Exception" ...
Regards.
Laszlo.

Similar Messages

  • Could some one explain to me how Custom Events work?

    I tried looking in the live docs and still it confused me, so
    then I went searching on the net and found this very lovely
    tutorial
    http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-the-clone-method/
    but still it confused me. The part I am puzzled on the most is that
    when you create like a event that listens for when your mouse
    clicks something is setup like addEventListener(MouseEvent.CLICK,
    eventHandler) etc, etc. And when a mouse is clicked the event is
    triggered! but if the CLICK constant is just a a string value what
    is going on behind the scenes that tells it (lets say Flex is
    talking -->) "okay he/she specified the 'CLICK' constant so I
    guess this means I will make this event happen only when the mouse
    clicks on that particular object" and same with
    MouseEvent.DOUBLE_CLICK how does it know to trigger this event only
    when the mouse double clicks on a item. I want to make my own
    custom events that trigger a particular event based on what a
    object does, but I just don't understand how to set it up and
    implement it.

    HI,
    The hole concept of event dispatcher is that events get fired
    all the time, if there is someone listening to the event or not. In
    your own example, the CLICK event gets fired each time someone
    clicks on the object.
    When you add an event listener basically what you are doing
    is adding a function to a queue of functions that get executed each
    time a specific event is fired. This is very important to keep in
    mind from the object disposal point of view, since for the garbage
    collector to actually kill an object all reference to it must be
    eliminated, and this include the reference in this queue for the
    listening function.
    The reason that an event name is simply a String is so you
    can actually define any event you might like. Still is good
    practice to define constants for your events names since it will
    avoid a lot of errors when writing code.
    Now to fire an event all you need to do is dispatch a
    specific event using the "dispatchEvent" function. This is what
    happens each time you click on an object, the dispatchEvent(new
    Event(Event.CLICK))) function is called.
    If you are using custom events it's a good idea to extend the
    Event class so you can add some extra information to the event, for
    example, in the MouseEvent the x and y coordinates of the mouse are
    added. To dispatch a custom event all you do is call the event
    dispatcher with the custom event:
    dispatchEvent(new CustomEventClass(Some Data));

  • Populating the custom filed - added in BOM item.

    Hello Friends,
    I have a requirement like, for the custom field added in BOM item data, it should come filled while executing the CS02/CS03/CS12/CS73....transactions.
    I have added a field which is one of the field from MARA table. what I have to do is to pass the MARA record into the custom field added based on IDNRK.
    This should happen as soon as enter button is pressed after entering material, plant, bom usage value.
    Please let me know if any exit is there wherein I can put the code OR if any other way!
    Thanks.

    i have solved this issue by doing some R&D.

  • How to receive the custom event in the listening portlet (No backing file)

    I have couple of portlets (JPF based). Portlet A is firing an event
         public Forward processAction()
              PortletBackingContext context =PortletBackingContext.getPortletBackingContext(this.getRequest());
              String message = "XXXXX";
              context.fireCustomEvent("customevent", message);
              Forward forward = new Forward("success");
              return forward;
    I have configured the Portlet B's eventhandler to listen for the 'customEvent' and invoke the pageFlowAction 'listenForEvent'
         @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "test2.jsp") })
         public Forward listenForEvent() {
              Forward forward = new Forward("success");
              return forward;
    Portlet B's method listenForEvent is indeed getting invoked, but is there a way I can retrieve the 'Event' object (as fired by Portlet A) inside the listenForEvent. I could have done this via the Backing file, but for some reasons i cann't use the backing file. Is there a way i can get the CustomEvent and the associated payload in my listening JPF portlet, without a backing file?
    The WLP version is 10.3

    Hello,
    I originally said:
    All you should need to do is to modify the method signature for your event-receiving method. The method signature should be:
    public void listenforEvent(HttpServletRequest request, HttpServletResponse response, Event event)
    where Event is a com.bea.netuix.events.Event object. You can then cast this to a CustomEvent object.
    But I mis-read your earlier post about catching the custom event and invoking a pageflow action. When you do that, you will lose the custom event's payload (your message), and there is no way to retrieve it from your pageflow action.
    The only way you can actually retrieve the event's payload is using a backing file for the portlet, with a method having the signature I mentioned above. You can then set a request attribute with the event's payload and still have it invoke the pageflow action, at which time you could retrieve the request attribute value-- assuming you don't need to run this portlet over WSRP. Over WSRP, the event-handling and pageflow action-invoking lifecycles will happen with independent request objects, so you would need to store the event payload in session to work over WSRP.
    Kevin
    Edited by: kfrender on Aug 31, 2009 3:34 PM

  • Error message: "This document contains photoshop data which appears to be damaged."

    I saved the file I was working on by choosing "Save" from the "File" menu. Unfortunately after 10 min as I saved my work  my PC had "issues" and needed to be manually shut off. I was trying to open the psd file after restarting my computer and I get this error message: "This document contains photoshop data which appears to be damaged. Continue and ignore the photoshop data?" I clicked okay and then I get just a black screen. No Layers or any pictures.
    I have tried to preview in Graphic Converter, in Illustrator, in ACDSee, etc... Nothing... I just get a black screen. Also, I have tried file recovery programs: Stellar Phoenix PSD Repair V1.0 and Advanced PSD Repair v1.4
    The program Stellar Phoenix PSD Repair V1.0 was able to recover only BMP picture 3.4 KB, it is so tiny that you can't see anything on the picture.
    I also have tried to install plugin "psdrecover", for Adobe Photoshop. Unsuccessfully for some reason. The plugin does not want to be installed into the "plugins" folder. I did follow the instructions.
    I am using Photoshop 6 version and Windows 7 operating System.
    I am in dire need of help. I've been working on it for days. Is there any way to recover that file back?

    I hate to be the bearer of bad news, but you're likely out of luck.  We almost never hear of anyone recovering image data from a damaged PSD.
    Some thoughts:
    1.  Set up backups.
    2.  Get in the habit of saving your master file in several different locations as you work on it.
    3.  Consider upgrading to Photoshop CS6, which auto-saves your work in the background.  I'm not sure whether it would have recovered the data in your particular case, but it's possible.
    4.  Don't feel bad - go back and do the image again, and I'll bet it comes out even better in less time.
    -Noel

  • How to manage data in a custom table added in SBO?

    Hello,
    I'm developing a addon for one client that needs to control an aditional step, after each Invoice is posted.
    Since SBO does not allow me to add additional fields to Invoice header table (OINV), I thought to add a custom table to SBO database to control the process for each Invoice (simple table with 2 columns: DocNum to hold the Invoice number, and Status to keep track if the Invoice was processed or not).
    When I added a Custom Table in SBO and checked the table definition in SQL Manager, I found that SBO added automatically 2 new columns (Code and Name).
    Since the PK is defined at Code column (and not the DocNum has I wanted), I found that it not very handy to manage data (insert, delete & update) with this table definition.
    I tried to find a DI object that could manage easily the data of this table type but had no sucess.
    Then I thought in adding the custom table directly in SQL Manager, and manage it directly with Recordet objects.
    However this seems not a standard process to manage data since it interacts directly with the DBMS, which can be dangerous...
    Is there any way or DI object to manage this custom tables added in SBO?
    Thanks all!
    Manuel Dias

    Hi Manuel,
    What do you mean by SBO does not allow me to add additional fields to Invoice header table (OINV).
    Have you tried it add a UDF to OINV,if so what is the exception you got while adding.
    If you Have not tried Use the following code to create.
    Dim oUserFieldMD As SAPbobsCOM.UserFieldsMD
            oUserFieldMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            If (Not isColumnExist(TableName, ColumnName)) Then
                oUserFieldMD.TableName = "OINV"
                oUserFieldMD.Name = ColumnName
                oUserFieldMD.Description = Description
                oUserFieldMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                oUserFieldMD.EditSize = Size
                (objUserFieldMD.Add() )
            End If
    if the field is added successfully.
    Then open the Invoice screen and goto View menu and click on user defined fields then it will show you one form which contains the field you added,
    You can access this field using DIAPI of Invoice object
    regards
    Vishnu

  • ADDED event in document class after removed from Stage

    Hi All,
    I am currently play with the document class (the class acts as main) constructor for a SWF file.
    package {
      import flash.display.*;
      import flash.events.*;
      public class TestSymbol extends MovieClip
        public function TestSymbol()
          this.addEventListener(Event.ADDED, function(event:Event) { trace(event.eventPhase, event.target, event.currentTarget, "added triggered"); });
          trace("parent", this.parent);
          this.stage.removeChild(this);
          trace("stage", this.stage);
    In frame script 1, i put
    trace("1");
    trace("parent", this.parent);
    After i run TestSymbol.swf and  i got
    parent [object Stage]
    stage null
    2 [object TestSymbol] [object TestSymbol] added triggered
    1
    parent null
    I wonder where is this ADDED event coming from? If the document class is added to some other objects, why its parent is null after the event?
    Thanks in advance
    Sam

    By wrapper do you mean they are the same object or the MainTimeLine is a separate object being added to DocumentClass, as it triggers the ADDED event? I know that framescript can be accessed as documentClass functions, so I thought they are the same object, maybe i was wrong.
    I did a new test within some more listeners
    package {
      import flash.display.*;
      import flash.events.*;
      public class TestSymbol extends MovieClip
        public function TestSymbol()
          this.addEventListener(Event.ADDED_TO_STAGE, addedToStageListener);
          this.addEventListener(Event.ADDED, addedListener)
          this.addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageListener);
          this.addEventListener(Event.REMOVED, removedListener);
          trace("parent", this.parent);
          this.stage.removeChild(this);
          trace("stage", this.stage);
         private function addedListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "added triggered");
         private function addedToStageListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "addedToStage triggered");
         private function removedListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "removed triggered");
         private function removedFromStageListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "removedFromStage triggered");
    and this is the output
    parent [object Stage]
    2 [object TestSymbol] [object TestSymbol] removed triggered
    2 [object TestSymbol] [object TestSymbol] removedFromStage triggered
    stage null
    2 [object TestSymbol] [object TestSymbol] added triggered
    As the remove listeners are fired immediately, i don't think the queue is waiting until the end of the constructor.

  • Events + Message Data Templates

    I have defined my own versions of the events TaskCreated and TaskComplete in which I specify the XSD Event Message Template so that I can pass "complex" information.
    In my event thrower, I ...
    * setup an event data map to pass my process instance id
    * provide an xml variable as the event message data.
    In my event receiver, I have my process data map set up with 3 values.
    * assign the process instance id passed in the event data map to a local variable
    * assign a particular string element in my event message data (xml) to a local variable.
    These both work.
    What doesn't work is assigning the entire event message data (xml) to a local process variable of type xml. My local xml process variable is always null.
    I don't understand how I can map a single value from within the xml, but I cannot map the entire xml.
    Any thoughts?

    And if you look at the provided event samples.
    In the POCancel event, they specify an event message template which contains "Order" information, but they never use it in the samples.

  • Hang Calling function after Document Class' Event.ADDED

    I was trying to load an external SWF (that contains the below code in its document class) with the Loader class but i keep on receiving Error #1009: Cannot access a property or method of a null object reference. So i tried to use the event listener Event.ADDED in MyDocumentClass constructor of the external SWF to let the document class be part of the display list before i invoke createRandomGraph. But when i place createRandomGraph( ) inside onStageReady, The compilation process hangs. When i leave the createRandomGraph( ) inside the constructor, it works perfectly as stand alone but will produce Error 1009 if loaded within the loader SWF. Any ideas?
    public function MyDocumentClass( )
        this.addEventListener(Event.ADDED, onStageReady);
        createRandomGraph( )
    private function onStageReady(oEvent:Event):void
        this.removeEventListener(Event.ADDED, onStageReady);
    private function createRandomGraph( ):void
        var cRandomGraph:RandomGraph = new RandomGraph();
        cRandomGraph.x = 10;
        cRandomGraph.y = stage.stageHeight - nH - 25;
        cRandomGraph.setDimensions(nW,nH);
        cRandomGraph.createGraphBackground();
        this.addChild(cRandomGraph);

    use:
    public function MyDocumentClass( )
        this.addEventListener(Event.ADDED_TO_STAGE, onStageReady);
    private function onStageReady(oEvent:Event):void
        this.removeEventListener(Event.ADDED, onStageReady);
    createRandomGraph();
    private function createRandomGraph( ):void
        var cRandomGraph:RandomGraph = new RandomGraph();
        cRandomGraph.x = 10;
        cRandomGraph.y = stage.stageHeight - nH - 25;
        cRandomGraph.setDimensions(nW,nH);
        cRandomGraph.createGraphBackground();
        this.addChild(cRandomGraph);

  • Message 131-3 when adding document

    I am adding a document to a UDO and I get the Message 131-3 that says I have to set up the numbering series thru the Administration tab first.  The only problem is that this has already been done.  There is a Next number and a Last number set for this document.  Is there something else that has to be set?  I have added documents successfully to this table in the past.
    Please help!

    Tim,
    What version of SAP Business One are you using?  If you are using 2007A, I think there were some issues in earlier PL's.  Please make sure you have downloaded the latest which is PL15 ... again ... if you are using 2007A.
    Eddy

  • In using Office Mac 2011 I noticed that there is 3 gigs of data under Documents/Microsoft User data for Message Sources.  Anyone know what this is and if it can be deleted?

    In using Office Mac 2011 I noticed that there is 3 gigs of data under Documents/Microsoft User Data for meassage sorces.  Does anyone know what these files are and can they be deleted?

    Hi SDP1,
    Do you use Outlook or Entourage? If so, that's where all of your emails are stored. If you don't use either of those applications I'd go digging through the folders and see where all the space is tied up. Check the Identifies folders, that's probably where everything is located.

  • Will newly added contacts and messages gets deleted after restoring old backup on iphone..??

    Hey everyone, i backup my iphone 4 a month ago after that , i defeated the final remaining enemy 'ryth' in infinity blade 2
    than after 3 months i bought my new 4th gen ipad 32gb with cellular i installed unfinity blade 2 on it an when launches it it started from begining, don't know why icloud saves didn't worked. But the problem is that now on my iphone it also sarted from begining. Some discussion said backup your phone for this problem but if i backup my phone from that one month old backup will it delete my new added contacts, new messages on phone and on whatsapp?
    and if anyone have solution for IB2 without restoring the hone that would be great....! Plz halp...!!

    This is what is backed up
    iTunes will back up the following information
    Contacts* and Contact Favorites (regularly sync contacts to a computer or cloud service such as iCloud to back them up).
    App Store Application data including in-app purchases (except the Application itself, its tmp and Caches folder).
    Application settings, preferences, and data, including documents.
    Autofill for webpages.
    CalDAV and subscribed calendar accounts.
    Calendar accounts.
    Calendar events.
    Call history.
    Camera Roll (Photos, screenshots, images saved, and videos taken. Videos greater than 2 GB are backed up with iOS 4.0 and later.)
    Note: For devices without a camera, Camera Roll is called Saved Photos.
    Game Center account.
    Home screen arrangement.
    In-app purchases.
    Keychain (this includes email account passwords, Wi-Fi passwords, and passwords you enter into websites and some other applications. If you encrypt the backup with iOS 4 and later, you can transfer the keychain information to the new device. With an unencrypted backup, you can restore the keychain only to the same iOS device. If you are restoring to a new device with an unencrypted backup, you will need to enter these passwords again.)
    List of External Sync Sources (MobileMe, Exchange ActiveSync).
    Location service preferences for apps and websites you have allowed to use your location.
    Mail accounts (mail messages are not backed up).
    Installed Profiles. When restoring a backup to a different device, installed configuration profiles are not restored (such as accounts, restrictions, or anything which can be specified through an installed profile.) Any accounts or settings that are not associated with an installed profile will still be restored.
    Map bookmarks, recent searches, and the current location displayed in Maps.
    Microsoft Exchange account configurations.
    Network settings (saved Wi-Fi hotspots, VPN settings, network preferences).
    Nike + iPod saved workouts and settings.
    Notes.
    Offline web application cache/database.
    Paired Bluetooth devices (which can only be used if restored to the same phone that did the backup).
    Safari bookmarks, cookies, history, offline data, and currently open pages.
    Saved suggestion corrections (these are saved automatically as you reject suggested corrections).
    Messages (iMessage and carrier SMS or MMS pictures and videos).
    Trusted hosts that have certificates that cannot be verified.
    Voice memos.
    Voicemail token. (This is not the voicemail password, but is used for validation when connecting. This is only restored to a phone with the same phone number on the SIM card).
    Wallpapers.
    Web clips.
    YouTube bookmarks and history.
    * Your contacts are part of the backup to preserve recent calls and favorites lists. Back up your contacts to a supported personal information manager (PIM), iCloud, or another cloud-based service to avoid any potential contact data loss.
    You will see that contacts are backed up

  • IDoc - Custom segments added?

    Hi,
    I am new to IDOC and working on Sales Order BOM inbound interface. Using BOMORD01 Idoc and filling E1STZUM, E1KDSTM and E1STPON segments. Getting a message saying "Segment cannot be identified" (ZE1FIKP) and also "Custom segments added" but actually my intention is not to add any custom segments, why I am getting this message and how to correct it.
    Thanks in advance.
    Regards,
    Balaji Viswanath.

    Hi,
    Just For your understanding...
    There are basically two types of IDOCs.
    Basic IDOCs
    Extended IDOCs
    Idoc Components
    Basic Idoc
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extension Idoc
    Extending the functionality by adding more segments to existing Basic IDOCs.
    Creation of IDoc
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    create IDOC Type
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    for futher info check the below links
    http://www.allsaplinks.com/idoc_sample.html
    http://www.allsaplinks.com/
    http://www.sap-img.com/
    http://www.sappoint.com/abap.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html
    http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358
    http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm
    <b>if u find it useful plz mark the points</b>

  • To do any actions with adding document

    Hello all!
    I want to do any actions with adding document (A/P Invoice for example). How I can do it? (If I catch event from Item_pressed (button "Add"), it's don't work allways, becouse adding document may be failure (didn't edit Dates, or serial numbers for example)
    Thanks.

    Ad, hello.
    If I use BeforeAction = False it's doesn't control adding document too. For example:
    If pVal.FormType = 133 And BubbleEvent = True Then
         Select Case pVal.EventType
             Case et_ITEM_PRESSED
             If pVal.Before_Action =False  And  pVal.ItemUID  = "1" Then
                  SBO_Application.MessageBox " !!!!!!!"
             End If
          End Select
    End If
    This code send you message independing of success adding document... But I want send it only after success adding...

  • Create Component that Listens for Custom Event

    I've read a lot of tutorials and posts in this forum but still seem to be missing something.
    I want to be able to create an arbitrary number of instances of a custom class (based on Button) that each listen to a custom event dispatched in the application.  Eventually the event will carry data (including information that will let each Button determine whether it should react to the event), but for now I just want them to be able to hear the event.
    What's supposed to happen is
    1) Clicking the button labeled "I Make the Button" creates an instance of EventHearingButton using this.addElement.
    2) Clicking the button labeled "I Send the Event" dispatches the SuperCustomEvent custom event, with the additional information "I heard that" stored in the Information string
    3) The created EventHearingButton hears the event and updates its label to the value in the Information string.
    What actually happens is the EventHearingButton is created OK, but nothing happens when the "I Send the Event" button is clicked.
    Main.mxml
    <?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/halo">
         <fx:Metadata>
              [Event(name="SuperCustomEvent", type="Classes.SuperCustomEvent")]
         </fx:Metadata>
         <fx:Script>
              <![CDATA[
                   import Classes.EventHearingButton;
                   import Classes.SuperCustomEvent;
                   protected function EventDispatcherButton_clickHandler(event:MouseEvent):void
                        var NewEvent:SuperCustomEvent = new SuperCustomEvent("I heard that");
                        this.dispatchEvent(NewEvent);
                   protected function button1_clickHandler(event:MouseEvent):void
                        var NewButton:EventHearingButton = new EventHearingButton();
                        NewButton.x=270;
                        NewButton.y=130;
                        this.addElement(NewButton);
              ]]>
         </fx:Script>
         <s:Button x="270" y="90" label="I Send The Event" id="EventDispatcherButton" click="EventDispatcherButton_clickHandler(event)"/>
         <s:Button x="270" y="50" label="I Make the Button" click="button1_clickHandler(event)"/>
    </s:Application>
    Classes.EventHearingButton.as
    package Classes
         import spark.components.Button;
         import flash.events.Event;
         import Classes.SuperCustomEvent;
         public class EventHearingButton extends Button
              public function EventHearingButton()
                   super();
                   this.label="I haven't heard yet";
                   this.addEventListener(SuperCustomEvent.SUPERCUSTOMEVENT,SuperCustomEventHandler);
              private function SuperCustomEventHandler(event:SuperCustomEvent):void {
                   this.label=event.EventInformation;
    Classes.SuperCustomEvent.as
    package Classes
         import flash.events.Event;
         public class SuperCustomEvent extends Event
              public var EventInformation:String;
              public static const SUPERCUSTOMEVENT:String = "SuperCustomEvent";
              public function SuperCustomEvent(Information:String)
                   super(SuperCustomEvent.SUPERCUSTOMEVENT, true);
                   this.EventInformation=Information;
              override public function clone():Event{
                   return new SuperCustomEvent(EventInformation);

    "nikos101" <[email protected]> wrote in
    message
    news:ga59t5$8nh$[email protected]..
    >I tried something like what AMy described in a custom
    component
    >
    > dispatchEvent(new Event("Cancelled_Form"));
    >
    > I then added the following Listener in my application
    file;
    >
    > this.addEventListener("Cancelled_Form",cancelledForm);
    >
    > but it is never heard. Does anyone know what I have done
    wrong?
    Try attaching the event listener to your component rather
    than the
    application.
    HTH;
    Amy

Maybe you are looking for