Accordion problem: child not display first time added

I have an mx Accordion that I extend to add some simple functionality (e.g., replace a child content at certain index). I tested it in a clean window and everything seemed to work fine, until I use it in my "real" app.
The problem is when I add a child content to it, the child never bothers to show up until after I click on another header and then go back to click on the header of the child that was just added. I try to call "invalidateParentSizeAndDisplayList();invalidateDisplayList(); invalidateSize();" in the child content's addhandler, and on the Accordion's "childAdd" handler, without luck.
Anyone has encountered this before? This is probably not the best place to ask for troubleshooting tips but this is really driving me crazy. Any lead is really appreciated!

ok. i figured it out. setting the "creationPolicy" of the navigatorContent to "all" solves the issue!

Similar Messages

  • Mac mini restart because of a problem. Not the first time!

    Hi everyone!
    This morning, while I was simply listening to iTunes, browsing with Safari and a Time Machine Backup was going on I had the Grey Screen Of Death!
    This is not the first time it happens, I'm really worried about a real hardware problem.
    Here are the infos about the restart, I really don't know how to read them.... Please if someone could help me I will really appreciate!
    Thanks in advance for your help.
    A.A.R.
    Fri Aug 29 09:45:28 2014
    panic(cpu 0 caller 0xffffff80248bc6bc): "complete() while dma active"@/SourceCache/xnu/xnu-2422.110.17/iokit/Kernel/IOMemoryDescriptor.cpp:26 20
    Backtrace (CPU 0), Frame : Return Address
    0xffffff820eccb970 : 0xffffff8024422f79
    0xffffff820eccb9f0 : 0xffffff80248bc6bc
    0xffffff820eccba30 : 0xffffff7fa49f9b06
    0xffffff820eccba70 : 0xffffff7fa49efab2
    0xffffff820eccbac0 : 0xffffff7fa509c2ca
    0xffffff820eccbb10 : 0xffffff7fa509fc3a
    0xffffff820eccbb60 : 0xffffff7fa4a870d4
    0xffffff820eccbbb0 : 0xffffff7fa4a8114e
    0xffffff820eccbc00 : 0xffffff7fa4a8121c
    0xffffff820eccbc30 : 0xffffff7fa4d6a7cd
    0xffffff820eccbd30 : 0xffffff7fa515d126
    0xffffff820eccbde0 : 0xffffff7fa515df11
    0xffffff820eccbe20 : 0xffffff7fa516b82e
    0xffffff820eccbed0 : 0xffffff7fa5173469
    0xffffff820eccbef0 : 0xffffff80248b07f0
    0xffffff820eccbf30 : 0xffffff80248af292
    0xffffff820eccbf80 : 0xffffff80248af367
    0xffffff820eccbfb0 : 0xffffff80244d7417
          Kernel Extensions in backtrace:
             com.apple.iokit.IOStorageFamily(1.9)[9B09B065-7F11-3241-B194-B72E5C23548B]@0xff ffff7fa49ec000->0xffffff7fa4a10fff
             com.apple.iokit.IOUSBFamily(683.4)[7595281D-D047-3715-9044-98F46B62F845]@0xffff ff7fa4d67000->0xffffff7fa4dc7fff
                dependency: com.apple.iokit.IOPCIFamily(2.9)[4662B11D-2ECA-315D-875C-618C97CDAB2A]@0xffffff 7fa4abe000
             com.apple.driver.AppleUSBXHCI(683.4)[4C9A2D47-0723-387A-9C4B-6199093960A9]@0xff ffff7fa515c000->0xffffff7fa5178fff
                dependency: com.apple.iokit.IOUSBFamily(683.4.0)[7595281D-D047-3715-9044-98F46B62F845]@0xff ffff7fa4d67000
                dependency: com.apple.iokit.IOPCIFamily(2.9)[4662B11D-2ECA-315D-875C-618C97CDAB2A]@0xffffff 7fa4abe000
             com.apple.iokit.IOSCSIArchitectureModelFamily(3.6.6)[C7B04E3E-37FF-3DC4-A0ED-92 DDCE6FCB98]@0xffffff7fa4a7c000->0xffffff7fa4aa6fff
             com.apple.iokit.IOSCSIBlockCommandsDevice(3.6.6)[160F02BC-97C1-3119-BD28-4B2ED1 21C501]@0xffffff7fa509b000->0xffffff7fa50affff
                dependency: com.apple.iokit.IOSCSIArchitectureModelFamily(3.6.6)[C7B04E3E-37FF-3DC4-A0ED-92 DDCE6FCB98]@0xffffff7fa4a7c000
                dependency: com.apple.iokit.IOStorageFamily(1.9)[9B09B065-7F11-3241-B194-B72E5C23548B]@0xff ffff7fa49ec000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    13E28
    Kernel version:
    Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
    Kernel UUID:
    Kernel slide:     0x0000000024200000
    Kernel text base: 0xffffff8024400000
    System model name: Macmini6,2 (Mac-F65AE981FFA204ED)
    System uptime in nanoseconds: 1057344563610
    last loaded kext at 419151165914: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7fa63b7000, size 49152)
    last unloaded kext at 542203040150: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7fa63b7000, size 32768)
    loaded kexts:
    com.motu.driver.FireWireAudio 1.6 60625
    com.apple.filesystems.autofs 3.0
    com.apple.driver.AudioAUUC 1.60
    com.apple.iokit.IOBluetoothSerialManager 4.2.6f1
    com.apple.driver.AGPM 100.14.28
    com.apple.driver.ApplePlatformEnabler 2.0.9d6
    com.apple.driver.X86PlatformShim 1.0.0
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 2.6.3f4
    com.apple.driver.AppleUpstreamUserClient 3.5.13
    com.apple.driver.AppleMCCSControl 1.2.5
    com.apple.driver.AppleMikeyDriver 2.6.3f4
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.driver.AppleIntelHD4000Graphics 8.2.8
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.6f1
    com.apple.driver.AppleHWAccess 1
    com.apple.driver.AppleLPC 1.7.0
    com.apple.driver.AppleSMCPDRC 1.0.0
    com.apple.driver.AppleIntelFramebufferCapri 8.2.8
    com.apple.driver.AppleThunderboltIP 1.1.2
    com.apple.iokit.IOUSBAttachedSCSI 1.0.5
    com.apple.driver.AppleIRController 325.7
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.driver.XsanFilter 404
    com.apple.iokit.IOAHCIBlockStorage 2.6.0
    com.apple.driver.AppleUSBHub 683.4.0
    com.apple.driver.AppleSDXC 1.5.2
    com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
    com.apple.driver.AirPort.Brcm4331 700.20.22
    com.apple.driver.AppleFWOHCI 5.0.2
    com.apple.driver.AppleAHCIPort 3.0.5
    com.apple.driver.AppleUSBEHCI 660.4.0
    com.apple.driver.AppleUSBXHCI 683.4.0
    com.apple.driver.AppleACPIButtons 2.0
    com.apple.driver.AppleRTC 2.0
    com.apple.driver.AppleHPET 1.8
    com.apple.driver.AppleSMBIOS 2.1
    com.apple.driver.AppleACPIEC 2.0
    com.apple.driver.AppleAPIC 1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient 217.92.1
    com.apple.nke.applicationfirewall 153
    com.apple.security.quarantine 3
    com.apple.driver.AppleIntelCPUPowerManagement 217.92.1
    com.apple.kext.triggers 1.0
    com.apple.iokit.IOSerialFamily 10.0.7
    com.apple.driver.DspFuncLib 2.6.3f4
    com.apple.vecLib.kext 1.0.0
    com.apple.iokit.IOAudioFamily 1.9.7fc2
    com.apple.kext.OSvKernDSPLib 1.14
    com.apple.iokit.IOBluetoothFamily 4.2.6f1
    com.apple.iokit.IOSurface 91.1
    com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.6f1
    com.apple.driver.AppleSMBusController 1.0.12d1
    com.apple.iokit.IONDRVSupport 2.4.1
    com.apple.driver.AppleHDAController 2.6.3f4
    com.apple.iokit.IOHDAFamily 2.6.3f4
    com.apple.driver.AppleSMBusPCI 1.0.12d1
    com.apple.iokit.IOFireWireIP 2.2.6
    com.apple.iokit.IOAcceleratorFamily2 98.22
    com.apple.AppleGraphicsDeviceControl 3.6.22
    com.apple.iokit.IOGraphicsFamily 2.4.1
    com.apple.driver.X86PlatformPlugin 1.0.0
    com.apple.driver.AppleSMC 3.1.8
    com.apple.driver.IOPlatformPluginFamily 5.7.1d6
    com.apple.driver.AppleUSBHIDKeyboard 170.15
    com.apple.driver.AppleHIDKeyboard 170.15
    com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.6
    com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.6
    com.apple.driver.AppleUSBMergeNub 650.4.0
    com.apple.driver.AppleThunderboltDPInAdapter 3.1.7
    com.apple.driver.AppleThunderboltDPAdapterFamily 3.1.7
    com.apple.driver.AppleThunderboltPCIDownAdapter 1.4.5
    com.apple.iokit.IOUSBHIDDriver 660.4.0
    com.apple.driver.AppleUSBComposite 656.4.1
    com.apple.driver.AppleThunderboltNHI 2.0.1
    com.apple.iokit.IOThunderboltFamily 3.3.1
    com.apple.iokit.IOEthernetAVBController 1.0.3b4
    com.apple.driver.mDNSOffloadUserClient 1.0.1b5
    com.apple.iokit.IO80211Family 640.36
    com.apple.iokit.IONetworkingFamily 3.2
    com.apple.iokit.IOUSBUserClient 660.4.2
    com.apple.iokit.IOFireWireFamily 4.5.5
    com.apple.iokit.IOAHCIFamily 2.6.5
    com.apple.iokit.IOUSBFamily 683.4.0
    com.apple.driver.AppleEFINVRAM 2.0
    com.apple.iokit.IOHIDFamily 2.0.0
    com.apple.driver.AppleEFIRuntime 2.0
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.sandbox 278.11.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 7
    com.apple.driver.AppleKeyStore 2
    com.apple.driver.DiskImages 371.1
    com.apple.iokit.IOStorageFamily 1.9
    com.apple.iokit.IOReportFamily 23
    com.apple.driver.AppleFDEKeyStore 28.30
    com.apple.driver.AppleACPIPlatform 2.0
    com.apple.iokit.IOPCIFamily 2.9
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.corecrypto 1.0
    com.apple.kec.pthread 1
    Model: Macmini6,2, BootROM MM61.0106.B03, 4 processors, Intel Core i7, 2.6 GHz, 16 GB, SMC 2.8f0
    Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
    Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
    Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10E), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.6f1 14216, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: APPLE HDD HTS541010A9E662, 1 TB
    Serial ATA Device: KINGSTON SH103S3240G, 240,06 GB
    USB Device: Porsche Desktop
    USB Device: Hub
    USB Device: Keyboard Hub
    USB Device: USB Receiver
    USB Device: Apple Keyboard
    USB Device: Hub
    USB Device: Hub
    USB Device: IR Receiver
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    FireWire Device: Vendor 0x1F2 Device 0x106800, 0x1F2, Up to 400 Mb/sec
    Thunderbolt Bus: Mac mini, Apple Inc., 23.4

    I'll do... but it sounds strange to me... this LaCie is brand new (I've bought it a month ago) and it seems to be a good brand for drives, especially for Mac OS X, isn't it?
    All this problems started after a Mavericks fresh install...
    I hope to solve this problem quickly.

  • Portlets not displayed first time until refresh

    Hi,
    I have a strange bug when using WLP 8.1 sp5.
    When I go on a page for the first time, my page (Portal Page) is bad displayed : its title is diplayed but the inner portlet is not displayed.
    When I look at the source, I can see that the Portal rendering stopped at the page level (no HTML for the skeleton of portlets).
    If I refresh the page (just F5 or refresh button), the portlet "magically" appears.
    Do you have any idea ?

    For the both .portal and desktop
    It happens after login.
    I use a backing file with handlePostBackData method to check the login action.
    If everything is ok, I redirect the user to the private space.
    On this space, another backing file check that the user is authorized to access to the private space (so it checks for destroyed sessions, url hacks, ...).
    I can put the code of the backing files if you need it.
    After some tests, it seems to be a problem in relation with the page label. If the page label is a book , the portlet don't dipslay, but if the label is the full way to the page, it appears immediately.

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Powerbook pismo with OS 10.4.9 not display battery time

    I was very curious why my newly upgraded powerbook pismo (400 MHz, 1 MB, 55 GB drive, firewire, etc) would no longer display "time remaining" when on battery or external voltage.
    I was getting very close to ordering another battery (6600 mAH) for $150 but decided to do some research first. Lo & behold on the archives there were 30 entries about the same problem on OS 10.4. So in a nutshell, a powerbook pismo with OS 10.4 will not display battery time remaining no matter how many brand new batteries you mail order.
    I'll learn how to use system profiler more often (remaining capacity mAh/amperage = time remaining).

    There's nothing at all wrong with preferring APpleWorks and wanting to continue using it. It's a bit unfashionable these days, but there are many people who have discovered how powerful, flexible and easy it is to use and continue to use it despite the development of alternatives!
    Of course, it does have the drawback of not being intel native, so performance on intel-based Macs will be relatively poor in comparison to iWork, but if that doesn't cause you any problems in use, then it's purely a matter of what you want to use not what anyone else thinks is appropriate!
    That said, what exactly is the problem? Can you scroll by clicking the scroll arrows and dragging the scroll bar, but not by using the mouse wheel?

  • Audio is not playing first time in Flex app with 11.2 Flash player.

    Hi,
    I am playing an audio fle as flv in a flex application with flash player 11.2  but it is not playing first time and it is playing afetr pause/play and page refresh. Loacally it is playing fine. Please help and guide me.
    thanks in Advance
    Rangrajan.

    Taha,
    Not sure that I understand your workflow there. For editing, the 48KHz 16-bit is the "standard." The 32KHz is not.
    Now, what is the Sample-Rate of your original material?
    What is the CODEC used in that muxed (multiplexed, i.e. combined Audio & Video) file?
    Did you allow Conforming complete 100%? This ARTICLE will give you some background.
    Do you see the Waveform Display for that Clip? Alt+click on the Audio portion of the Clip, and then Dbl-click on it to get it into the Source Monitor. Do you see the Waveform Display there?
    Have you added any Keyframes, or Effects to that Audio? Toggle the Keyframe Display in the Track Header, to see if there are any Clip, or Track Keyframes there.
    Have you accidentally Muted that Track? Look at the Visibility (eyeball) icon in the Track Header. Then, look in Audio Mixer to see if that Track is Muted.
    Good luck,
    Hunt

  • How do I connect to Time Capsule from a Windows 8.1 machine which is on a Windows domain. I have been able to connect from a Windows 7 machine on a Windows domain to a Time Capsule. Airport utility is not displaying the Time Capsule Win8.1 machine

    How do I connect to Time Capsule from a Windows 8.1 machine which is on a Windows domain. I have been able to connect from a Windows 7 machine on a Windows domain to a Time Capsule. Airport utility is not displaying the Time Capsule Win8.1 machine.
    I have checked that the firmware has been updated to 7.6.4 . Similalrly the Win8.1 machine has been loaded with the update specified in another discussion.

    Firstly how are you connecting to the TC.. wireless or ethernet?
    Please open a command window and ping it.. ping by name and by IP address.
    If ping succeeds at least by IP it should work.
    In windows explorer type
    \\10.0.1.1 (or whatever the TC ip is.. that is the default).
    Having the airport utility for windows loaded can help the process. As it loads bonjour for windows.
    7.6.4 firmware on the TC is useless. It works better on 7.6.1
    If the ping does not succeed by either name or IP address yet you have internet through the TC, then your network is setup wrongly. You are have firewalls blocking local IP. Take down all the firewalls.

  • The most recent update erased all of my bookmarks. I tried the steps to find them and they are gone. This is not the first time this has happened and it extremely disuptive.

    the most recent update resulted in a loss of ALL of my bookmarks. This is not the first time this has happened and it is very disruptive. I tried the steps suggested to find the bookmarks but that failed.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • After updating itunes to the latest version it will now not open. I have tried reinstalling the programme, rebooting and all other suggestions, to no avail. this not the first time I have had issues with itunes. Frankly I find it completely unacceptable .

    I recently updated itunes to the latest version and now the programme will not open.
    I have tried all suggestions such as reinstalling the programme, rebooting you name it, nothing.
    This most frustrating and completely unacceptable, especially when a company such as Apple touts itself being the leader in music technology yet does not respond directly to questions about faults in their system, but prefers to leave to disgruntled customers to try and sort it out amongst themselves
    This not the first time I have had frustrating problems with the Apple system. Perhaps someone could suggest a more reliable system to switch to. Someone with a better troubleshooting system.

    Going all the way back to Firefox 3.0.5 is shear foolishness, it is 14 security versions behind the last 3.0.19 release. And that version is missing at least a dozen security updates that were applied to the 3.5 and 3.6 versions after support for 3.0.x ended.
    If you are not happy with Firefox 4, you should have installed Firefox 3.6.17. That is very similar to the 3.0 and has all the security fixes that have been released since support for Firefox 3.0.x ended last year.

  • I was almost done my project. I hadn't published it anywhere. Then, the next day, the clips from my timeline went all grey and there was an "out of date" icon. My project was lost. What happened? It's not the first time it's done that!

    I was almost done my project. I hadn't published it anywhere. Then, the next day, the clips from my timeline went all grey and there was an "out of date" icon. My project was lost. What happened? It's not the first time it's done that!

    You can undo your permission changes. Probably the most relevant one is cookies. Try one or both of these methods:
    (1) Page Info > Permissions tab
    While viewing a page on the site:
    * right-click and choose View Page Info > Permissions
    * Alt+t (open the classic Tools menu) > Page Info > Permissions
    (2) about:permissions
    In a new tab, type or paste '''about:permissions''' and press Enter. Allow a few moments for the list on the left to populate, as this information needs to be extracted from a database.
    Then type or paste ''rcn''' in the search box above the list to filter it to the most relevant domains. When you highlight a domain, you can adjust its permissions in the right pane.
    Any luck?

  • Flash file not loading first time but loads on refresh

    I have a problem where a flash program is not loading when
    the webpage is first visited, it will get stuck on the loading
    screen. Now for this file to finish loading, it needs to load in
    another file. Once that file is done loading then the program will
    continue. But like I said the first time the program gets stuck on
    the loading screen and never continues. If you hit refresh in the
    browser then the program will continue past the loading screen.
    I've checked the code and everything seems fine there. Could
    this be a security issue? The two files are on the same domain. Or
    if anyone has any insight into this problem, it would be
    appreciated.

    "Dusarn" <[email protected]> wrote in
    message news:e3b9i7$qup$[email protected]..
    >I have a problem where a flash program is not loading
    when the webpage is first
    > visited, it will get stuck on the loading screen. Now
    for this file to finish
    > loading, it needs to load in another file. Once that
    file is done loading then
    > the program will continue. But like I said the first
    time the program gets
    > stuck on the loading screen and never continues. If you
    hit refresh in the
    > browser then the program will continue past the loading
    screen.
    >
    > I've checked the code and everything seems fine there.
    Could this be a
    > security issue? The two files are on the same domain. Or
    if anyone has any
    > insight into this problem, it would be appreciated.
    That is almost always caused by a faulty preloader code. Post
    your preloader code or a link to the website so it can be checked.
    tralfaz

  • Digital Clock Time is not display present time

    Dear all i have one doubt, i want to confirm please chek my clock time is not display properly what is the problem with this coding
    http://www.newtonclients.com/clock/TEST2.html
    Please help

    Dear all i have one doubt, i want to confirm please chek my clock time is not display properly what is the problem with this coding
    http://www.newtonclients.com/clock/TEST2.html
    Please help

  • AddEventListener is not working first time(initial request).

    Hi All,
        It is behaving strangely; I’m having below code in ActionScript and .MXML file.
       Very first request it is not displaying inquiry_id in confirmation page but it is displaying this value in later requests. In first request also it is displaying value correctly in getNewInquiryResultHandler in controller but when it comes to newReportSucEventHandler it is displaying null value in BroadModel.inquiryConsumer.inquiry_id
    -------------------- NewReportEvent.as(Begin) ---------------------------
    package com.broad.events
      import flash.events.Event;
      import com.broad.beans.Inquiry;
      import com.broad.beans.InquiryConsumer;
      // This custom event should be dispatched if the user
      // successfully logs into the application.
      public class NewReportEvent extends Event{   
        public static const REPORT:String = "report";
        public function NewReportEvent(){
          super(NewReportEvent.REPORT,true,true); //bubble by default     
        override public function clone():Event{
                return new NewReportEvent(); // bubbling support inside
    -------------------- NewReportEvent.as(End) ---------------------------
    In my controller(action script) I added below code for dispatching this event
    public function NewReportEvent():void
          ro = new RemoteObject();
          setUpAmfChannel();
          ro.destination = "manageInquiryService";
          ro.addEventListener("fault", faultHandler);     
          ro.createInquiry.addEventListener("result", getNewInquiryResultHandler);
          Alert.show("Before addNewInquiry");     
              ro.createInquiry(BroadModel.inquiryConsumer);
    }//End of NewReportEvent
    public function getNewInquiryResultHandler(event:ResultEvent):void
          BroadModel.inquiryConsumer.inquiry_id = event.result as String;     
          Alert.show("getNewInquiryResultHandler:"+BroadModel.inquiryConsumer.inquiry_id);
    }//End of getNewInquiryResultHandler
    In Report.mxml file is having following code
    ---------------Report.mxml (Begin) ---------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
    <mx:Script>
          <![CDATA[
          import mx.controls.Alert;
          import com.broad.controller.BroadController;
          import com.broad.model.BroadModel;
          import com.broad.events.*;   
          [Bindable]
          public var mainLableText:String="NEW REPORT";
          [Bindable]
          public var titleText:String="Create A New Report";
        public function init():void{
          Alert.show("Inside newreport init mxml");
          myViewStack.selectedChild = newReport;
          Confirmation.visible=false;       
          broad.selectedItem.label = "Yes";
          // Reset the value too.
          first_name.text = "";       
          last_name.text = "";
          street_address.text = "";
          street_address2.text = "";
          city.text = "";
          state.text = "";
          zip.text = "";         
        private function initHandler():void
          Alert.show("Inside initHandler");
          addEventListener(NewReportEvent.REPORT,newReportSucEventHandler);
          private function newReportSucEventHandler(event:NewReportEvent):void{ 
                Alert.show("Inside newReportEventHandler mxml");
                myViewStack.selectedChild = Confirmation;
                newReport.visible=false;
                Alert.show("Inside newReportEventHandler inquiryId:"+BroadModel.inquiryConsumer.inquiry_id);
                inquiryIdVal.text = BroadModel.inquiryConsumer.inquiry_id;
                public function submitInquiry(evt:Event):void{
                BroadModel.inquiryConsumer.first_name = first_name.text;
                BroadModel.inquiryConsumer.last_name = last_name.text;
                BroadModel.inquiryConsumer.street_address = street_address.text;
                BroadModel.inquiryConsumer.street_address2 = street_address2.text;
                BroadModel.inquiryConsumer.city = city.text;
                BroadModel.inquiryConsumer.state = state.text;
                BroadModel.inquiryConsumer.zip = zip.text;
                Alert.show("Inside submitInquiry state:",currentStateVal);
                this.dispatchEvent(new NewReportEvent());     
          ]]>
    </mx:Script>
          <mx:ViewStack id="myViewStack" width="100%" height="100%" creationPolicy="all" >
          <mx:Canvas id="newReport" height="100%" width="100%" visible="true">
          <mx:Label x="10" y="10" text="{mainLableText}" fontSize="18" fontWeight="bold" color="#F07012"/>
          <mx:LinkButton id="viewEditLink" right="10"  styleName="htmlLink" label="{pageMode}" click="setPageMode(event);"
                visible="{pageMode != null}" includeInLayout="{pageMode != null}" />
          <mx:TitleWindow width="100%" height="100%" layout="absolute" title="{titleText}" fontWeight="normal" fontSize="13" y="38" x="0">
          <mx:Canvas height="100%" width="100%">
          <mx:VBox width="100%" height="100%">
              <mx:HBox>
                    <mx:Label text="Consumer Information: " fontSize="12" fontWeight="bold" color="#34B05D"/>
              </mx:HBox>
              <mx:HBox>
                    <mx:Label text="Report Type: " fontWeight="normal"/>
                    <mx:Label text="Phone" fontWeight="bold"/>
              </mx:HBox>
              <mx:HBox width="100%">
                    <mx:Label width="25%"  text="First Name:" fontWeight="normal"/>
                    <mx:TextInput width="25%" id="first_name" editable="{pageModeStat}" />
                    <mx:Label  width="25%

    Previously, when I'm calling below line in Report.mxml file
    this.dispatchEvent(new NewReportEvent());
    In Controller, I'm having following line in init() method
    private function init( event:Event ):void{
          systemManager.addEventListener(LoginEvent.LOGIN, login, true);
          systemManager.addEventListener(LoginSuccessEvent.LOGIN_SUCCESS, handleLogin, true);
          systemManager.addEventListener(LoginFailureEvent.LOGIN_FAILURE, handleLogin, true);
          systemManager.addEventListener(ValidateLoginEvent.LOGIN_VALIDATE, checkLogin, true);
          systemManager.addEventListener(HomeEvent.HOME, home, true);
          systemManager.addEventListener(SearchEvent.SEARCH, search, true);
          systemManager.addEventListener(NewReportEvent.REPORT, newInquiry, true);
          login(new LoginEvent(LoginEvent.LOGIN));
    public function newInquiry(evt:NewReportEvent):void{
            Alert.show("Inside newInquiry", evt.type);
            addNewInquiry();  
        }//End of newInquiry
    public function addNewInquiry():void
            ro = new RemoteObject();
            setUpAmfChannel();
            ro.destination = "manageInquiryService";
            ro.addEventListener("fault", faultHandler);      
            ro.createInquiry.addEventListener("result", getNewInquiryResultHandler);
            Alert.show("Before addNewInquiry");      
            ro.createInquiry(BroadModel.inquiryConsumer);
        }//End of addNewInquiry
    public function getNewInquiryResultHandler(event:ResultEvent):void
           BroadModel.inquiryConsumer.inquiry_id = event.result as String;      
           Alert.show("getNewInquiryResultHandler:"+BroadModel.inquiryConsumer.inquiry_id);
        }//End of getNewInquiryResultHandler
    Did following changes
    In Controller:
        // systemManager.addEventListener(NewReportEvent.REPORT, newInquiry, true);  COMMENTED
    Report.mxml:
         public function submitInquiry(evt:Event):void{
            var controller:BroadController = new BroadController();
            controller.addNewInquiry();
              this.dispatchEvent(new NewReportEvent(NewReportEvent.REPORT));
        Still I'm having same issue, it is calling this.addEventListener(NewReportEvent.REPORT,newReportSucEventHandler); before dispathEvent and it is showing null value in confirmation page.
        Can you please check this code and let me know what I'm doing wrong. Why addEventListerner is firing before dispatchEvent?
    Thanks,
    Sharath.

  • Oracle 9i Trigger not updating first time through

    Hi,
    I have read a lot of postings but this one seems to be unique. I am trying to update using from Access to Oracle backend database with a Trigger. When I put the code from the update in a test window in the PL/SQL, I step through the code and it doesn't update the first time through. The values from my :old and :new fields are null the first time through. When I change either proj_part_ppv_adj, incorp_date or end_date in the test window and step through the code again, it updates my table.
    update statement:
    -- Created on 10/17/2005
    declare
    -- Local variables here
    i integer;
    begin
    -- Test statements here
    update pcrit.tpcrit_proj_part
    set proj_no = 'TestChris',
    mat = '1080373',
    plant = 'COR1',
    vndr_code = '0000000564',
    it_cat = '0',
    incorp_date = '15-OCT-2005',
    end_date = '31-DEC-2005',
    unit_prce_chg = null,
    proj_part_ppv_adj = 32500,
    edit_id = 'XXXXXX',
    edit_dt = to_date('17-OCT-2005 08:10:32 AM',
    'DD-MON-YYYY HH:MI:SS AM')
    where proj_no = 'TestChris'
    and mat = '1080373'
    and plant = 'COR1'
    and vndr_code = '0000000564'
    and it_cat = '0';
    commit;
    end;
    Trigger:
    create or replace trigger tpcrit_proj_part_trg_ubr
    before update on tpcrit_proj_part
    for each row
    /* This trigger stores the key values of TPCRIT_PROJ_PART records for
    later use by the after-update trigger.
    The trigger must be disabled when running the loader or it will
    interfere with loading documents from SAP/ODM.
    declare
    rowParts pcrit_mod_proj_part.typProjPartRowKey;
    begin
    if :new.proj_no <> :old.proj_no or :new.mat <> :old.mat or
    :new.plant <> :old.plant or :new.vndr_code <> :old.vndr_code or
    :new.it_cat <> :old.it_cat or :new.incorp_date <> :old.incorp_date or
    :new.end_date <> :old.end_date or
    :new.proj_part_ppv_adj <> :old.proj_part_ppv_adj then
    -- Only perform the task if something other than the comment has changed.
    -- Initialize the rowParts record to be added to the list.
    rowParts.proj_no := :new.proj_no;
    rowParts.mat := :new.mat;
    rowParts.plant := :new.plant;
    rowParts.vndr_code := :new.vndr_code;
    rowParts.it_cat := :new.it_cat;
    rowParts.incorp_date := :new.incorp_date;
    rowParts.end_date := :new.end_date;
    rowParts.proj_part_ppv_adj := :new.proj_part_ppv_adj;
    -- Get the project type for this project.
    begin
    select proj_type
    into rowParts.proj_type
    from tpcrit_proj
    where proj_no = :new.proj_no;
    exception
    when no_data_found then
    rowParts.proj_type := null;
    end;
    -- Add this part row to the list for after-statement processing.
    pcrit_mod_proj_part.add_to_list(rowParts);
    end if;
    end tpcrit_proj_part_trg_ubr;

    Are you lookng at tpcrit_proj_part to see if the update happend, or are you looking for the results of the after update trigger?
    I believe that this is exactly what you are doing, except I have left out the after update trigger.
    SQL> CREATE TABLE t (id number, id_dt DATE,
      2                  descr varchar2(10), desc2 varchar2(10));
    Table created.
    SQL> CREATE TRIGGER t_bu
      2     BEFORE UPDATE ON t
      3     FOR EACH ROW
      4  BEGIN
      5     IF :new.id <> :old.id or
      6        :new.id_dt <> :old.id_dt or
      7        :new.descr <> :old.descr or
      8        :new.desc2 <> :old.desc2 THEN
      9        DBMS_OUTPUT.Put_Line('This is all your proceesing');
    10     END IF;
    11  END;
    12  /
    Trigger created.
    SQL> INSERT INTO t (id, id_dt) VALUES(1, TRUNC(sysdate));
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> SELECT * FROM t;
            ID ID_DT       DESCR      DESC2
             1 09-NOV-2005
    SQL> UPDATE t
      2  SET descr = 'Descr',
      3      desc2 = 'Desc2'
      4  WHERE id = 1 and
      5        id_dt = TRUNC(sysdate);
    1 row updated.So your processing never happened but the update certainly did:
    SQL> SELECT * FROM t;
            ID ID_DT       DESCR      DESC2
             1 09-NOV-2005 Descr      Desc2Now, even without a commit:
    SQL> UPDATE t
      2  SET descr = 'CHANGED'
      3  WHERE id = 1 and
      4        id_dt = TRUNC(sysdate);
    This is all your proceesing
    1 row updated.Now, fix the trigger to take NULL into account:
    SQL> ROLLBACK;
    Rollback complete.
    SQL> SELECT * FROM t;
            ID ID_DT       DESCR      DESC2
             1 09-NOV-2005
    SQL> CREATE OR REPLACE TRIGGER t_bu
      2     BEFORE UPDATE ON t
      3     FOR EACH ROW
      4  BEGIN
      5     IF (:new.id <> :old.id or
      6         (:new.id IS NULL and :old.id IS NOT NULL) or
      7         (:new.id IS NOT NULL and :old.id IS NULL)) or
      8        (:new.id_dt <> :old.id_dt or
      9         (:new.id_dt IS NULL and :old.id_dt IS NOT NULL) or
    10         (:new.id_dt IS NOT NULL and :old.id_dt IS NULL)) or
    11        (:new.descr <> :old.descr or
    12         (:new.descr IS NULL and :old.descr IS NOT NULL) or
    13         (:new.descr IS NOT NULL and :old.descr IS NULL)) or
    14        (:new.desc2 <> :old.desc2 or
    15         (:new.desc2 IS NULL and :old.desc2 IS NOT NULL) or
    16         (:new.desc2 IS NOT NULL and :old.desc2 IS NULL)) THEN
    17        DBMS_OUTPUT.Put_Line('This is all your proceesing');
    18     END IF;
    19  END;
    20  /
    Trigger created.
    SQL> UPDATE t
      2  SET descr = 'Descr',
      3      desc2 = 'Desc2'
      4  WHERE id = 1 and
      5        id_dt = TRUNC(sysdate);
    This is all your proceesing
    1 row updated.Now, all your processing happens on the first update, and all others:
    SQL> SELECT * FROM t;
            ID ID_DT       DESCR      DESC2
             1 09-NOV-2005 Descr      Desc2
    SQL> UPDATE t
      2  SET descr = 'CHANGED'
      3  WHERE id = 1 and
      4        id_dt = TRUNC(sysdate);
    This is all your proceesing
    1 row updated.But only when something changes:
    SQL> UPDATE t
      2  SET descr = 'CHANGED'
      3  WHERE id = 1 and
      4        id_dt = TRUNC(sysdate);
    1 row updated.If you really see something different, then post a cut and paste of a sqlplus session as I did showing the behaviour you are getting.
    TTFN
    John

  • How to make a program that will ask for a name the first time the program is used and if is not the first time will not ask the name?

    I want to make a program that will ask for the ID of the testing machine the first time the program is running, then will never ask for it. I'm using Labview 6.0

    Hi
    There are a Couple of methods you can use for this.
    Method 1 -
    You can create an ini file and save a boolean Key "First Instance" as True. Now In your Program you read this Key, If it is True then you can show your ID Dialog VI.If False do not run the VI. At the Conclusion of Id Dialog you can update this registry enrty to False. So In effect you have created One time Event. In fact you can save ID as another Config entry.
    The Drawback and advantage is that such an INI file can be edited by someone moderately knowledgeable about the Program
    Method 2
    Use Unitialized Shift Register in A while Loop. Please see LV2 style Globals entry under this forum. You can read and write to this Variable and it retains the Value it last had within it.
    You can read
    this Global the Very first time and say if it true you display your ID Vi. If False you dont. When you display your ID Vi you can Update your Global Like Before.
    If you need Example Let me Know.
    Good Luck
    Mache!!
    Good Luck!
    Mache

Maybe you are looking for

  • Add marker to Google Map

    Hi there.  I am creating an iPad app with In Design CS5.5. I want to add a link from an image with a button to a Google map showing where the image was taken. I can successfully add the map and load it but I cannot find out how to add the marker show

  • Paragraph List - Allow more then 1 PAR selection but only once (Unique)?

    Hey all, I'm looking at the Studio Handbook in the properties types for the PSL's. I can't figure out which property checkbox I need to check off so it'll allow the user to select more then one PAR, but does NOT allow the user to re-select a PAR that

  • Backup/Restore corrupt message

    So i backed up my iphone 4 yesterday because i was having some issues with the phone.  After backing the phone up, i when to restore from that backup and recieved an error message saying that the backup was corrupt.  Any way to fix this? or did i los

  • Cannot uninstall printer on my computer

    I have a Mac computer - Operating system 10.8.5 I have three HP printers - HP Photosmart D110a which quit and I have just recently replaced with a HP Officejet Pro 8600 N911a - but I have also a HP Laserjet Pro 400 M401dw - the Laserjet I have had fo

  • IPhoto? iMovie? iMovie HD?

    My emac has been restored to factory settings as someone gave it to me. It always changes the date when I turn it on even if I changed it before. Also it has three question marks, if you scroll over them it say iphoto on one, iMovie another and the l