Problem dispatching event a second time

When the page is first loaded I dispatch an event to get data
as follows:
public function init():void
CairngormEventDispatcher.getInstance().dispatchEvent( new
CairngormEvent( GetTransactionsEvent.EVENT_GET_TRANSACTIONS ) );
In one of my functions to insert new data, I dispatch
getTransactions event again but it doesnt fire:
private function insertTransactions():void
{ CairngormEventDispatcher.getInstance().dispatchEvent( new
CairngormEvent( GetTransactionsEvent.EVENT_GET_TRANSACTIONS ) );
It's only when I remove the first getTransactions event that
the second instance fires. I am guessing there is some problem
dispatching a same event twice??
Can somebody please advise?
Thanks in advance.

Yes I have created a brand new event (and also command) and
everything is working now. However, I tried doing the following but
it doesnt work (the refresh version doesnt work):
Event:
public class GetTransactionsEvent extends CairngormEvent
public static var EVENT_GET_TRANSACTIONS : String =
"getTransactions";
public static var EVENT_GET_TRANSACTIONS_REFRESH : String =
"getTransactionsRefresh";
Controller:
addCommand( GetTransactionsEvent.EVENT_GET_TRANSACTIONS,
GetTransactionsCommand);
addCommand(GetTransactionsEvent.EVENT_GET_TRANSACTIONS_REFRESH,
GetTransactionsCommand );

Similar Messages

  • I am facing problem in calling Ztransaction second time ?

    Hi All,
    I have no issues while calling ztransaction first time , but while calling second time it is taking too much time ,
    if we are entering transaction code  in command field only i am facing this problem , no issues when we call tcode programatically using call transaction keyword , what is the reason for this and how to avoid it...
    thanks in advance.

    Hi,
    Tick on all (Three) GUI Support check box and try.
    Tcode se93
    regds,
    paras

  • PROBLEM IN LOADING XML SECOND TIME

    HI,
    Actually i m loading xml 1st time when the page is loading,then again 2nd time when i m trying to load 2nd xml based on dropdown value then it is loading xml but it is appending the 2nd xml with the 1st xml.i m also unloading xml at first then loading 2nd xml but it is cming like that.the code is for loading and unloading is........
    for loading i m calling---------------load_xml(xml)
    for unloading i m calling------------- unload_xml()
    function unload_xml():void
    trace("in unload")
    this.removeChild( flashmo_item_group );
    function push_array(e:Event):void
    flashmo_xml = XML(e.target.data);
    total = flashmo_xml.item.length();
    for( i = 0; i < total; i++ )
      flashmo_item_list.push( { content: flashmo_xml.item[i].content.toString() } );
    load_css();
    function load_xml(xml_file:String):void
    var xml_loader:URLLoader = new URLLoader();
    xml_loader.load( new URLRequest( xml_file ) );
    xml_loader.addEventListener(Event.COMPLETE, push_array);
    xml_loader.addEventListener(IOErrorEvent.IO_ERROR, io_error);
    function load_css():void
    css_loader.load( new URLRequest(css_file) );
    css_loader.addEventListener(Event.COMPLETE, css_complete);
    css_loader.addEventListener(IOErrorEvent.IO_ERROR, io_error);
    function css_complete(e:Event):void
    var css_format:TextFormat = new TextFormat();
    flashmo_style.parseCSS(css_loader.data);
    create_item_list();
    flashmo_loading.visible = false;
    function io_error(e:IOErrorEvent):void
    flashmo_loading.xml_info.text += "\n\n" + e;
    function create_item_list():void
    for( i = 0; i < total; i++ )
      var flashmo_item = new MovieClip();
      flashmo_item.addChild( create_item_desc( flashmo_item_list[i].content ) );
      flashmo_item.addChildAt( create_item_bg( flashmo_item.height, i ), 0 );
      flashmo_item.y = item_height;
      item_height += flashmo_item.height + item_spacing;
      flashmo_item_group.addChild( flashmo_item );
    this.addChild( flashmo_item_group );
    flashmo_item_group.mask = flashmo_mask;
    flashmo_sb.scrolling("flashmo_item_group", "flashmo_mask", 0.40); // ScrollBar Added
    function create_item_bg( h:Number, item_no:Number )
    var fm_rect:Shape = new Shape();
    fm_rect.graphics.beginFill(0xFFFFFF, 1); // ITEM BACKGROUND COLOR
    fm_rect.graphics.drawRoundRect(0, 0, item_width, h + item_padding * 2, 0);
    fm_rect.graphics.endFill();
    return fm_rect;
    function create_item_desc( item_desc:String )
    var fm_text = new TextField();
    fm_text.x = item_padding;
    fm_text.y = item_padding;
    fm_text.width = item_width - item_padding * 2;
    fm_text.styleSheet = flashmo_style;
    fm_text.htmlText = item_desc;
    fm_text.multiline = true;
    fm_text.wordWrap = true;
    fm_text.selectable = true;
    fm_text.autoSize = TextFieldAutoSize.LEFT;
    return fm_text;
    flashmo_sb.alpha=1;
    so plz give me idea to resolve this problem.

    function push_array(e:Event):void
        flashmo_item_list = [];
    flashmo_xml = XML(e.target.data);
    total = flashmo_xml.item.length();
    for( i = 0; i < total; i++ )
      flashmo_item_list.push( { content: flashmo_xml.item[i].content.toString() } );
    load_css();
    that will reset your array.

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • Problem while refreshing the data for the second time using excel services in sharepoint 2013...

    Hi,
    I have migrated my Sharepoint from 2010 to 2013.I am able to get the data at the first time of refresh when I click on refresh for the second time I am getting the empty the sheet.
    below find the flow of refresh
    First Refresh
    On Click of refresh open the workbook with excel services and return the session id.
    Using that session I am invoking RefrehAsync method of excel services
    After refresh completed I am setting the calculation of workbook as automatic(to calculate the formulas) using the same session id
    After setting the calculation as Automatic I am setting the calculation type as full(recalculate) using the same session id.
    Now I am able to see the data
    Second Refresh
    After clicking on refresh instead of opening the workbook I am using the session id(already opened workbook) and setting the calculation type as manual
    I am following the same process from refresh(RefreshAsync) as I have followed in first refresh.
    This time my formulas are not getting calculated because of that I am not able to see the data.
    Could you please let me know that am I missing anything here?
    Is this know issue in Sharepoint2013 excel services as same code is working fine with Sharepoint2010.
    If I close the workbook(session id null) and opens(new session id) for all the refreshes it is working and I am able to see the data.
    Thanks,
    Meenakshi Nagpal
    N.Meenakshi

    I am able to see the data for the second refresh  if I change the data source.If I use the same data source which is used in the first refresh I am not getting the data.Excel services will contact the cubes and calculate the formulas in my workbook.
    Could you please let me know what could be the problem at second refresh while contacting the same data source with same session id?
    Please help me asap.
    Thanks,
    Meenakshi Nagpal
    N.Meenakshi

  • For the second time (I've been to the Genius Bar once already) my WiFi isn't working on my iPhone 4S. This is really infuriating and costly!!! I see others have the same issues.  Can't Apple do anything about this?  It's obviously a hardware problem!

    For the second time (I've been to the Genius Bar already once with this) my Wifi isn't working.  They gave me a new iphone last time, but the new one has the same issue as the old one, I'm guessing.  I've tried resetting the network but that doesn't work.
    I see others have this issue too.
    If this is a hardware problem why doesn't Apple fix it?  Or do I just have to wait another year for another upgrade?
    Currently it's not costing me anything - yet - because I've got the Apple Warranty but this is totally frustating!!! I bought the original phone (which has been replaced in July 2012.  The new phone (without working Wifi) is a month old.
    Will try Restore via ITunes before (I will invariably) have to return to the Genius Bar for another Iphone 4S unless someone has an ingenius solution here?..?

    sematson wrote:
    If this is a hardware problem why doesn't Apple fix it?  Or do I just have to wait another year for another upgrade?
    For what reason, other than making yourself look foolish, would you ask questions that we users could not possibly answer as we're NOT Apple?
    Basics from the manual are restart, reset, restore from backup, restore as NEW.  Nothing more "ingenius" to suggest than these steps that Apple has outlined in the manual.  If these steps don't work, then go back to the Apple store.

  • I downloaded a song from i-tunes.  It plays on my computer, but won't play on my i-phone.  Any suggestions on how to fix this? Or how can I re-download the song without getting charged a second time.  I could not find an option to "report a problem".

    I downloaded a song from i-tunes.  It plays on my computer, but won't play on my i-phone.  Any suggestions on how to fix this? Or how can I re-download the song without getting charged a second time.  I could not find an option to "report a problem".

    I could not find an option to "report a problem".
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • My new macbook pro is giving me hardtime. even apple team is not being to solve it. they replace the motherboard first it didn't work. second time they formatted the computer and that also didn't work. every time my mac showing different problems.

    my new macbook pro is giving me hardtime. even apple team is not being to solve it. they replace the motherboard first it didn't work. second time they formatted the computer and that also didn't work. every time my mac showing different problems.
    At first my computer had issues. Once it go to sleep it will not back again. I dropped my laptop at apple store to fix it. After 10  days they returned my laptop saying they were no able to fix the problem so they replaced motherboard aiming if that might help. Acttually that didn't help.I had same issue again. I visited apple store again. This time they said they could fix, if I will allow them to format the harddrive. I said ok. They formatted it. It was working fine for few daysAfter few days compter is taking.even more than 15 min to shutdown. Now computer has another problem. It is being hang frequently like every 20'to.30 min.
    I don't know what to do? I still have one month left on first year warranty. I have requested couple times to apple associates either to fix or replace or refund. They are showing me rude behavior. They are not understanding my situation. I am a student. I need to do lot of home work. Since last three month my mac book and apple associates giving me hard time. Any suggestions are welcome.

    Contact Apple Customer Care - not Apple Care - Customer Support. Have your receipts handy and/or case numbers. Be patient, be calm, and tell your story just as you have here. I get the sense you are not in the US and don't have access to an Apple Store but are going to an independent shop. This makes using Customer Support all the more important. If phoning isn't viable, use registered mail.
    Since time is running short, be prepared to purchase AppleCare to exennd your warranty 2 more years. Yes, you shouldn't have to do this, but it gives you added protection and more opportunities over the next 2 years to claim a replacement computer if you don't get one immediately. After dealing with a similar unhappy situation with a Mac in the late 1990s I finally got a replacement computer and reimbursed for the AppleCare policy.

  • I had to replace my hard drive twice in my power mac g5. Luckily, I had the foresight to install a backup drive the second time around. Has anybody had HD problems? Is it the Power Mac or I just lucked out on some bad drives.

    I had to replace my hard drive twice in my power mac g5. Luckily, I had the foresight to install a backup drive the second time around. Has anybody had HD problems? Is it the Power Mac or I just lucked out on some bad drives.

    Hi Leon,
    There are many well known G5 problems, but being hard on Hard Drives is not one of them.
    How old & what brand/model drives were they?

  • Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Hi,
    I have the check box on a second Partition  but not on the Time Machine one
    I forget what I did now to get this called "Recovery HD"
    For the rest try https://discussions.apple.com/docs/DOC-4055  User Tip that links to Pondini's work on Time Machine.
    10:17 pm      Friday; May 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Second Time, RFC execution Problem!

    Hi all,
    Has any one encountered this problem, when calling RFC First time fine and getting data from BAPI, when i call same RFC again, Second Time, RFC execution Problem!. Any idea!, Now i restarted server, that may cause the problem. Other than this, please give me your idea.
    Thanks
    Ravi Golla

    Hi Bhavik,
    <b>In View Controller:</b>
    public void onActionCreateProject(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCreateProject(ServerEvent)
        wdThis.wdGetArchCompController().CreateProject();
         wdThis.wdFirePlugOutToProjectCreationResult();
        //@@end
    <b>In Custom Controller:
    </b>
    wdDoInit()
    __Arch__Arm_Project_Create_Input create = new __Arch__Arm_Project_Create_Input();
         wdContext.node__Arch__Arm_Project_Create_Input().bind(create);
    public void CreateProject( )
        //@@begin CreateProject()
         try
                             wdContext.current__Arch__Arm_Project_Create_InputElement().modelObject().execute();
                             wdContext.nodeOutput().invalidate();
                        catch(WDDynamicRFCExecuteException ex)
                             wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
                             ex.printStackTrace();
        //@@end
    I am using other functional modules they all working fine, this is one only has problem
    Thanks  Bhavic.
    Regards
    Ravi

  • THIS IS SECOND TIME I AM EXPERIENCING THE PROBLEM, AND I HAVE ALREADY PAID ANOTHER MONTH PAYMENT BECAUSE I WAS UNABLE TO DISABLE MY MONTH-MONTH MEMBERSHIP ACCOUNT WHICH I BELIEVE IS NOT PROFESSIONAL.. I AM UNABLE TO DISCONTINUE MY MONTH-MONTH MEMBERSHIP A

    THIS IS SECOND TIME I AM EXPERIENCING THE PROBLEM, AND I HAVE ALREADY PAID ANOTHER MONTH PAYMENT BECAUSE I WAS UNABLE TO DISABLE MY MONTH-MONTH MEMBERSHIP ACCOUNT WHICH I BELIEVE IS NOT PROFESSIONAL..
    I AM UNABLE TO DISCONTINUE MY MONTH-MONTH MEMBERSHIP ACCOUNT, AND IT TRANSACTION IS AUTOMATICALLY MADE FROM MY CARD WHICH I DONT AGREE TO.

    When you log into your account page:
    Adobe ID
    You should see a Mange Plan link. Click it and then click Cancel plan.
    This is a user to user forum, none of us work for Adobe.

  • [svn:osmf:] 14812: Fix bug where setting a resource a second time on a VideoElement caused an RTE due to the loadStateChange event listener being unregistered too soon .

    Revision: 14812
    Revision: 14812
    Author:   [email protected]
    Date:     2010-03-17 09:02:11 -0700 (Wed, 17 Mar 2010)
    Log Message:
    Fix bug where setting a resource a second time on a VideoElement caused an RTE due to the loadStateChange event listener being unregistered too soon.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/LoadableElementBase.as

    Revision: 14812
    Revision: 14812
    Author:   [email protected]
    Date:     2010-03-17 09:02:11 -0700 (Wed, 17 Mar 2010)
    Log Message:
    Fix bug where setting a resource a second time on a VideoElement caused an RTE due to the loadStateChange event listener being unregistered too soon.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/LoadableElementBase.as

  • This is second time i show my problem and no answer.

    this is second time i show my problem and no answer.
    I have problem in my iphone icloud password and apple password are not same ihave apple password when i wont
    to access to icloud i cant but no problem to use apple password in app store.
    my problem is iforget icloud password and its not same apple password and iclud password?
    plz help me plz

    You got an answer here: I forget icloud password. Apple ID and icloud have different password  And i cant use apple id in i cloud   Plz help me

  • I have continuous problems with my iPad Mini, and it is getting worse!  Newstand application keep pausing or crashing, websites keep hanging first time in but then open fine the second time, and I have problems with applictions crashing.

    I have continuous problems with my iPad Mini, and it is getting worse!  Newstand application keep pausing or crashing, websites keep hanging first time in but then open fine the second time, and I have problems with applictions crashing.  Has anyone experienced similar problems and any suggestions?

    Has the device always behaved this way? Did this start as a result of an update to the iOS software? If the problem is that bad, you should probably restore the iOS software and then restore from a backup. If that fails, restore as new and rebuild the device. If that fails, it's time for a trip to an Apple Store to let them have a look at the iPad.
    Use iTunes to restore your iOS device to factory settings

Maybe you are looking for

  • Missing thumbnail image in PSE 12 for videos

    Hi I recently downloaded PSE12 to my new computor with Windows 8.1 64 bitt. Ihave just downloaded all my photos and videos from my Iphone 4S but the thumbnail for the videos shows as blank in the organiser with no image yet when you click on it , it

  • Home screen not restored properly after backup

    I'm pretty sure I've gone about this the right way because in the past it has worked fine, but we've added a few more Apps to our devices and now the home screen layout doesn't get restored properly when using Apple Configurator (latest version). Sup

  • Old Photos - Unix Executable File

    Trying to help a friend - he has a bunch of photos on his Mac that are six years old. He can't open them. He sent me one - it shows up as a "Unix Executable File" (whatever that is?). The read/write accesses are OK. File is about the right size (350K

  • Non-breaking Spaces

    By "easy," I mean without going to the TrueCode view and typing " " everywhere I want one. I'm thinking more along the lines of a special keystroke or menu/toolbar command. Thanks! - Greg

  • AE CS5.5 vs CS6 in encoding AC3

    i have videofile from camera SONY (.MTS format:BDAV v:AVC a:ac3) CS5.5 importing everything ok, but in CS6 there is no audio stream. is there any problem with decoding AC3 in CS6 or am I missing something?