How to create the Remove confirmation dialog

Hello everyone. I use a DataGrid control to display files and folders and have buttons to add a folder, delete folder, delete the file, but I want to add a confirmation popup dialog box when you press a button Delete. I found an example, but it uses the FileSystemDataGrid MX and I couldn't find a way to extrapolate from this example and apply it for my use. Here's my code, hoping that someone can suggest how I can do it.

protected function deleteFolder_clickHandler(event:MouseEvent):void
            {
                var dir:File = File.documentsDirectory.resolvePath(folderName.text);
                dir.deleteDirectory();
                folderName.text = "";
                file.getDirectoryListingAsync();
                folderList.refresh();
                list.dataProvider = folderList;
            }

            protected function deleteFile_clickHandler(event:MouseEvent):void
            {
                var delFile:File = this.filelist.selectedItem.file as File;
                delFile.deleteFile();
                currentFile.getDirectoryListingAsync();
                fileList.removeAll();
                fileList.refresh();
                filelist.dataProvider = fileList;

            }

You could do two approaches. There's the PromptDialog class that would be the native control of dialog to use.

Tags: BlackBerry Developers

Similar Questions

  • Vista in conflict with security programs? Mega-slow start, ctrl-alt-delete = ' login process failed create the security options dialog»

    Hi all

    Have a laptop HP here with heavy problems! After the connection, it slows right down until it takes at least 5 minutes just to open the start - menu it hangs just with the whirly-circle thing. If I do ctrl-alt-del, the screen goes black and after a few minutes, I get the message "Login failed create the security options dialog» The Task Manager does not open. I managed to slightly improve things by disabling the user account control (miserable thing anyway) - it's just too slow, but now the Task Manager opens about 50% of the time and the other 50%, I get the message a little more lively 'failure - security options '. If I leave the phone that it will sort itself out after about 45 minutes, after which it ends to load every startup process and behaves normally. If I boot in Safe Mode, all right. I also ran virus checks - no nasties - and there is nothing surprising in the event logs.

    After an extensive search on Google, I have established that many people - all users of Vista, surprise, surprise - had the same problem, dating back years, pretty much when Vista is released. (This laptop is perhaps a year old). Some corrections were proposed, but the majority concluded that the deactivation of their safety programs, regardless of what they were, did the job. This laptop is running Windows Defender and TalkTalk Internet Security, provided by F-secure. Disable Windows Defender made a slight improvement in speed. Deactivation of TalkTalk Internet Security returned the laptop to normal operation. I strongly suspect a fundamental conflict between Vista programs and safety - that we must all know that Vista is rather prone to bugs - but why Microsoft hasn't issued a fix for this? I don't want to go around without security. Nor do I want to download a new program of security and have the same thing happen againn weeks down the line. Someone had the same problem or found a permanent solution for it? I am barking the wrong tree here? I'll try uninstalling a few recent Windows updates to see if any of those who triggered the hissing fit.

    Okay, I think that I fixed it. I will post the solution for you all poor users of Vista with the same problem. Corrections of spare is located in the following Vista forum thread:

    Error-message-login-process-has-failed-Create-Security-Options-Dialog

    So after that I've identified the cause was the Internet of TalkTalk security program, I did some messing around in msconfig and reduced to the function FSGKHS, alias F - Secure Gatekeeper Handler Starter. If I disabled this service, everything has worked, and if I booted up with no other process or running services to all others as the stuff of F-Secure (with the exception of group policies which I think is an essential service?), I had the same problem. Certainly FSGKHS. However, I did not know why. Everything I had was a vague notion that maybe it was a key to registry corrupt or something. I don't know why I even thought to this. And if I hate the registry cleaners, I couldn't think of any other way to identify registry problems. So I created a restore point and ran CCleaner. It came with a bunch of registry errors, but none of them were related to a F-Secure or files of TalkTalk. I told CCleaner to remove it anyway and booted up with FSGKHS running, just on the offchance. Whaddya know? He is cured. Don't know why, but it works perfectly normally from start to stop (fingers crossed). I know a lot of people have solved this problem by disabling their safety programs - maybe they had a corruption of the registry too? A kind of strange thing to register/security/Vista. Anyway, go try CCleaner before you reformat your drive hard peeps and let me know if this worked for you.

  • How to create the rainbow effect in the formulation

    Screen Shot 2014-06-19 at 1.19.16 AM.jpg

    I can't understand how to create the same type of effect (completely in the wording) as indicated in the text of the image above. I'm new to Illustrator, and any useful information would be greatly appreciated, thank you.

    STO

    You can:

    (1) in the tool box, set the fill to none;

    (2) in the appearance palette dialog box, click Add new fill;

    (3) with the new fill selected / highlighted in the main window of Apperance palette, apply the gradient.

    In the case shown and similar, you can click the gradient in the Toolbox instead of filling Uni, then change the colors in the palette degraded for each stop end of levels of grey, white and black for the right colors in the color palette (RGB or CMYK), then add stops with intermediate colors. you select / Create to stop clicking in the gradient bar, and you can move the stops in ClickDragging or by setting the percentage values.

    The image looks like a little green at 0%, blue 50%, red 755% and flame red / yellow 100%.

  • Satellite P750 PSAY1A: how to create the recovery Toshiba on the new HARD drive partition

    Hello

    I have an old Toshiba Satellite P750 (PSAY1A-01Y022). I just upgraded my memory from 4 GB to 8 GB and am preparing to take my 500 GB HARD drive 1 TB. I had to order the disk online and wait to happen.

    I always try to understand how to create the arrival of my new HARD drive Toshiba Recovery Partition. I do the same thing for an old book, I handled based on something similar to it's original factory State.

    I have reflected on the recovery partition, but does not know how it was created. It is not NTFS. Does anyone have experience in the creation of a Toshiba Recovery on a new HARD drive Partition?

    And the help is very appreciated.

    Thanks and regards,
    Dinesh

    Recovery partition can be created when you use the original Toshiba Recovery disk and install recovery image. Before the partitions to boot OS install will be automatically created, recovery image copied on a recovery and then partition as last step recovery image installation starts.

    A sort of migration of files from one to the other HARD disk is not solution.

    Only for laptop with factory will work and the usable recovery partition.

  • Do you know how to create the façade as a backdrop

    Do you know how to create the façade as the Web, I mean like we did the word and click on it will be rather another process by clicking on the button.

    If possible, I can click on the link in the table... No idea no matter who

    In my view, that the user questioned a hyperlink control. See, for example: http://forums.ni.com/t5/LabVIEW/NI-Example-Finder-Like/m-p/1023011#M455994

    You could probably do this in an XControl.

  • How to create the icon on the desktop just for SilverLight?

    How to create the icon on the desktop just for SilverLight?

    Hello

    • Why is it you are wanting to create a shortcut?
     
    Silverlight is a plugin for Internet Explorer and other browsers, Windows Media Center is to allow video playback which supports silverlight. You cannot create a shortcut for the same.
     
  • Logon process has failed to create the security options dialog

    A program that wants to get out off freezes, I press the X button at the top of the window, but it does not close so I have to do a Ctrl-Alt-Del, but he says "login process failed create the security options dialog" I press ok but it says please wait for a while do nothing. I can't get out of this screen. Help, please. And I have to force a shutdown.

    Hello

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Try to start the computer in safe mode and check if the same problem occurs:
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Method 2:
    Try to perform the clean boot and check if it helps:
    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in step 7 of the above article.

    It will be useful.

  • How to create the usb flash disk to Reboot

    How to create the reboot usb flash drive. If I want to do a recovery or restart the usb flash drive how to

    Hello

    read the google links

    and make sure that your motherboard allows you to boot from USB

    http://www.Google.com/search?hl=en&source=HP&q=how+to+make+a+USB+flash+drive+bootable&AQ=1&AQI=G3G-c1g3&aql=&OQ=how+to+make+a+USB+flash+drive

    and if you talk about the recovery partition of computer manufacturers from the D: to a bootable flash drive, you can not do

  • Login process failed create the security options dialog. Failure-security options.

    Computer is super slow start (really, really slow).  It takes several minutes for nothing to treat, even by typing a key.  I also get a message that says: logon process has failed to create the security options dialog.  Failure-security options.  I get this message when I CLT-ALT-DEL to see what processes are running which CAN be slows all bad.

    Try Ctrl + SHIFT + ESC to start directly the Task Manager.
     
    This person said Chkdsk.
    http://www.winvistatips.com/logon-process-has-failed-create-security-options-dialog-error-message-t152445.html
     
    In computer discs right click and choose Properties, then the Tools tab.
    then click on check now. Check the TWO boxes and then click Ok. Reset. This will take
    from one day to the next.
     
    After running chkdsk (which did above) click on start - all the
    Programs - Accessories - right on command prompt and choose Run as
    Administrator. Type
     
    sfc/scannow
     
    --
    ..
    --
    "RZRBK_frisby" wrote in message news: ae1bebfd-876 c-4c1a-ae6a-5ad864fe41b6...
    > Computer is super slow start (really, really slow). It takes several
    > minutes for nothing to treat, even typing of a key. I am also
    > get a message that says: logon process has failed to create the
    > security options dialog. Failure-security options. I get this message
    > when I CLT-ALT-DEL to see what processes are running, which CAN slow down
    > all down so bad.
     
     
  • I want to know how to create the account admin hiden for my laptop.

    original title: admin account

    I want to know how to create the account admin hiden for my laptop.

    She has windows vista. I'm the only Admin and the only user. No other person has access.

    The hidden account called administrator is already present.  To activate it:

    1. Click on Start > all programs > Accessories .
    2. Right click on command prompt .
    3. Click run as administrator .
    4. In the command prompt window, type net user administrator / Active: Yes
    5. Press enter .

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • How to create the scroll to the menu icon click event bar

    How to create the scroll to the menu icon click event bar

    (as the "field of scrolling image")

    In my opinion, it is better for you to try something to help implementation of your solution to ask for the code.

    For example, create a few BitmapFields with icons that act as buttons.  There is source for this sort of thing on the forum if you look at, I think, looking FRO Image button, icon or Bitmap button.

    Once you have these buttons work, add these in a HorizontalFieldManager.

    Good luck.

  • How to create the menu on the LEFT, as in new BBM?

    Is there any sample how to create the menu on the left of the application as in the new BBM?

    As I know not - there's a good menu, context menu, top menu... but how to create left?

    It's just a TabbedPane: https://developer.blackberry.com/cascades/reference/bb__cascades__tabbedpane.html

  • How to create the Splashscreen for BlackBerry UiApplication?

    Hello!

    I'm new to BlackBerry,

    Can u tell me pls, how to create the SplashScreen.

    PLS, suggest me-

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.

Maybe you are looking for

  • app Keynote does not appear on the iPad

    The keynote application icon does not appear on the IPad. Also impossible to download the application. However, I can open the app on the Apple store and then the application icon appears in the Suggestions of Siri. Why didn't - it is not the icon of

  • HP Envy x 360: pin connection goes back to the password

    When I change my login password to pin the next time, I want to connect in it came back to the password.  I changed my PIN several times and works until I have to sign in again.  Your help is greatly appreciated.  Thanks in advance for your expertise

  • How to get an array of integers to user in the User Interface

    Hi all. I'm not a very experienced user of the CVI. I have almost exclusively coding in LabVIEW but have a client who wants all of their work in the CVI. I've been very fruitful so far (set up a Modbus API from scratch that supports all types of conn

  • How can I sync contacts with windows icloud

    How can I synchronize my contacts to icloud for windows so I can print them. may not be able to print 1 both in icloud

  • Want 5532: What cartridge to change

    E e printer told me to replace the cartridge, but I don't know whether to replace black, color or both. Can you tell me?