Capture and display of errors

Hello world

I have 3 questions:

1. How can I check if the user has pressed the button submit without entering any data?

2. is there a way to ensure that the user enters only a certain type of data into a single number of field for example?

3. after finding an error how can I tell the user "you entered X bad. Please change ". Is there some sort of a pop up function in AS3 that can do?

Thank you.

1. on the callback function when the button is pressed, check that the required values have something in them.  For example:

If (this.username.text == ")

{

display alert

return;

}

2. for the fields of text on the textField, you can restrict the keys that are allowed.  If you just want you would with numbers:

this.username.textField.restrict = ' 0-9'; Only numbers

If you want to also decimal,

this.username.textField.restrict = '. 0-9 ";

3. place an alert.  Alerts only work in the Simulator.  If you want alerts for work in the AIR, I heard there is a magnificent library that mimics the package QNX alert that you can download and use.  Simple alert is like this:

var alert: AlertDialog = new AlertDialog()

Alert.title = 'error ';

Alert.message = ' you have entered wrong x.  Please change ";

alert.addButton ('OK');

Alert.Show ();

Tags: BlackBerry Developers

Similar Questions

  • Need to install KB947821 update but fails and displays the error 9370001 code

    You will need to install KB947821 update but fails and displays the error code 9370001.  Does anyone have a solution?

    CrystalBall © SEZ...

    Free unlimited installation and compatibility support is available for Windows Vista, but only for Service Pack 2 (SP2). This support, initially planned to end on November 26, 2009, has been extended until February 26, 2010. Availability of support chat or messaging differs depending on your location. Some questions may require that more support for which he is advanced a charge.  Go to http://support.microsoft.com/oas/default.aspx?prid=13014&gprid=582034 & select appropriate category (i.e., download problem;) Installation problem; Problems after installing a service pack).

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Windows update does not work and displays C80044E error code.

    Windows update does not work and displays C80044E error code.

    Hello

    I suggest you to try the steps below and check if it helps.

    View update history.

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Let me know the description the updates that do not have the status.

    Method 1: Try to reset components to update Windows from the following link and then try to install the updates.

    http://support.Microsoft.com/kb/971058

    Method 2: If the problem persists then try to set your computer in check and clean boot state, if the same problem occurs.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    More information: The problems with the installation of the updates:
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Hope this information is useful.

  • My backup recently stop working and displays this error message: "failure irremediable 0x8000fff.

    I have recently, I lost all of my info by e-mail and went to try to recover from a backup. discovery of my backup has stop working and displays this error message: "failure irremediable 0x8000fff.   Doesn't sound good!  What happened and how can I solve this problem?

    Hello

    Method 1:
    You can follow the steps provided and check.

    Check the VSS service. Follow these steps:

    a. Click Start and type services.msc in the search box.

    b. Locate the VSS service and make sure that the startup type is automatic.

    i. right click on the service

    II. If the service is stopped, then start the service

    III. Select Properties

    IV. and in startup type, select automatic.

    c. click Ok.

    Method 2:


    You can also perform a clean boot and check:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: after a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.

    Method 3:

    I also suggest to run the disk clean tool and check if it helps.

    Delete files using disk cleanup

    http://Windows.Microsoft.com/en-us/Windows-Vista/delete-files-using-disk-cleanup

  • Windows 8 refreshment stops at 77% and then restarts and displays an error

    I can't update my Windows 8 Pro because when I do, it stops at 77% and then restarts and displays an error (there was a problem during the update of your PC)

    Hey Sajjad,

    I understand that you cannot update your computer Windows 8.

    1. did you of recent changes to the computer?
    2. Why are you trying to refresh Windows 8?
    I suggest you follow the steps mentioned below and check if it helps.

    Method 1:

    I suggest to disable all external devices except the mouse and keyboard and try to refresh.

    Method 2:

    Use the check disk command for all errors on the hard drive.

    Warning: We recommend not to interrupt the CHKDSK process. Microsoft does not guarantee the integrity of the disk if the CHKDSK program is interrupted. Security, you can back up your data before using check disk drive.

    Use the drive control as follows:
    a. press the Windows key + X, and then choose command prompt (Admin) on the shortcut menu.
    (b) in the search box type 'cmd' and ENTER. Right click and select "Run as Administrator".
    c. type at the prompt in the command CHKDSK/p and press ENTER to scan the drive.
    d. type CHKDSK C: /F /R and press ENTER to repair corrupt sectors, if there are.

    NOTE: The root drive must be C: and drive can schedule a task to start the system, if this is the case, press on is to schedule a task, and then restart the computer to run chkdsk.
    When chkdsk is finished, boot up to the desktop, and then check.

    Important: When running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area so all available data on this risk to be lost

    You can follow the links below for more information.

    How to restore, refresh or reset your PC:


    http://Windows.Microsoft.com/en-us/Windows-8/restore-refresh-reset-PC

    How to create the installation media for a PC refresh or reset:


    http://Windows.Microsoft.com/en-us/Windows-8/create-reset-refresh-media

    Refresh and reset your PC:


    http://blogs.msdn.com/b/B8/archive/2012/01/04/refresh-and-reset-your-PC.aspx

    Warning for update: the applications that came with your PC or you installed on Windows Store will be reinstalled, but all the apps you have installed other Web sites and DVD is deleted. You will find a list of applications on your desktop after you refresh your PC.

    Warning for the Reset: all your personal files will be deleted and your settings will be reset. All the apps that the is come with your PC will be reinstalled, but all other applications will be deleted.

    Hope the above information helps.

    Let us know if you have other questions about Windows in the future. We will be happy to help you.

  • Re: Satellite L350-215 and display card error

    Hello
    Just maybe someone can help me this is a new computer (10 days), WIN 7 Home Prem 32-bit, starting up in the event log after two mistakes Atikmdag 43029, atikmdag52236, imm there. verified Web this error seems to be with many toshibas and other portable even in this forum, another problem may be with games, lucky I don.t have this issue (not to play the games). The computer's display last drivers installed 8.634.1.

    I found the easy solution is uninstall ATi updated driver and let Microsoft install problem fixed driver, only problem, can not adjust gamma, brightness, contrast etc. There is a single pilot on the site of ATI Mobility (8.65) who said to win 7 Beta (09/09/2009) could it be used on a Toshiba without breaking all the settings, or maybe someone has a solution for me.

    Thanks in advance

    Tony

    Have you noticed that on the first day?
    I can't imagine for laptop comes with this question.

    You have installed all the updates of new Microsoft?

  • Freezes at "Loading ImporterQuickTime.prm" and displays the error message. How should I do?

    Hey, I just built a system of game development, I do my trailer for the game now, but Premiere Pro will not work. The operating system is Windows 10 and my GPU is a MSI GTX 970.

    I advanced and installed Premiere Pro and it has installed without error, but when I went to start it for the first time, he stopped at "Loading ImporterQuickTime.prm" and then jumps to the top 'Adobe Premier Pro cannot find capable video game modules. Please update your video display drivers and start over. "He has only one button, you can press on and it is 'OK '. When I press on it just says: "Premiere Pro has stopped working." and makes me close. (screenshot attached).

    What confuses me, is that Photoshop and After Effects work perfectly. (perhaps because they have CS6?)

    I was puzzled because I already had the latest NVIDIA drivers installed, so I downloaded the beta version of the drivers and I still got the same error. I've uninstalled and reinstalled Premiere Pro several times, but I still get this error. My current version of the graphics driver from NVIDIA is 362,00.

    Any help is greatly appreciated.

    Screenshot (58).png

    Well, after a few hours trying things at random, I tried using a different user account, so I opened and administrator command prompt and typed in "net user administrator / Active: Yes" then disconnected and connected to the administrator account, then launch Premiere Pro to launch it. Surprisingly, it worked! So I closed the first, then disconnected from the Admin account, then went back on my main account and typed in "net user administrator / active: No.". Then I launched creating my account and it worked!

    I hope this might help someone else who was in my boat.

  • How to capture and display the end of line character in the report

    Hi guys,.

    I have a report that we are poster campaign ID, campaign name, and Description of the campaign.
    The result is coming like this

    Description of campaign campaign campaign ID name
    1 ABC 1 Plan June 13. 2 market July 1. 3. end July 30.
    Plan XYZ 2 1 13 June. 2 market July 1. 3. end July 30.

    But we want the data to be displayed in the following format.

    Description of campaign campaign campaign ID name
    1 ABC 1 Plan June 13.
    2 market July 1.
    3. end July 30.
    Plan XYZ 2 1 13 June.
    2 market July 1.
    3. end July 30.
    That the user has the possibility to enter several lines for the description in front end Application & want us to show the same way Description. How can I capture this end of the character in ETL? If he is already captured, then how to show in the report.
    I use Siebel as before end application and for the ETL using Informatica.

    Any help will be much appreciated.

    Thank you
    Rupesh

    OBIEE presentation Service is an HTML element based on software then it does not show the end file character CHR (10) or Chr (13).
    You must replace this with the HTML tag charcaters
    .

    I'm not sure of the name of the function, but you must make a formula like this

    replace(mytable.mycolumn, chr(10), '
    ')

    See you soon
    Nico

  • Computer restart and display BSoD error constantly

    My computer restarts and gives me a blue screen error message.

    Minidump:
    https://SkyDrive.live.com/redir?RESID=27EED93B82BAB133! 120 & authkey =! AFPe1f7a4LP64IA

    "It is not a true crash, in the sense that the blue screen was launched only because the combination of material and video driver video was to be insensitive and not because of any exception processing synchronous".

    Since Vista, the components of "Timeout detection and recovery" (TDR) of the subsystem video OS have been able to do some really impressive things to try to find issues that would have led to the earlier OS like XP to crash.

    As a last resort, the TDR subsystem sends a video driver command "Please restart you now!" and wait a few seconds.
    If there is no answer, the BONE concludes that the combo of driver/hardware video has really collapsed in a heap, and it fires at this stop 0 x 116 BSOD.

    If playing with video driver versions did not help, make sure that the box is not overheated.
    Try to remove a side panel and a fan of big sector directly to the motherboard and GPU.
    Run it like that for a few hours or days - long enough to check whether the cooler temperatures make a difference.

    If so, it could be as simple as dust accumulation and inadequate cooling afterwards.

    I download cpu - z and gpu - z (both free) and keep an eye on the video time

  • CC of Lightroom does not import the photos and displays an error, backup also fails

    Hello

    I use Lightroom CC on Mac and I try to import images, but Lightroom is unable to do it this time for some reason any.

    During the last import Lightroom does not have the download of pictures and showed me the following notification: "Lightroom has encountered an error when reading the preview cache and needs to stop smoking. Lightroom will attempt to solve this problem, the next time it starts.

    As it stops it suggests to the backup catalog files and the following notification appears: "Lightroom could not save the catalog named XXX.". Check your folder permissions, and then make sure you have space on your rear disc and disc from the main catalogue.

    I have 2 TB of disk space available.

    I tried to import the camera and my computer, however it is unable to complete the import in two ways, just that several files have been imported and import fails. In each attempt to import files Lightroom creates temporary files with multidigital names.


    I restarted Lightroom, then my computer, then attempted to create another backup folder, nothing happens. Please help me.

    Thank you.

    Hi all

    6.3/CC 2015.3 Lightroom is now available - try to update to this version which includes the previous import feature, bug fixes and new support for photo/target device profile: Lightroom CC 2015.3 / 6.3 now available

    Concerning

    Pete

  • Windows stops and displays the error message with the file wpfb_ati2dvag

    Windows stops and I get the message that I have a problem with the wpfb_ati2dag file. Is there any solution for this?

    Hi Nancy,.

    It seems that the problem you are experiencing is related to the ATI drivers,
    Try to update your drivers to the latest version:
    Hope this helps and let us know if you need help to identify the drivers you need.
  • I run the stand-alone windows installer to thr and displays the error code 0 x 80240009

    When I ran the windows update stand-alone installation, it updated kb947821 hotfix, but after he would not install updates

    0 x 80240009

    WU_E_OPERATIONINPROGRESS

    Another operation in conflict was underway. Some operations such as the installation cannot be performed twice at the same time.

    Restart and try again.

  • BrowserLab not loading and display of error page

    Hello!

    Use BL for all ideal work for (HTML X sites). Now I started working with PHP and have a site with DW and Cartweaver, for a store, and I can't show her in BL. I'm on a Mac OSX MAMP (Apache/MySQL). My site shows in Live View and different browsers on my Mac, but I need check the versions of IE. My site looks as if it is correctly configured etc please can you point me in the right direction to get BL to work for this?

    THX,

    Rob

    Hi Rob,

    We believe that it is a permissions problem.

    1. Open the menu in the BrowserLab Panel and choose permission settings...
    2. Add "/ Applications/MAMP/htdocs/store_cw" and give it the authorization allow in the dialog box
    3. Add "http://localhost/store_cw" and give it the authorization allow in the dialog box
    4. Close the dialog box and make sure that the changes have been saved
    5. Try clicking on the BrowserLab Panel preview and let us know if it works or not

    Hope this helps,

    Mark

  • How to intercept the sockettimeout exception message and display in the user interface of the view?

    Hi my jdev - 11.1.1.7 version

    I ask a socket connection in my AM and I want to catch the exception of the sockettimeout of t and display the error message in the user interface of the view layer.

    I use customException class that extends DCErrorHandlerImpl, but if we use try catch, then exceptions doesnot reach customclass.

    How to catch exceptions and return to view the layer if we use the operation binding. ?

    Because you call the operation via the link layer, which is perfectly fine, you do not get an exception at all. Exceptions thrown in methods called via the link layer are captured by the framework and transferred to the appellant in the operation binding.

    For that, you get the list of errors after the call returns and add them as messages of faces

    execute the method

    Method.Execute ();

    List errors = method.getErrors ();

    If (! errors.isEmpty ()) {}

    handle errors errors here is a list of exceptions!

    We only get the first

    E receive = errors.get (0);

    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, e.getMessage (), "");

    FacesContext.getCurrentInstance () .addMessage (null, msg);

    }

    no error return to normal work

    Timo

  • How do I capture the error and display

    Lion of Oracle do it me the quick statement formula to capture the error and display in the Formulas (FF) fast in oracle payroll.
    In the case where the value of the element is Null, I want the system to show me in the quick pay message window what value of the item was left null so that I can make the entrance of this element and re deal with payroll.

    Appreciate all your help!

    for example.

    DEFAULT FOR YOUR_INPUT IS 0

    THE ENTRIES ARE YOUR_INPUT

    / * SECTION OF CODE * /.

    IF YOUR_INPUT HAS BEEN SET BY DEFAULT THEN
    (
    ERROR_MESSAGE = "INPUT VALUE IS NOT ENTERED.
    )
    ON THE OTHER
    (
    >
    )

    HTH

Maybe you are looking for

  • NB300 internal microphone problem

    Recently used Skype and MSN and everything worked well.Then tried to download audio files of dctaphone using micro taken again seems to work ok. However now barely audible microphone on NB300 at reception of machines.Screen surround ultra sensitive a

  • List of favourite channels disappeared after I made new contacts lists

    Hey,. Recently I did a couple of lists of contacts on Skype and after that I turned it to all the contacts from the Favorites list had disappeared. I deleted the lists, but the Favorites list is still missing. How can I fix?

  • Samsung Galaxy Tab 2 / Microsoft Compatible Mouse?

    Microsoft 3500 wireless mouse or 5000 will work with Samsung Galaxy Tab 2? I bought the P30pin of USB connector. Suggestions? Thank you!

  • Random allocation/sorting of files in a folder

    I would like to know how I can rename and sort files in a folder of photos in a totally random order because I want to create a photo essay? Thank you very much

  • VLAN function 6248 switch IP address

    We have a nice and simple class C private address space private on 4 x Dell 6248 switches. We are running out of IP addresses. We could change the netmask (add more bits), but who is to reach each node and potentially finding devices that do not work