Creating TextFiled with Error Message inside catch block .

Hi ,
I have seen this example from the Adobe :
Here in this case Assume that an Exception is thrown inside the validate Method and it is caught in the catch Block .
public function SimpleError()
             try
                 validate();
             catch (error:Error)
                 var errorMessage:TextField = new TextField();
                 errorMessage.autoSize = TextFieldAutoSize.LEFT;
                 errorMessage.textColor = 0xFF0000;
                 errorMessage.text = error.message;
                 addChild(errorMessage);
Now can anybody please let me know to what container this TextFiled is added , and how this catch block can access that Container ??
Please help me in understanding this .

Hi,
That code looks like it was written in a Component or the main Application. The addChild() method will add the TextField to the main app.
The code also looks like it is from an ActionScript only project, but will work the same in a Flex App (use a Label component instead).
The catch block is not special, the scope has access to it's containing class, which in this case is a DisplayObjectContainer at the least.
Mike

Similar Messages

  • How to set error message inside the loop...module pool

    Dear all,
         Am creating Table Control without wizard. In that i am looping the values, that is, Once if i entered 5 digit values means, 12345-08... the values should be stored in z-table like this 12345,12346,12347,12348 . That is 5-8 it as to update in z table. for this i createdloop at itab and inside that i written a code to count the value and all. and also its clearly updating the value in ztable too. now i want to know, if once again i entered the same value means, like 12345-08.. it as to show error messge.I dont know how to set the condition with error message inside the single loop .... Its all comes under module pool program.
    Thanks,
    Santhosh.R

    If i understood your doubt, here goes the answer.
    LOOP AT itab INTO wa_itab.  " This is your loop
      l_tabix = sy-tabix. "l_tabix receives the line of the loop
      READ TABLE itab WITH KEY itab = wa_itab.  "itab is the same tab of your loop
      IF sy-subrc EQ 0 AND l_tabix NE sy-tabix.    "Here the sy tabix have the value of the read table.
    *     Here you do your error treatment.
      ENDIF.
    ENDLOOP.
    Explanation: When you are looping your internal table, you use a READ TABLE to see the already recorded registers. If the read table finds one register (sy-subrc EQ 0) and the this register is not the one of the current line (l_tabix NE sy-tabix). It means you have a duplicated register.
    Maybe there is someway easier to do this, but this is what i thought now.
    I hope this was your doubt hehe.
    Thales Schmidt

  • How to catch error message inside a variable?

    Hi,
    I'm trying to catch the error message inside a variable using this this command below:-
    <%=odiRef.getPrevStepLog("MESSAGE")%>
    Could you please tell me what is the right approach to capture the error message inside a variable.
    Thanks
    Anindya

    Hi Bhabani,
    I have done this and select an oracle schema.But the variables only captures the (null).Please look into this.You must have one step prior to this refresh variable. Then only it can get the status as given below.
    Returns the one-letter code indicating the status with which the previous step terminated. The state R (Running) is never returned.
    D: Done (success)
    E: Error
    Q: Queued
    W: Waiting
    M: Warning
    If you want the complete error details then you will face issues in case of multi line message. For this best option would be jython variable.Could please provide me some idea how to use this jython variable.I will update you on this soon
    Thanks
    Anindya

  • IDOC_INPUT_ORDERS with error message RV45A-VBAP_SELKZ (2) is not input fiel

    Hi
    I am creating a multiple line sales order from Idoc and using the FM IDOC_INPUT_ORDERS. The idoc is processed with status 51 with error message RV45A-VBAP_SELKZ (2) is not input field.
    It only happens for Idocs that are processed 1st time (re-processing is succesfull) and only in the background (if processed first time in foreground - it is ok).
    Have you ever seen this message?
    Thanks,
    Magda

    Hi Joy
    Thanks for an idea of creating a BDC from bdcdata before calling VA01 from an IDoc. I could analyze it and to correct an error I added some code in the user exit ZXVEDU04. I simply replaced all concurrencies of RV45A-VBAP_SELKZ (2) with RV45A-VBAP_SELKZ (1) and it worked:
    * MW Replace RV45A-VBAP_SELKZ(2) with RV45A-VBAP_SELKZ(1)
    move dxvbak to i_dxvbak.
    if i_dxvbak-bsark = 'WINT' and dxbdcdata-fval eq 'SICH'.
      dxbdcdata-fnam = 'RV45A-VBAP_SELKZ(1)'.
      modify dxbdcdata transporting fnam
       where fnam = 'RV45A-VBAP_SELKZ(2)'.
      exit.
    endif.
    This is called only once when dxbdcdata-fval = 'SICH'.
    Hope it helps.
    Magda

  • Custom reports do not run with error message: Routine FDPREP cannot read ..

    Hi
    Can anybody help me with this issue pls?
    The dev system is cloned from production a few days ago. After running the post clone procedure, the dev is working fine except when we are trying to run custom reports, it errorred out with error message - Routine FDPREP cannot read the file /fmis/11.5.0/reports/US/POXPRPO1.rep. I have checked the env files, and they seem ok. $CUSTOM_TOP is set to the correct value. Other standard Oracle reports are running properly. The custom report file extension is in low case (.rdf). I've even tried to compile the report manually by using rwcon60.sh, the rep file was created under that folder but concurrent manager is still giving the same error message. So I am suspecting whther it is the path issue, as from the error message we can see up there, it is not showing the absolute path. Can anyone pls shed some lights on this for me?
    Thanks!
    Liang

    Hi hsawwan,
    Echo $FMIS_TOP(Custom Top) returns /global/app/fdev/home/fdevapp/findevappl/fmis/11.5.0, which is the correct path.
    Interesting thing is I checked the custom forms and they are working properly , our current configuration is form server and web server are sitting on one node, and CM, admin and database are sitting on the other node. So it seems it is the CM node settings caused the problem. However, I've just compared the APPSORA.env, customfindev_XXXXXX.env $FMIS_TOP (Custom Top) on the two nodes, and nothing seems out of ordinary.
    Thanks,
    Liang

  • Blackberry Desktop keeps closing with error message

    I am trying to synch my Blackberry Bold but the Blackberry Desktop keeps closing on me.  I have tried installing the latest version of the software but even after doing that I am having the same problem.  Help!

    Hi and Welcome to the Community!
    Unfortunately, while you said "with error message", you neglected to actually say what that error message is...hence, we must guess...I suggest this thread:
    http://supportforums.blackberry.com/t5/Desktop-Software-for-PC/Cleanly-quot-Starting-Over-quot-with-...
    It starts with a process for cleanly starting over, and there is some discussion, and there is also a post (15) with links to older Desktop Software versions, if those are needed. Note that this is not, by any means, guaranteed to work...but it has worked for many to resolve issues they are having.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Just got new air and trying to set up. When I put in my Apple ID and password it comes up with error message 'can't sign in because of server error. Try again signing on.' Trying again does not fix. I know my ID and PW are right as work on other devices.

    Just got new air and trying to set up. When I put in my Apple ID and password it comes up with error message 'can't sign in because of server error. Try again signing on.' Trying again does not fix. I know my ID and PW are right as work on other apple devices I have.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

  • ITUNES WONT OPEN COMES UP WITH ERROR MESSAGE

    ITUNES WONT OPEN COMES UP WITH ERROR MESSAGE (send error report one)

    some preliminary questions aimed at narrowing in on possible culprits.
    try launching your QuickTime. does it:
    (a) launch perfectly fine?
    (b) fail to launch with an error message? (if so, what does it say?)
    (c) exhibit other peculiar behavior? (if so, could you describe it for us?)

  • Macbook freezes with Error Message in a Black Box and asks for reboot.

    Now here is new problem (i dont know if specifically macbook related or something to do with Mac software). I have faced this thrice today.....
    Suddenly my Macbook freezes and in the center of the screen I get a black transparent box (quite big) with error message written in few languages. It simply asks me to hold down the power button for sometime to reboot the Macbook. I have found the Macbook freezes completely, no working keys, trackpad, etc all disabled. And after I push the power button the macbook shutsdown.
    On rebooting there is no problem at all, i just loose all the work that was open...
    Can someone tell if there is some remedy.. or what needs to be done.... Also is this hardware related or software...
    I must mention my macbook is also have RSD problems...

    What you are seeing is the message that results from what is known as a kernel panic: a serious error usually caused by some sort of hardware malfunction. The path to debug this is to make sure you unplug any external devices you have attached (if any) and see if the problem persists. If you still have the problem, it could mean a bad video card, logic board, RAM, RAM slot, etc. If you have RSD, then you already know you have a hardware problem, and this is just more evidence of it. Time to go to an Apple Certified Repair shop and have them look at it.
    Good luck!
    MacBook,G5 iMac,15PB,G4 iMac, G4 QS, AX, 3G iPod, Shffl, nano,shffl   Mac OS X (10.4.7)  

  • I tunes trys to sync and comes up with error message I tunes has stopped working, I tunes trys to sync and comes up with error message I tunes has stopped working

    Hi guys, Please help
    Just upgraded computer to Windows 7.  Installed latest version of ITunes. It installed and uploaded all my items in my library.
    Connected IPad2 and updated latest version.  However whenever it trys to sync my contents either to my IPad, my wifes IPad or my new Iphone4S, it simply comes up with error message.  I TUNES has stopped working.  Windows is checking for a solution to the problem... Windows will close the program and notify you if a solution is found.  Urggh,  can anyone help

    This is similar to my dilemma I just posted:
    itunes has stopped working error msg after software updates?                                                                                        50 minutes ago                       
    I have removed Bonjour as well.
    I've had this happen other times when I've updated iTunes software on other systems too, to the extent that now I'm reluctant to ever Accept when it suggests I do so.  But I went ahead this time and sure enough I think I'll have to do a total reinstall.
    LOL, I don't think Windows has EVER found a solution to ANY system problem I've had which makes it mildly amusing when it acts like it's helping!

  • Satellite A350 - Blue screen with error message

    When starting windows7, I am getting blue screen with error message 0x0000116.
    Can anyone assist please?

    It looks like a graphic card driver is a trouble maker.Try to reinstall a graphic card driver in safe mode (f8 on startup). Read this article for information:
    http://social.answers.microsoft.com/Forums/en-US/vistahardware/thread/eb584685-6b8b-4ad7-b6cc-ae5ee78095fb
    It's for VISTA but should be the same for win 7 too.

  • Blue screen with error message

    Product Name: HP Media Center M7250n Desktop PC
    Product #ED842aa-aba
    I have been getting a blue screen with error messages that ask if this is the first time i get the error and then at the end it says it is dumping memory. I would like to wipe my harddrive and reinstall XP but my system is out of warrenty and HP won't provide me a recovery CD. What are my options.
    This question was solved.
    View Solution.

    Hi,
           You are most welcome. 
    "I work for HP."
    Please click the "White Kudos" star to say thanks for helping.
    Please mark "Accept As Solution" if my help has solved your problem.

  • The way I deal with error message 1417, 1418 and 1428

    Firstly, sorry for my poor English, but I would like to share with you my experience, and hope that it may helps you.
    Since the release and update of iTunes 7, I have not faced any problem, but I heard a lot of articles from this forum about the errors 1417, 1418, 1428 and 50 etc. I could not make any suggestion and find a solution about it, all I could do is to copy some threads from some successful cases mentioned on this forum.
    Until yesterday, I finally received a 4th Gen 20GB iPod (around 2 years old)from a friend and asked me whether I could fix it for him, which has been left untouched as a paper-weight for almost 2 months.
    I tried to turn it on, and the screen was completed blank and the device looked dead. Before doing anything I prepared the following:-
    1. A window based PC
    2. A Mac computer
    3. An USB iPod cable
    4. A Firewire iPod cable
    5. An iPod AC charger
    As the iPod was previously formatted on a PC, therefore I tried to plug it with a PC via USB cable, it did not response and not able to get recognized by the PC. I ejected the iPod and connected with an AC charger, after a few minutes, I did a Reset for the iPod
    How to reset iPod
    http://docs.info.apple.com/article.html?artnum=61705
    The iPod showed an Apple sign, it stuck there for almost a minute, the screen then showed a battery with an exclamation mark sign, and after a minute, the iPod turned off itself. I was sure that the iPod carried very low battery, and could not be charged by connecting it with any computer (both Mac and PC).
    I decided to let it have a charge with an AC charger for a bit longer, after 10 minute I did the Reset again, this time a sign of folder with exclamation mark showed up after the Apple sign, and again could not get recognized by a computer.
    I changed my mind, and put the iPod into disk mode
    Putting iPod into disk mode
    http://docs.info.apple.com/article.html?artnum=93651
    Instead of connecting with a PC, I plug it with my Mac using a Firewire cable, it did not response, so I switched the cable to an USB, interestingly, the iPod got recognized and a window pop up indicating that the iPod needed to do a Restore. Therefore I clicked “Restore”, after a few seconds, an Error message pop-up with Error Message 1417, the sign that I have been waiting for quite sometime.
    I ejected the iPod and the screen immediately showed a folder exclamation mark (a sign indicating a corrupted or a failure iPod OS). I am forced to put the iPod into disk mode again, connected with the Mac computer and open the Disk Utility
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    It managed to complete the Restore process, and started to sync with the iTunes. However, it got stuck at the song no.238 from the total of 2000. I left it for an hour, but with no process, instead the iPod became “Hot” and the iTunes showed an Error message of 1428. I ejected the iPod from my Mac computer, the iPod’s screen turn to show the famous killer icon;“The Sad iPod“.
    This time it was totally dead, even failed to put it into Disk Mode and non of the computer could recognize it. Sigh, I hated to do it but I knew that I must did the following:-
    Holding the iPod in my Palm, and hitting it on a surface of a Sofa with 5 attempts.
    Did not surprise me, the iPod turned on and it showed the Language Menu on the screen. So, I put it into Disk Mode and connected with my window PC.
    The PC showed a sign and indicated that an USB device had been connected with it. I opened the iTunes and did a Restore there.
    However, an Error Message 50 showed up, but I were not worried about it, connected it back with my Mac computer with it in Disk Mode. As expected the iTunes opened and allowed me to do a Restore there.
    This time it managed to complete the process and a window of register pop up. After the completed the process, the iPod started to sync with the iTunes again, which finally managed to complete the process.
    I left it connecting with the AC charger overnight. In the next morning, I switched it on and have a play with it, I am so glad as it is working like a charm.
    From the above experience, I would like to share it with the user the following:-
    1. It always better to charge with an ac charger instead of the computer, as when an iPod carrying with very low battery, it may not able to get charge from a computer
    2. Try to connect the iPod with a computer, switching between USB and Firewire
    3. Try to format an iPod with HD problem, with a different kind of computer e.g. Mac or PC, as the formats are totally different, the way it formats may able to solve the bad sectors on the HD
    4. It may get better chance to get your iPod recognized, if you put it in Disk Mode
    I hope the following works in your case as I did.

    a pop up error message says itunes couldnt be configured
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • I have plugged my iphone 5s into windows computer, the computer picks up that its there and starts charging but keeps coming up with error message when i try connect to itunes... HELP!!!

    I have plugged my iphone 5s into windows computer, the computer picks up that its there and starts charging but keeps coming up with error message when i try connect to itunes... HELP!!!

    What does the error message say? (Precise text, please.)

  • When ever itunes updates, it ends up coming up with error message please re-install itunes, nothing i do seems to work, help please

    When ever iTunes updates, it ends up coming up with error message, iTunes did not install properly, please re-install iTunes, this is about the fourth time this has happened, end up having to take it to computer tech at a cost of $180, please help

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

Maybe you are looking for

  • Pricing Error: Pricing Procedure.

    Hi, I have two Condition Types Say ZTFV and ZTV1. I want to copy the value of ZTFV to ZTV1. For that I have made the following configuration. But value is not copied. Please suggest. 1. The Value of ZTFV is stored in Sub-Total in field KZWI6. 2. In A

  • LOGS PROVIDER HAS STOPPED ,WHAT DO I DO TO FIX PROBLEM?

    GALAXY S4  -"LOGS PROVIDER HAS STOPPED .HOW DO I FIX PROBLEM?

  • TS1717 New in tunes

    I have uninstalled and restalled the latest itunes version and it still says that I need to reinstall it. Can someone please help me

  • SVG support on handy's

    Hi all, I wanted to build some mobile java applications using SVG. I just wanted to know which mobile phones support SVG currently. thanks for your replies, @debug

  • Major issue's or bugs in 10gr2 dataguard?

    We have implements the physical standy database in 10gr2. My manager what know about dataguard major issues or bugs in 10gr2 ? Please share your experience. Appreciate your reply.