How do I display a popup screen bit so a user confirms?

I have a small bar on the bottom of my application with a backup and a Cancel button. I want the user to confirm when he chooses to cancel as in "are you sure you want to exit the changes will not be saved." type of popup.

How can I achieve this in Blackberry? Thanks for the help guys!

If (Dialog.ask (Dialog.D_YES_NO, "DO YOU WANT TO SAVE THIS RECORD?")) Is Dialog.YES)

{

APPLY THE CODE OF THE HEART

}

Tags: BlackBerry Developers

Similar Questions

  • Display a POPUp screen

    Hi all

    I want to display the popup with content of string for 2 to 5 dry can help them all one on this...

    The pop-up screen should last to notice either thank you 5 sec...

    Please help me how can I do this

    Concerning

    Adkins

    Doing a job? Is that what you wanted... If you please mark the post as solved.

  • How do I close the popup screen

    Hey, I opened a popup screen on the click of a menu item

    now, if the user presses the ESC key

    the pop-up screen should close

    I tried in a certain way, but does not work what to do

     protected boolean keyChar(char c, int status, int time)
            {
                 boolean retVal = false;
    
                if (c == Characters.ESCAPE)
                {
                    close();
                    UiApplication.getUiApplication().invokeLater(new Runnable()
                    {
                        public void run()
                        {
                            UiApplication.getUiApplication().popScreen(filter);
                            UiApplication.getUiApplication().popScreen(UiApplication.getUiApplication().getActiveScreen());//(filter);
                        }
                    });
                    retVal = super.keyChar(c,status,time);
    
                }
                return retVal;
            }
    

    kindly help what to do.

    the popup screen is blocked unless I click on a button on the pop-up screen for certain work

    What to do?

    Your pop-up screen should respond the the ESC key by calling the close() method.

    Override keyChar() in the pop-up screen, search for the ESC key and call close().

  • How can I force the Welcome screen on a single user without password?

    There must be a way to force the Welcome screen for the log after starting, even if only one user on a Vista computer has no password. I searched high and low nothing helps, any help appreciated, thanks.

    Try this:

    Back up your Windows registry database, this might help:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Then go to run and type regedit or regedit.msc

    In the Windows registry and search for this address of the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

    Then look for

    Administerator REG_DWORD

    And you will see the value as 0x000000

    try to make 0 x 00001 or turn it into 1, simply click on it.

    If the administrator is not there, then right-click on the page and try to create the new DWORD value and name it:

    Administrator

    Make sure that the spelling is correct, and then take the value 1. Then reboot your PC and it should work.

    Note that working with registry is risky make sure that you back up before doing these steps. and if the problem happens then restore backup back.

  • How popup screen description on html?

    Location:

    After document. Write(), the application is stopped.

    Question:

    How popup screen description on html?

    You know that the following code is incorrect or other issues?

    Purpose:

    Display content on the screen.

    Minmum coding: (three methods are good to try, but fail)

    Method1

    function help() {}
    var myWindow = window.open (", 'Help', 'width = 600, height = 200');

    ...........stop here..........................
    myWindow.document.write(")

    To start

    ");
    myWindow.focus ();

    Methode2
    popup var = window.open (", 'Help', 'width = 600, height = 200');

    ...........stop here..........................
    var doc = popup.document;

    doc. Write(")

    To start

    ");
    }
    Method 3
    function help (id) {}

    var content = document.getElementById (id) .innerHTML;

    var generator = window.open (", 'name', 'height = 600, width = 200');

    ...........stop here..........................
    Generator.document.Write (')Popup');

    Generator.document.Write (')');

    Generator.document.Write (')

    This page

    ');

    Generator.document.writeln (content);

    Generator.document.Write (')');

    Generator.document.Close ();

    }

    If you know how to solve the problem, please let us know your suggestion or solution.

    Fight with the Playbook.

    Never (never never) use document.write. It can cause much more harm and confusion than good.

    If you want to display a dialog box that is customized with the text inside, the simplest is to use jQuery Mobile:

    http://jquerymobile.com/Demos/1.2.0-Beta.1/docs/pages/page-dialogs.html

    Otherwise, you can create your own by using a

    element with some custom CSS, like this

    HTML:

    this is my description

    CSS:

    .dialog {
       max-width: 30em;
       border: solid 0.25em black;
       background-color: #ddd;
       padding: 1em;
       display: inline;
       position: relative;
       left: 10em;
       top: 3em;
    }
    
  • How to display on my screen 2 different applications at the same time?

    How to display on my screen 2 different applications at the same time?

    Hello

    The best place to ask would be the forums for answers corresponding to your version of Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    =====================

    If you have Windows 7 with Aero - click with the right button on the taskbar at the bottom of the screen and click on 'show windows '.
    Side by Side.

    For all versions of Windows:

    You could also reduce less than full screen using the small box to the left of the red X at the top right
    and then resizing windows as you want.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to make a slide show of photos scanned to display in full screen?

    original title: how to make a slide show of photos scanned to display in full screen?  When you pass back to the pictures of small size.

    I use Windows XP Home Edition and picture & Fax Viewer.  Scanned a bunch of old photos and saved in JPEG format in the folder my pictures.  I want a slide show where photos take up the entire screen.  Times 'Fit' real buttons and "Best Fit" see the small picture.  I can zoom in and enlarge an image, but as soon as I hit the slide show, the size of the photo back to the original size.

    I use Windows XP Home Edition and picture & Fax Viewer.  Scanned a bunch of old photos and saved in JPEG format in the folder my pictures.  I want a slide show where photos take up the entire screen.  Times 'Fit' real buttons and "Best Fit" see the small picture.  I can zoom in and enlarge an image, but as soon as I hit the slide show, the size of the photo back to the original size.

    =========================================
    This will happen if the dimensions in pixels of the pictures
    is less than the display resolution in display properties.
    (Start / Control Panel / display / settings tab)

    Example... If your photos are 640 x 480 and your screen
    the resolution is 1024 x 768... the photos will be not fill the screen
    When displayed in the viewer of WP & F.

    If you resize the photos and increase the size in pixels
    to the same or a larger size than your screen resolution...
    they will be displayed full screen.

    (Beware... pictures low resolution may appear blurry/pixelated)
    When it is maximized).

    Also... to consider... photos in Portrait orientation will never
    be full screen unless they are grown in landscape orientation.

    For the future... I would suggest increasing the DPI for scanning of...

  • I have Dell ispron B130 running windows xp, how do I print what is displayed on the screen using the PRNT SCRN key?

    I have Dell ispron B130 running windows xp, how do I print what is displayed on the screen using the PRNT SCRN key?

    The 'Print screen' button is misnamed.  In fact, what happens when you press it, it is that an image of the screen is copied to the Clipboard.  You must then open an application that can work with images (paint works) and paste in the opened window (or right-click > paste or edit > paste).  Then you can use the regular print of this application (for example, the file > print).

    You can also download free IrfanView.  It is a very handy utility.  It allows you to open and view a wide variety of image file formats and also has the capability of the bulk renaming of files and - for your current number - capture screen images and prints them out.

  • How to display the splash screen and background

    Hello

    I have an application that gets images from a server and displays them. what I want to do is to display a loading screen while the images are download and go to another screen when the download is complete. is this possible?

    Thank you

    Dieye

    Yes, it is possible.  You can use a PopupScreen to do this.  Please take a look at the JavaDocs for dialogue, status and PopupScreen for examples of classes, that you can use to display a "please wait" type of screen.

    Once you download is finished, you can close the screen and push the other onto the stack.

    Please note the following if you try to manipulate your download lead active USER interface.

    How - to upgrade a screen on the main event Thread
    Article number: DB-00136

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

  • How to close a popup screen pushed as a global screen

    I want to close a popup screen but my application is in background so

    UiApplication.getUiApplication () .popScreen (getScreen ());

    or

    UiApplication.getUiApplication () .getActiveScreen () m:System.NET.Sockets.Socket.close ();

    does not work is not something

    same Ui.getUiEngine () .getActiveScreen () m:System.NET.Sockets.Socket.close () does not work...

    in the popup screen, I have a custoListView (written own filed) there is an item when you click on an event

    listner function is called by there, I have to close popup screen... my class is like that

    SerializableAttribute public class SelectSms extends PopupScreen {}

    private vector _data;

    public boolean onClose() {}
    try {}
    Close();
    Returns true;
    } catch (Exception e) {}
    Returns false;
    }
    }

    public SelectSms() {}
    Super (new VerticalFieldManager(), Field.FIELD_VCENTER);
    _data = null;
    _data = MessageStore.getMessage ();
    last post [] message = Message [_data.size (new)];
    MSGC [] CustomListField = null;
    MSGC = new CustomListField [_data.size ()];
    for (int i = 0; i)<>
    message [i] = (Message) _data.elementAt (i);
    MSGC [i] = new CustomListField (message [i] .getMSG_BODY (), message [i] .getMSG_NO (), and [i] .getMSG_STUS ());
    last post mesg = message [i];
    MSGC [i] .setChangeListener (new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    onClose();
    }
    });
    Add (MSGC [i]);
    }
    can someone help me how to close the popup screen.
            
    }
    }

    Place the UiApplication.popScreen () call in an executable object and pass this object to UiApplication.invokeLater ().

  • "Changes!" How to disable this dialog box that is displayed on a screen?

    This dialog box is displayed on my screen of application when I type something or cancel strikes and press the button back on Blackberry.

    I don't want this dialog box to appear. How can I disable it?

    Set "setDirty (false);" in your onClose or Escape code.

  • I recently used a dvd + rw disk to back up my photos. Now when I put a dvd in my pc, why it will not display on the screen that's all there is, or how to give me access to it?

    I recently used a dvd + rw disk to back up my photos. Now when I put a dvd in my pc, why it will not display on the screen that's all there is, or how to give me access to it?

    Depends on what you used for the backup.

    If you used the windows backup or another backup software will contain the entire disk will be a backup file, and view/use this file, you use the same software that allows you to save.

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • I'm new to lightroom 6. I look at try videos &amp; they have sport options in the right panel. When to go to import, I have a small rectangle in the middle of my screen. How can I display the import options in the right panel?

    I'm new to lightroom 6. I look at the video traing & they import options in the right panel. When to go to import, I have a small rectangle in the middle of my screen. How can I display the import options in the right panel?

    Hi marinersr,

    You don't mean that the import window is reduced?

    You can develop that will bring to the top of all the options to import for you.

    Kind regards

    Claes

  • I'm working with Acrobat XI and when I try to add text to the geopdf file I get a popup screen that says it is a secure document and editing is not allowed. How can I fix it?

    I'm working with Acrobat XI and when I try to add text to a geopdf file I get a popup screen that says it is a secure document and editing is not allowed. How can I fix it?

    I thought about it... need to use the defined comment tool, not the set of editing tools.

