Display Dialogue Box To Obtain User Value

Hello
I want to display a dialogue box for the user to enter a value (an integer) and be able to click Cancel or OK. I can't see any way of invoking a dialogue box enabling a user to enter a value, only a message box.
Thanks
Chris

Thanks
It's amazing that every dialogue box which everyone makes has to be made from scratch! A lot of work for such a fundamental function.
My flash movie is embedded in a web page. Can I make this dialogue box 'pop up' over my web page?
Regards
Chris

Similar Messages

  • If i have a form with check boxes. Can I add a button that will display the boxes that the user selected on a new page?

    For example, there are 10 check boxes and the user selects 5 of those boxes. Then they click a submit button. Just the information from those boxes would be displayed so they can print it. Is this possible? Any help pointing me in the right direction would be appreciated.

    That is definitely possible.
    Option 1: checkboxes are all named differently.
    In the click event for the submit button, add some code like this...
    if (cbChoice1 == "1") p2.tfChoice1.presence = "visible";
    else p2.tfChoice1.presence = "hidden"; //can use "invisible" if preferred
    if (cbChoice2 == "1")...
    Option 2: checkboxes are named the same
    In the click event for the submit button, add code like this...
    var checkboxes = xfa.resolveNodes("cbChoice[*]");
    var textfields = xfa.resolveNodes("p2.tfChoice[*]");
    for (i=0; i<checkboxes.length; i++){
        if( checkboxes.item(i).rawValue == "1") textfields.item(i).presence = "visible";
        else textfields.item(i).presence = "hidden";

  • Report opens Save as Dialogue Box, on client.

    Hi,
    I am using Report Builder 11.1.2.1.0, and I am calling a report from Form.
    If I run/call report on my own pc it opens perfectly in browser (pdf format), but if same report is opened on client pc, it opens Save As dialogue box and asks user to save the report.
    Can you please let me know, how can I achieve to open a report in browser on client's pc, without opening Save As Dialogue.
    Eagerly waiting for your replies.
    Regards,

    That is probably because the user's browser does not support opening a pdf document.
    Most browsers support pdf, some need a plugin. Check what happens with any other pdf document on the web that you want to open on the user's PC, like http://docs.oracle.com/cd/E16655_01/server.121/e17643.pdf

  • I want to use Native System Center Software Center Notification box or Windows Update dialogue box to force a reboot.

    I'm installing software that will require a reboot. I would like to use the Windows Update dialogue box to prompt users to reboot.
    Or a reboot dialogue box that mimics System Center Software Center Notification box
    Does anyone know of a way to use the System Center Client notification or the Windows update box to force a reboot. This is familiar to my users and will not freak them out 

    The Coretech Shutdown Tool is free, excellent and would satisfy your requirement.
    http://blog.coretech.dk/kea/new-version-of-the-coretech-shutdown-tool/
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • List of Values Displays a Dialogue Box

    Hi All,
    We are using 2007A PL30, whenever pressing Tab on a list of value field, system displays a dialogue box first like "The result of the 'List of' query contains more records than you defined in the general settings. Continue?" Yes or No. If Yes is pressed then a list of values appears else no result.
    I checked the general settings, but there is nothing special. Kindly help me out with this issue.
    BR,
    /Siddiq

    Hi
    Normally this message is triggered when the number of rows in the List you are viewing has a value more than one and the results in the List is more than the value specified in
    administration > Sys. Int> Gen. Sett--> display Tab --> No. of Rows in"List of" windows field.
    If you are saying there is no value specified there try upgrading your PL to a latest version maybe your issue will be sorted.
    Bongani Dlamini

  • Authentication dialogue box not displaying properly in 10.6.5

    I've updated to 10.6.5 last night. Everything seems to work just fine except for the authentication dialogue box. All letters turn out to be capital A's in boxes. Authentication itself still works, but the improper displaying of characters just bugs me. Does anyone have that problem? Thanks guys!

    Wow thanks! It wasn't a 10.6.5 bug after all. I downloaded a Leopard UI set, and thought it would be nice to include the Lucida fonts in my OS. I didn't see the fonts in the fonts folder, but it turned out that they were there and I just duplicated them. Thanks

  • How to disable dialogue box asking for exchange user/psswd

    Everytime a particular user sends me an email, just by clicking on that email or opening it, I get this annoying pop up dialogue box asking for name and password.
    It looks like an exchange server thats connected to the users account and has nothing to do with my email account. I don't use exchange.
    I have to hit cancel 3X and then it automatically prompts me every few seconds.

    Solved.
    It was because the folder was from time machine backup that I just dragged and dropped to desktop.

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • My child got ahold of my mac book. She did something and now there is a "dialogue box" that is constantly displayed and it essentially narrates all of my actions, telling what I am doing and viewing etc. help me get rid of this, please.

    My child got ahold of my mac book. She did something and now there is a "dialogue box" that is constantly displayed and it essentially narrates all of my actions, telling me what I am doing and viewing etc. Along with it every icon I click shows a box arond it . Help me get rid of this, please.

    Choose system preferences, then under 'Personal' choose 'Universal Access''
    You will see a checkbox called 'Voice Over'' (under the seeing tab). Switch this to off.
    Good luck
    Max

  • Edit the INITIAL values in Layer...Layer Styles...Drop Shadow dialogue box

    How can I edit the values in Layer...Layer Styles...Drop Shadow  dialogue box so that values that appear when I FIRST OPEN the box are the values I use commonly?
    For example, once I open the dialogue box, the Blend Mode is always "Multiply" and the Angle is always "120". I always use "Normal" and "45". Is there a place where I can make my default values "Normal" and "45"?

    Which version of photoshop are you using?
    Newer versions of photoshop have a Make Default button at the bottom of the dialog.

  • Save Password Dialogue Box Not Displaying

    I am seeing behavior that suggests that the dialogue box for saving passwords is invisible:
    * I can frequently see the outline of a box where the dialogue box would be
    * On a couple of occassions, the dialogue box would appear for a few seconds before disappearing - I was once even able to save it
    * On sites where I enter a password, hyperlinks are not recognized in the area where the save password dialogue would normally appear - it's as if the window is there but not visible.
    I have uninstalled and reinstalled.
    Private Browsing is Off. Save passwords is checked.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Printing mulitple tabs without getting Page Setup & Print dialogue boxes

    I am using Forms 6.0.5.2. I have a form with 7 tabs and I need to be able to have a Print All button that prints a screen image of each tab. I have tried programming a trigger that executes a GO_BLOCK('a'); print; GO_BLOCK('b'); print; etc etc. While this will work, it is not user friendly as it prompts the user with the "Print" dialogue box (to select which printer to print to) and then the "Print Capture beginning. Don't move or occlude window until done" diaglogue box every time the print command is executed. Is anyone aware of a way to have these dialogue boxes come up only the first time the print command is issued and to be suppressed afterwards?

    It's relatively easy to setup a series of questions and capture the results via display dialog, for example:
    set bleedVal to text returned of (display dialog "Enter the required bleed:" default answer "0" buttons {"OK"} default button 1)
    set bleed to bleedVal
    You can even do fancy things like:
    set orientationVal to button returned of (display dialog "Enter the required bleed:" buttons {"Landscape", "Portrait"} default button "Portrait")
    set orientation to orientationVal
    or:
    set paperSize to (choose from list {"A3", "A4", "B3", "B4"} with prompt "choose a paper size" default items "A3") as text
    set paper size to paperSize
    Note that you may want to perform some input validation on the value entered to make sure that users don't enter inappropriate values such as "0" for the enlargement/reduction ratio, or "none" for bleed values, etc.

  • Can't bookmark certain web pages. I press Ctrl-D and the "Bookmark this page" dialogue box does not appear.

    For example: If I open the home page of The New York Times and press Cntrl-D, the bookmark dialogue box appears but pressing "done" has no effect, the bookmark is not saved. If I go to a page with a particular article, then the bookmark function does not even appear. At first i thought this had something to do with the web site, but that isn't the problem. I just can't bookmark anything. On some pages the dialogue box appears and on others it doesn't, but the result is the same everywhere: zilch.
    And here is something really strange: when i press Cntrl-D on the Firefox start page, the bookmark dialogue box appears with "Board of Education" in the page title field. What is ''that'' all about?
    I have tried all manner of fixes: deleting "places.sqlite" and "localstore.rdf" files, operating in "safe mode", disabling add-ons, re-installing Firefox, etc. etc.. Nothing seems to work. I am running the latest version of Zone Alarm Security Suite. It has an advanced browser security function that includes virtualization. I tried disabling the browser security option, but this did not solve the problem, although I still suspect that Zone Alarm could be the culprit somehow (it often is). \
    Any and all ideas will be welcome as I am fresh out.

    The problem with bookmarking (which I thought I had eliminated with a clean reinstall) has returned after a Firefox update.
    Checked out /questions/743526.
    A scan with Malwarebytes did not detect any malware. Not in normal mode, not in safe mode.
    And look at the solutions offered by st4dog and jimcou: they each deleted different registry values to get rid of XULRunner.
    My problem remains as it was: I don't want to mess with my registry unless I know ''exactly'' what I am looking for (deleting). At least my PC is running, and scans with Malwarebytes, SpyBot SD, Pest Patrol and Zone Alarm AV reveal no infections. If I screw up the registry I think I'll be in a lot worse shape.
    Again, until I have ''specific'' instructions on how to get rid of this thing I guess I'll just have to be content with using IE if I want to do any bookmarking.
    Thanks for the reference. I do appreciate all of your - and other user's - help in trying to solve this problem.

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

Maybe you are looking for

  • HANA Analytical View Display Data Issue

    SAP Experts, Need your kind help for the below issue, I've created an analytical view from a DSO Active Table in HANA Studio. Through IDT (Information Design Tool), when I tried to view the contents of this DSO table (AYPURDA0100) by connecting to HA

  • Adobe reader won't open, even after re-download

    adobe reader won't open because of error - NEED PDF READER NOW!!!!!!!!!

  • Focus problem in 1.4_2 after JPopupMenu show

    Hi, there: I have an application, with a JTextField when that textfield gained focus, a popup menu is shown, and when it lost focus, the popup menu is hidden. My focus listener class is listed below, where popup is JPopupMenu, and function displayPop

  • Can CWM2 API creating dimensions and cube reference a view

    Can CWM2 API creating dimensions and cube reference a view instead of a table. Can the following API reference a view instead of table For creating dimensions CWM2_OLAP_TABLE_MAP.MAP_DIMTBL_HIERLEVEL CWM2_OLAP_TABLE_MAP.MAP_DIMTBL_HIERLEVELATTR For c

  • Smartforms - how call new page ?

    Hi expert, I have a form with 2 page. in the attribut of 1 page there : "Next Page = 2". But when I run the form, only the 1 page is showed. I have to put Command Line = "Gor to new page = PAGE 2" to show the second page. Why ? Why is mandatory to pu