Redirect when press button ok on the dialog box

Hello

How can I redirect the user when you press the button on a dialog box?

Thank you

adrianeireyahoo wrote:

OK, but how to get to the ok button.

Dialog.Alert ("cannot send results, check the connection, please try again");

Why do you need to access the OK button of the alert? Just do what you want to do after the display of the dialog box - the statement after Dialog.alert will be reached only after the user presses the OK button (in general). If you want to detect if the user rejected the dialogue this or any other way, create your own one, doModal on it and analyze the returned result:

Dialog myWarning = new Dialog(Dialog.D_OK, "Unable to send results, check connection, please try again", Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), 0L);
if (myWarning.doModal() == Dialog.OK) {
  // OK button was pressed - do what you need here
  ...
}

Tags: BlackBerry Developers

Similar Questions

  • Value of the parameter is not displayed when moving from page of the dialog box

    Hello

    The question I face, is that I have a backup button with the logic in the PFR in which I call a page of dialogue that has an OK button. I give the floor to press ok another page. I need to capture a XXParty parameter that I put in the CO LIC key but is not displayed in the central of the PR of the other page that is called when you press the OK button. Probably I'm missing something very small. Any help would be greatly appreciated. Thank you


    SAVE BUTTON controller LIC... (Call the dialog box and the parameter)
    =============================================
    If (SaveButton! = null)
    {am.invokeMethod ("addNotes", params);  Transaction record.
    System.out.println ("save backwards");
    Try to build your own Page of dialogue here...
    String MainUrl = "OA.jsp?page=xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG & retainAM = Y;
    OAException descMesg = new OAException ("XXTSA", "XX_KSMS_SAVED_NOTES");
    OAException instrMesg = new OAException ("FND", "FND_CANCEL_ALERT");

    DialogPage OADialogPage = new OADialogPage (OAException.INFORMATION, descMesg, null, MainUrl, null);
    OK button to send back the values of the PartyID for CO of the ShipperOverview Page.
    System.out.println ("The party ID is" + left); It is displayed.
    dialogPage.setPostToCallingPage (true);
    java.util.Hashtable formParams = new java.util.Hashtable (1);
    formParams.put ("XXParty", out); Part definition ID in XXParty.
    dialogPage.setFormParameters (formParams);
    pageContext.redirectToDialogPage (dialogPage);


    Partial code in the process asks in the called ShipperOverview Page of the dialog box's OK button
    ====================================================
    super.processRequest (pageContext, webBean);
    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
    String XXId = pageContext.getParameter ("XXParty"); Try to recover part ID here of page of the dialog box.
    System.out.println ("The PartyID is" + XXId);

    Salvation;

    Try one of these two options.

    1. pass the value of the part directly in the URL & get it 2nd co:
    String MainUrl = 'OA.jsp?page=xxksms/oracle/apps/imc/ksms/webui/ShipperOverviewPG&retainAM=Y&XXParty="+Party;

    2. After selecting the button ok in the dialog box get the parameters in CO 1 himself then using URL forward, send them to CO 2

    If (SaveButton! = null)
    *{*
    * //Your code... *.
    *//..............*
    *//............*

    Default OAException = new OAException ("XXABCD", "XXABCD_GNO_DELETE_WARNING");
    DialogPage OADialogPage = new OADialogPage (OAException.WARNING, default, null, "","");
    dialogPage.setOkButtonItemName ("DeleteYesButton");
    dialogPage.setOkButtonToPost (true);
    dialogPage.setPostToCallingPage (true);
    String lineId = pageContext.getParameter ("lineId");
    Hashtable ht = new Hashtable();
    HT.put ("lineId", lineId);
    HT.put ('actor', actor);
    HT.put ("empId", empId);
    dialogPage.setFormParameters (ht);
    pageContext.redirectToDialogPage (dialogPage);

    *}*

    * combination else if (pageContext.getParameter ("DeleteYesButton")! = null) {*}
    String lineId = pageContext.getParameter ("lineId");
    String = pageContext.getParameter ("actor") actor;
    Var empId = pageContext.getParameter("empId");
    HashMap formParams = new HashMap (1);
    formParams.put ("lineId", lineId);
    formParams.put ('actor', actor);
    formParams.put ("empId", empId);
    pageContext.forwardImmediately ("OA.jsp?page=/xxx/oracle/apps/xxabcd/appraisal/webui/DrillDownPG",
    NULL, KEEP_MENU_CONTEXT,
    NULL, formParams, true,
    ADD_BREAD_CRUMB_NO);
    *}*

    --
    GsrC

  • problem in the operation of disconnection when you click Yes in the dialog box

    Hi experts jdev,.

    use jdev11.1.1... version 5.0 - adfbc-oracledb10g-mozilla ffx10. model dynamicTabShell.
     <af:pageTemplate viewId="/oracle/ui/pattern/dynamicShell/dynamicTabShell.jspx"
                             value="#{bindings.pageTemplateBinding}" id="pt1">
    Summarized what I did:

    use af:tree in the left side of the model and hit the link to tree leaf is a region (.jsff) dynamic opens to the right. all in utilzing the
    dynamicTabShell model obiviously above right have a close button in open dynamic region.

    Ok.


    during a test of my application.

    I discovered a problem.

    When I type sheet customer tree link means a customer.jsff returns on the right side.

    customer jsff has some af:table that contains column required fields. while I hit createinsert average operation he provide a line for me. ok.

    When my cursor on the University designates required fields are error throw. It also has ok.

    When I suddenly hit close button.

    made dynamic close region with the error.

    and I suddenly want hits logout link appears in index.jspx. When I hit ways to disconnect

    After the code snippet works perfectly.
        public void OnDialogAction(DialogEvent dialogEvent) {
            DialogEvent.Outcome outcome = dialogEvent.getOutcome();
    
           here code is removed . due to pasted wrongly.
          correct  code is pasted ,after two post.
                
            }
        }
    but my problem is : means DialogEvent.Outcome.yes (when hit the Yes button in the dialog box). This mandatory are only alow does ' t throw me to perform the disconnect.

    Similarly, I run some tests in my application.

    I perform some duplicated in af:table and try to save it comes up an error pk. and I suddenly click Close. and I make means of disconnection from functioning.

    get the pk error.

    likethis, ah lot.


    How to fix or ignore all errors. During disconnected operation is it possible?

    Note: is rarely occur. If it happens, I did mean:

    This url.
    http://127.0.0.1:7101/xxxxxApp-xxUI-context-root/faces/RJAppIndex?_adf.CTRL-State=mogzrfk8t_9

    9 ADF.CTRL - State = mogzrfk8t* I'm going to go out this half of the browser and perform the operation of disconnection.

    First thing, I want to emphasize is you are actually not disconnect, you redirect to the login page.

    Also try to immediately assign = true on the commandlink to avoid shooting validations.

  • In remote desktop, when I run Lotus Smartsuite, the dialog boxes are empty when there should be messages!

    My CRM is created through Lotus Smartsuite approach and it is sitting on a server. Access us this server via remote desktop.

    When you access via Windows XP and older, you can consider all messages dialog box. However, when you access it through Windows 7, all messages to the dialog box disappear.

    Can someone shed light on this and suggest the remedy?

    See: http://playbyear.com.my/docs/StatusBlank.PNG

    Thank you.

    Alex

    Hello

    The question you have posted is related to CRM and would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the support you want.
    http://social.Microsoft.com/forums/en/CRM/threads

    I hope this helps.

  • Move the dialog box - start with the values defined at the current position?

    My apologies in advance if this is a stupid question.

    With a selected object and the active selection tool, I press return to get the dialog box move.

    For some reason, it seems random values entered in the horizontal and vertical fields. Instead, I just want the boxes to always start at 0 so that I can decide where the action, instead of having to manually delete these fields.

    Can someone put me straight on how to get that box to behave as I want what it?

    The numbers in the boxes are not random. They are the last move used values. They are kept to be used if you use a Cmd (Ctrl) d, the shortcut to repeat last transformation.

  • How to close the dialog box after pressing the button

    Hello. I added the button

    ButtonWidget

    (

    kButtonWidgetID,

    kSysButtonPMRsrcId,

    kBindNone,

    334, 434, 16, 16 + 24,

    kTrue, kTrue,

    kButtonLabelKey,

    ),

    and in my method in the file... Observer.cpp

    If (theChange is kTrueStateMessage)

    If (theSelectedWidget is kButtonWidgetID)

    This I want close dialogue

    How? I don't want to create CancelButtonWidget. It is must be cutom button.

    Try this in your dialogObserver,

    InterfacePtr myParent (this, UseDefaultIID());

    InterfacePtr ((IDialog*) myParent-> QueryParentFor (IID_IDIALOG)); dialog

    If the dialog box (dialogue)-> Close();

  • The mouse pointer jump at the top of the screen when the dialog box opens

    In the last few weeks my mouse pointer jumps sometimes extreme high (left side) of the FF browser window. Only happens in FF, Chrome or IE or any other application from Ms. The mouse to update drivers fees Reloaded, switched mouses, USB switch, ports switched to a mouse not MS - all to nothing does.

    "It seems to happen most often when I mouse ' snap to" feature is turned on and that the pointer automatically moves to the default button in the dialog box.

    This unique disability FF to hide the pointer when you enter (when the value in the mouse properties box) have become very annoying.

    Please address and solve the two problems above. Thank you.

    Good news! Now come on. For the moment, you can disable
    KeyScrambler. You can always turn it on when you need it.

  • How can I get a "Détails" view - as the default - when you download a file, in the dialog box "enter the name of the file to save on...» » ?

    When I get an attachment to an email (using Zimbra Imail, Firefox, Windows XP Pro) and I click on it and select 'Download', I get the dialog box "enter the name of the file to save on...» "(because I already have the option"always ask me where to save files. "But the view of default file always in a 'list '. At least recently. I don't remember it always does this. In any case, I want the value default to a 'Détails' view, in ascending order, I can find then things so much faster that way. (I often use the 'Update' tab to bring up, the latest version of a file.) I know that I can go to the Menu 'view' icon and select 'Détails', but whenever I go in a sub-folder in this dialog box, I have to do this all over again and it wastes a lot of time and attention.

    I did some research on the internet but have not found a way to solve this problem.

    Try this:

    a. open my documents, press the alt key.

    b. click on Tools. Click on folder options.

    c. click on the view tab and select Reset and check records.

  • How to use a button in a dialog box without closing the dialog box

    I defined a button located in a dialog box. I want this button to refresh an outputText but when clicked, the managed bean method is called as expected and the dialog box is closed that I don't want.

    <af:popup id="dataFilterPopup">
      <af:dialog id="d5" contentHeight="500" contentWidth="600" stretchChildren="first">
      <af:panelGroupLayout layout="vertical">
      <af:commandButton text="Count" id="cb1" action="#{pageFlowScope.ReportDataFilterBean.count}" partialSubmit="true" partialTriggers="countText"/>
      <af:outputText id="countText" clientComponent="true" value="Number: #{pageFlowScope.ReporDataFilterBean.countValue}"/>
      </af:panelGroupLayout>
      </af:dialog>
    </af:popup>
    

    The managed bean counting method sets the value of the countValue.

    public void count() {
     countValue = 10;
    }
    
    public int getCountValue() {
      return countValue;
    } 
    

    I see two errors:

    1. you may use the 'action' of attribute because it causes the navigation there is no transition rule such that the current page is just refreshed, so your dialog box is closed. Use 'actionListener' rather;

    2. in order to refresh the component, you must set the 'partialTriggers' attribute but not the attribute 'partialTriggers' the command button:

    Dimitar

  • Feature request: option to not have an action button in the dialog box

    As is, the dialog box requires you to have an "OK" button and a "Cancel" button (the name can be changed...) - which will remove the dialog box. Buttons more than that and you must define an incidental view or place in points of view buttons - what is very good, except when a dialog box serves more as a framework, in which case it would be better if only one button dismissed the dialog box (for example "made").

    Rob

    Here's a way without papers to create a dialogue with just one 'fact' button.  Not sure you want to rely on this good:.

    local LrDialogs = import "LrDialogs".
    local LrFunctionContext = import "LrFunctionContext".
    local LrTasks = import "LrTasks".
    local LrView = import "LrView".

    function search local button (x, label, visited)
    If visited == nil then went = {} end

    If type (x) ~ = 'table' or visited [x] then return nil end
    visited [x] = true
       
    If x._WinClassName == 'AgViewWinPushButton' and

    x.title == tag can
    Return x;
    end
           
    for k, v in pairs (x) is
    local result = button Search (v, label, visited)
    If the result then end result
    end
       
    Return to zero
    end
       
    local f = LrView.osFactory)

    local command = {f: column}
    f: static_text {title = "Look Ma! Not OK or cancel. »},
    f: edit_field {value = "fields"},
    {f: push_button {title = "Do It"}}

    LrTasks.startAsyncTask (function)
    While true
    local okButton = button Search (controls, 'OK')
    If okButton then
    okButton.enabled = false
    okButton.visible = false
    return
    end
    LrTasks.sleep (0.1)
    end
    end)

    {LrDialogs.presentModalDialog}
    {title = 'Test', content = speed control, cancelVerb = "Done"}

  • MS Photo Gallery, how can I activate the "do not show this again" when the dialog box appears whenever I try to download a picture to another location?

    How can I activate the "do not show this again" when the dialog box appears whenever I try to download a picture to another location?

    The dialog box that appears frequently when I try to convert or download photos, shows the shadow of this question - I want to make it active until the times dialog box stops appearing I scroll the photo folders.

    Thank you

    I got the last part of what you wanted, which was simply not the message

    The key is that you have to allow this program through your windows firewall.

    Go to your look for the windows Firewall Control Panel,

    There should be a list to allow a program through windows firewall, look at the top left.

    If you feel safe doing this, vlc is not one that I would feel safe with, but to you, it has a function to browse to find the program to be added to your trusted list or access through your firewall.

    Still, it may give you a warning but could release the message?

  • When you delete a file in Vista, the dialog box remove does not close until the computer is restarted

    When you delete a file in Windows Vista, the dialog box remove don't close until the computer is restarted. It is sometimes possible to remove it by closing tha task list. When this is done, the Explorer is closed and restarted.

    Hi Brian,.

    (1) since when are you facing this problem?

    (2) remember to make changes?

    Method 1: Run the fixit available in the link below and check if that makes a difference

    Difficulty of broken desktop shortcuts and common system maintenance tasks


    Note:
    Fixit would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of data loss from that particular area.

    Method 2: If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to resolve missing or damaged on Windows Vista or Windows system files

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

    Method 3:  Select the boot and then check if the problem persists

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

  • My problem is that when I try to save an image from Adobe Photoshop by using the 'save for Web' half of the dialog box does not appear.

    I use a Vista Home Premiuim Windows in an Acer Aspire One 10.1 "." My problem is that when I try to save an image from Adobe Photoshop by using the 'save for Web' half of the dialog box does not appear. Can someone help me please?

    Here is a screenshot of my problem...
    [IMG] http://i55.tinypic.com/of5w01.png [line]
    Help me please.

    Hello

    1. were you able to see the front dialog box?

    2. did you of recent changes to the computer?

    This happens because your screen resolution is less than the required minimum of 1024 x 768.

    You can try to change the resolution of the monitor and check.

    For more information, see the link:

    Change settings display on multiple monitors

    Change the screen resolution

    You can also refer to Adobe support links and also post your request in the Forum from Adobe for assistance:

    http://forums.Adobe.com/thread/433020?TSTART=0

    http://kb2.Adobe.com/CPS/403/kb403268.html

    http://forums.Adobe.com/community/Photoshop/photoshop_windows

    Hope this information is useful.

  • Catch the button on the dialog box

    I show a dialog custom with custom buttons. The dialog box has been created using the third methos overloaded dialog

    Dialog(String message, Object[] choices, int[] values, int defaultChoice, Bitmap bitmap)
    

    I tried to use a fieldChangeListener and a keyListener but none of these worked. What else is there to catch and action?

    I can't find anything on the PopUpScreen API, or dialog API

    Nevermind, discovered that doModal draws up the dialog box on the screen and I just need to retrieve the value of the selected button.

  • When I select this option I get the dialog box 'Create image s system' but it cannot find any 'backup devices on this computer"and lists the error 0 x 81000036

    Error image system original title: windows 7 0 x 81000036

    I'm doing a backup system image.  When I select this option I get the dialog box 'Create image s system' but it cannot find any 'backup devices on this computer"and lists the error 0 x 81000036.

    I have an ESATA connection on my Dell laptop I was trying to make the image on.  I use the unit every day to save files and which works very well.  He just leaves me CCADE with the system image backup...

    any ideas?

    Hello

    ·         You have created a system image backup before that?

    ·         You did it changes on your computer?

    ·         Is your esata formatted NTFS drive?

    Try to save the image of the boot system: http://support.microsoft.com/kb/929135

    Note: make sure that you start the computer in normal mode after a repair.

    See also the linkfor more information about the backup: http://windows.microsoft.com/en-US/windows7/Back-up-your-programs-system-settings-and-files

Maybe you are looking for

  • ICloud family member App requests

    Hello Fact the colossal mistake of buying my daughter an iPod Touch 5th (iOS 9.3.5) for her birthday and defining its place as a member of the family in iCloud, so no matter what application it wants to download (and God, there are many of them) must

  • 3170se Pavilion dm4 broken hinge

    Hi all I have Pavilion dm4 3170se 2 years and my share of hinge laptop is broken... It is really difficult to close.  I tried to shut it down, every time, I heard something broken sounds so I left everything to close.  My laptop needs hinge hinge and

  • Router ADSL line

    Hello I have a wireless router, the problem is that sometimes intermittently when ADSL is red instead of green and sometimes the ADSL and ADSL which are green light turn off and after ometime ignite again, in both cases where I don't get internet. I

  • Screen background image will not stretch (or tile, etc.)

    I use the version of Windows 7 Home Premium 64 - bit OS and have set a custom as my screen background image.  It displays fine, but if I right-click on the desktop and go in 'Customize', then select 'Desktop Background' and use the drop-down "image P

  • Printer C4580

    Printer will stock of 1 to 1.5 years, how to prepare it so it does not work when I start using it again. ?