Maybe you are looking for

  • Cannot just enter the key wifi - where is the dashboard?

    Hello I have a stupid problem. My wifi WPA2/AES key is something like "aaaa-bbbb-2222-George. The problem is, there is no dash (""-"") on the keyboard I tried with a space, no space, but without success. The TV detects the SSID, no problem here, but

  • Impossible to update to SP3

    I cleaned a virus of a laptop and did a repair of Windows SP2 installation. When I go to the Windows Update Web site in normal mode, the update will start and then the following error message appears: "ntkrnlpa.exe is in open or in use by another app

  • Help - I am trying to create a playlist with Winamp

    Hey guys,. I'm having a nightmare of a time.  I just got my Sansa Clip and I'm creating playlists on it without WMP.  I already searched the forum, widely and looked here for the better part of 3 hours and finally I decided to just post a new thread

  • Impossible to change UAC settings in Local Group Policy Editor

    Hello I use Vista Enterprise and had turned off UAC, because it was blocking everything (like its supposed to). Now UAC turned on. If I turn it off again, when I reboot, it comes back. I don't know what changes it back on. Is there a way to understan

  • Throw a UI object on top of another user interface object

    Hello friends and family,. So, I'm looking to place a label field ontop of a bitmap image. No idea how to do this? I want to do bitmap image to be in the background and the label at the forefront (top). Thanks for the help.