Combo box question

Hi! I'm new to Adobe Acrobat pro, so forgive me if I ask dumm questions!
So I wanted to make a form with multiple comboboxes which are referring to each other, so that if you choose something from the first one, you can only choose from the subtypes of the chosen type......
Is it even possible?
I attached an exaple in Openoffice. It works  with the database fields and hlookup function, but it would be the best to have it in pdf......
Thanks in advance

It's possible in Acrobat as well, but you will need to have some custom
scripts to do it.

Similar Messages

  • HTML Combo Box Question

    I generate an HTML page with a Servlet and I have a combo box that lists numbers 1-20. Depending on a parameter that is passed to the servlet I want to set the Combo box to be initalized to (display) a certain number.
    Does anybody know how I can do that? (I would prefer to have the Combo Box entries remain in order)
    Thanks,
    Andrew

    You can always put something in there like
    int foo = Integer.parseInt(request.getParameter("foo"));
    for(int i=1; i <= 20; i++)
      out.println("<option value=\""+i+"\" "+(foo==i)?"SELECTED":"" +" >"+i+"</OPTION>");
    }

  • JSP Combo box question

    How can I make a combo box have the ability to add new items in its list? I have an existing combo box that gets its value from an SQL query. How can I let users have the ability to add to that list? If this is not possible with JSP combo boxes, any suggestions as to what field I may use? Thanks

    Hello Russ9754!
    Might be abit late, but I just read this thread.
    Anyway...I think I have what you are looking for.
    This code creates a dropdown box with the alternatives of your choice. If none of the options is good enough for the user, he/she can choose "other" and enter a more suitable choice in a pop-up javascriptprompt.
    <FORM NAME="formName">
    <SELECT NAME="country" onChange="countryOnChange();">
    <OPTION VALUE="Albania" selected>- = Albania = -</OPTION>
    <OPTION VALUE="Finland">- = Finland = -</OPTION>
    <OPTION VALUE="USA">- = USA = -</OPTION>
    <OPTION VALUE="Other"> Other... </
    OPTION>
    </SELECT>
    </FORM>
    <SCRIPT>
    function countryOnChange(){
    sel = document.formName.country.selectedIndex;
    val = document.formName.country.options[sel].
    value;
    len = document.formName.country.length;
    if (val == "Other"){
    var newcountry = prompt("Enter your country.", "");
    if (newcountry == null) { return; }
    document.formName.country.options[sel].text = newcountry;
    document.formName.country.options[sel].value = newcountry;
    document.formName.country.length = len +1;
    document.formName.country.options[len].text = "Other...";
    document.formName.country.options[len].value = "Other";
    </SCRIPT>

  • Simple combo box question

    I have Flash MX 2004 Pro. I want to create a
    movie/graphic/button ( not sure which one yet) of a county
    (obviously from a state map) and I want to have all of the counties
    (over 40) listed in a Combo Box. I would like the Combo box to
    automatically be updated/populated every time I create a
    movie/graphic/button of a county. I would like to be able to click
    on a county name in the combo box and have the county highlighted.
    While the graphic part is doable, I am asking for help with the
    scripts.
    One more thing: I have a text box that I want to have data
    displayed only for the specific county. So I am thinking of
    creating a text box that is invisible in the State swf but will be
    viewable when the county is selected (mouse over or thru the combo
    box). Do I have to use the scripts to make it viewable when the
    movie is selected?
    Is this even possible with my version of Flash and if so,
    does anyone have some codes I can look at?
    Thanks.

    As far as the text goes, there are several ways to do that.
    Simplest way is to make the text visible when rolled over and
    invisible when rolled out. That way you get the text positioned and
    formated the way you want. It isn't the best method in terms of
    maintenance. A better method is have one text clip that you can
    position in relation to the (x,y) coordinates of the highlighted
    county and pull the text for the county from an array. The latter
    requires more script but is easier to go back and change since all
    you do is update an array.
    I just noticed a line in the onRollOut
    this[this._parent._name + "menu"].selectedIndex = 0;
    that will serve you no purpose whatsoever. I missed deleting
    that from the script I modified to post to you. It doesn't hurt
    anything since it targets nothing you have

  • Combo Box question on JSP

    I have two combo boxes. Box 2 is populated dependant on the value of box 1.
    The data wil be coming out of a JavaBean with a connection to a database.
    What would be the best way to acheive this?
    TIA
    Owen Thomas

    Hello Russ9754!
    Might be abit late, but I just read this thread.
    Anyway...I think I have what you are looking for.
    This code creates a dropdown box with the alternatives of your choice. If none of the options is good enough for the user, he/she can choose "other" and enter a more suitable choice in a pop-up javascriptprompt.
    <FORM NAME="formName">
    <SELECT NAME="country" onChange="countryOnChange();">
    <OPTION VALUE="Albania" selected>- = Albania = -</OPTION>
    <OPTION VALUE="Finland">- = Finland = -</OPTION>
    <OPTION VALUE="USA">- = USA = -</OPTION>
    <OPTION VALUE="Other"> Other... </
    OPTION>
    </SELECT>
    </FORM>
    <SCRIPT>
    function countryOnChange(){
    sel = document.formName.country.selectedIndex;
    val = document.formName.country.options[sel].
    value;
    len = document.formName.country.length;
    if (val == "Other"){
    var newcountry = prompt("Enter your country.", "");
    if (newcountry == null) { return; }
    document.formName.country.options[sel].text = newcountry;
    document.formName.country.options[sel].value = newcountry;
    document.formName.country.length = len +1;
    document.formName.country.options[len].text = "Other...";
    document.formName.country.options[len].value = "Other";
    </SCRIPT>

  • Combo box question - can a store extra values?

    my data is
    car# id
    CAR1 111111
    CAR2 222222
    CAR5 555555
    i want to be able to select CAR1 in the combo and
    retrieve the id field.
    what is the best way to do this? in foxpro one can
    have hidden fields and some ocxs of cargo objects.
    thanks for any help
    owen brandon

    Hi,
    I haven't used JComboBox for a while but I think you just need to make a class with an id (eg. 11111) and a name (eg. CAR1), and specify a toString method that returns the name. I fyou catch the object you then can cast it and call its getID() method.
    Greets
    Puce

  • A simple question about combo box

    Dear All,
    Just got a simple question about combo box: I have one of these selectors with labels based on filtered rows from a table.
    Is it possible to have one more label that would select all options?
    Like:
    Product A
    Product B
    Product C
    All Product
    Many thanks for your help!
    Gilles

    Hi Gilles,
    The purpose of ComboBox itself to select single option out of many.
    For your purpose, you may have to use "List Builder" which can accomodate 1 or more  to select.
    Please revert for more clarification if you need.
    With best wishes
    BaaRaa.

  • Question about using the Combo Box feature!

    I have a form that I am trying to create for our company that will allow our field nurses to select what they need and print it more effieciently.  The problem is that some of the selections are too long and I can't get the Combo box feature to allow them to be printed on multiple lines:
    I have spoken to my supervisor about redoing the form to look like this:
    But in order for us to meet state guidelines it has to be formated like the first because that is the state form given to us.  I want to be able to either:
    A) have the combo box multi-line auto text sized so it will get all the information into each box
    OR
    B) create text boxes at the end of the form that auto enteries the selected data from the second picture into boxes that look like the first picture.
    Is there any way to do either of these?

    A) No.
    B) Yes. Create a text box with the following code as the custom calculation
    script (assuming the name of the combo is "Combo Box1"):
    event.value = this.getField("Combo Box1").value;
    That way, when the user makes a selection in the combo-box, the value will
    also appear in the text box. Just make sure to make the text box read-only
    and set the combo-box to apply the selection immediately.

  • Question abt. combo box and database

    Hi. I have two combo boxes, A and B. Items in A is obtained from table X, Items in B is obtained from table Y. But, the problem is that whatever appears in combo box B should not contain those in combo box A. How do i go about doing this? Note that values in table X come from values in table Y.Here's an example:
    (this is I currently have)
    Combo X             Combo Y
    Apple            Mango
    Orange           Kiwi Fruit
    Pineapple        Apple
    Kiwi Fruit        
    Mango          (this is I WANT)
    Combo X                  Combo Y
    Orange                  Mango
    Pineapple               Kiwi Fruit
                            ApplePlease help and thanks in advance.

    hi....
    First of all, I've designed the two combo boxes with Add/Delete buttons in the GUI. I'm using JSP to retrieve values from database table into my combo boxes.
    Actually, I have the two combo boxes already. I have already got the items inserted into combo A from table X using JSP. I am thinking of getting all the values in combo box B from the table Y first, then maybe store them in an array or something, b4 comparing those values with that from combo box A, eliminate those existing in combo box A, and the rest will be stored in combo B.
    I do not know exactly how to store values i obtained from table to an array and how to compare arrays.
    hope u understand what i'm trying to say, please help if possible, thanks.

  • Question on Combo Box

    I have a form with Master (Single Record ) and Detail ( Multi Record ) blocks. There is a Combo Box in Header block. When I select a value from Combo box ( When list changed ) detail block records are to re queried. Similarly when I enter some value manulally and by pressing tab/enter key ( Key Next Item) , the detail records are to re queried.
    While entering a value with Key board, the trigger When-List-Changed trigger is firing for each letter I'm typing. Is there any work around solution for this?

    Quote:I think it will be nice to close the editor if we click again on the down arrow or the cell without selecting any item in the combobox, so that users can see original cell view
    Your opinion collides with the opinion of other users that say they want to keep the combobox active to see what is underneath the open dropdown to open it again.
    Adding your code to the iconCanvas in NatCombo breaks the behavior on clicking the down arrow. At least in my workspace. I don't know of which version we are talking about and which codebase you have. But hideDropDownControl() does not close the editor, it only hides the dropdown. This can't be the solution.
    What you need is to override mouseDown() to close the editor instead of hiding it.
    BTW, with this change you remove the ability to move the focus to the text control to allow editing.

  • How can I code a lookup table from a combo box

    Hi, I am trying to use combo boxes on a front page which selects a desired gas.  I then want this to look up a simple 2D table which returns the associated K factor value to be used.  Essentially I need to gain the conversion factor for a selected gas to be used in the block diagram to adjust the outputs and inputs accordingly.  I tried to load an excel file into an array and then extract the desired numeric value but failed. Any help would be great.  I don’t want to be manually inputting the values in the block diagram because there are lots of them so it must be read in from a file of some sort.
    Regards

    Hello Sniepsy,
    You posted this question in the FieldPoint forum, but the
    question appears to have nothing to do with that hardware product.  I can’t deduce from your post what
    programming platform you are using, but I assume that it’s LabVIEW.  If so, you might consider reposting your
    question to the LabVIEW forum.
    I’ll broadly address your question though.  If the number of possible input factors is
    small (say in the order of less than 50), the easiest thing to do is just
    generate 2 1D arrays with one for keys, and one for values.  Make sure the indices match up and just look
    up the index of a key in array 1, and index array 2 with that to get your
    number.  A purist might complain that the
    lookup time would be linear, and we can achieve log-time with sorted lists and
    advanced structures – but since these aren’t in LabVIEW the overhead of
    implementing them might outweigh the benefit.
    Hope this helps! 
    Please let us know if you have further questions.
    Travis M
    LabVIEW R&D
    National Instruments

  • InfoView - How to Restrict values of Month Dimension Combo Box

    Post Author: alexrox
    CA Forum: Publishing
    Product: Business Objects Enterprise XI R2
    Version: XI R2
    Patches Applied:
    Operating System(s): Linux RHEL 4 x86
    Database(s): Oracle 10gR2
    Error Messages:Steps to Reproduce:
    Hello, we are using Business Objects Enterprise XI R2 in the company I work, and we are facing a problem in some web intelligence reports.Our BO version is in Spanish, so maybe I do not translate some BO terms properly into English.
    We have the "Time" class in the Universe we use, and in that class, we have the "month" dimension.
    When we create some reports in InfoView, we can use the "month" dimension to display the results of that month (dragging and dropping that dimension in the "Analysis Context" Area).
    The user can choose values in the "month" dimention through a combobox in the "analysis context" area. The problem is that Infoview allows the user to select the value "all the values" of that dimension, I mean, all the months, so that the results of the report are according to the "automatic aggregation" calculated of the values of that dimension (all the months).
    But, we do not want to allow the user to select that value (all the values) of that dimension, because it causes that the report displays incorrect results (we have some percentages that have incorrect values in the aggregation, for example). I hope that you understand the problem I have tried to explain.
    My question is how can we restrict so that the combo box (of the month dimension at the analysis context area ) does not allow to select "all the values"?
    Is it possible?  If so, do we have to make a change in the universe or is it a restriction of the web intelligence repport?
    Thank you very much!
    Alejandro Usero Ruiz

    Post Author: jsanzone
    CA Forum: Publishing
    Alejandro,
    In your posting, quote "(we have some percentages that have incorrect values in the aggregation, for example).", I'm wondering if you are calculating the percentages within your universe or not?  I.e. do you have a universe object that in essence is doing the math?  If so, I might suggest that you not do it this way (even though in total aggregation calculations this will produce a valid result), but in disaggregate calculations (during the users "slicing and dicing") the percentages are not re-calculated by the BusObjects tool because it thinks that the data it received from the SQL output is good to go, and this is where the incorrect values in the aggregation start to show up.  We had this problem too, so we ceased from calculating at the universe level and built a local variable to the report, thus BusObjects will recalcuate the percentage properly for each level of aggregation that user selects.  The downside to this approach is that every report that has percentage calculations will require the local variable to be built for that report.  Even users who build their own reports will have to build their own local variable to compute the percentage for their reports.  The upside is that the calculations will be correct every time.

  • How to populate values from database into a Combo Box?

    Hi,
    How to display all the values of a field of a database table in a combo box inside a grid in B1 user defined form?
    Regards,
    Sudeshna.

    Hi,
    If you are trying to do this on a system form (I gues this is your case, reading the other question), for example Sales Orders, and you want to show the values from a User Defined Table (UDT), you just need to add a User Defined Field on Marketing Documents Line level, and say it is linked to the UDT.
    SBO will automatically show the combo with the values on the Code field of the UDT.
    Regards,
    Ibai Peña
    Sorry, I didn´t read the post well.
    What you could do is each time the form is loaded, read the values from the table, and asign them as Valid Values for the combobox column. You can do this programatically, or using XML (which is recommended becouse of better performance).
    Message was edited by: Ibai Peña

  • How to populate the second combo box by depending on the selection in 1st?

    I have two combo boxes, both of data in the lists come from the database. The list in the second will be changed when the selection is changed in the first one. I am trying to do query again in the ActionPerform function, unfortunately the list in second one doesn't change.
    I am learning Swing now, I really appreciate for any suggestions!
    Thanks

    camickr,
    I have another question for the tab pane. Now I have to remove the tab and add tab for updating the tab pane. I wonder if there is other way to do it. I really appreciate your help!
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.cfg.Configuration;
    import java.net.URL;
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    public class test_tabpane extends JPanel implements ActionListener {
         private JPanel MainPane;
         private JComboBox combobox2;
         private JTabbedPane TabbedPane;
         private JComponent panel1;
         private JComponent panel2;
         private String [] resources ={"ZZAA", "ZZAB", "ZZAC", "ZZAD"};
         private String selected_resource = "";
         public test_tabpane() {
              MainPane = new JPanel();
            MainPane.setOpaque(true);
            MainPane.setPreferredSize(new Dimension(600, 70));
            MainPane.setBorder(BorderFactory.createRaisedBevelBorder());
            combobox2 = new JComboBox(resources);
            combobox2.addActionListener(this);
            MainPane.add(combobox2);
            add(MainPane);
            UIManager.put("TabbedPane.tabInsets", new Insets(5,5,5,5));
            TabbedPane = new JTabbedPane();
            panel1 = makeTextPanel(resources[0]);
            TabbedPane.addTab("Language/Notes", panel1);
            panel2= makeTextPanel(resources[0]);
            TabbedPane.addTab("Relations/Coverage", panel2);
            TabbedPane.setPreferredSize(new Dimension(600, 340));
            TabbedPane.setFont(new Font("ariel", Font.BOLD, 11));
            TabbedPane.setSize(600, 340);
            add(TabbedPane);
         protected JComponent makeTextPanel(String text) {
            JPanel panel = new JPanel(false);
            JLabel filler = new JLabel(text);
            filler.setHorizontalAlignment(JLabel.CENTER);
        //    panel.setLayout(new GridLayout(1, 1));
            panel.add(filler);
            return panel;
         public void actionPerformed(ActionEvent e) {
                   JComboBox cb = (JComboBox)e.getSource();
                   if ("comboBoxChanged".equals(e.getActionCommand()))
                   //   if ("comboBoxEdited".equals(e.getActionCommand()))
                   //     System.out.println("in action:" + (String)cb.getSelectedItem());
                        String selected_string = (String)cb.getSelectedItem();
                        StringTokenizer st = new StringTokenizer(selected_string, "|");
                        selected_resource = st.nextToken();
                        updateTabbedPanes(selected_resource);
        protected void updateTabbedPanes(String selected_string) {
             panel1 = makeTextPanel(selected_string + " in Language/Notes");
             int index = TabbedPane.indexOfTab("Language/Notes");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Language/Notes", null, panel1, "", index);
             panel2 = makeTextPanel(selected_string + " in Relations/Coverage");
             index = TabbedPane.indexOfTab("Relations/Coverage");
             TabbedPane.remove(index);
             TabbedPane.insertTab("Relations/Coverage", null, panel2, "", index);
        * Create the GUI and show it.  For thread safety,
        * this method should be invoked from the
        * event-dispatching thread.
       private static void createAndShowGUI() {
               JFrame.setDefaultLookAndFeelDecorated(false);
           //Create and set up the window.
             JFrame frame = new JFrame("test");
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           //Create and set up the content pane.
           JComponent ContentPane = new test_tabpane();
           ContentPane.setOpaque(true); //content panes must be opaque
           frame.setContentPane(ContentPane);
           //centers a frame onscreen // it is a problem for wide screen
           //   frame.setLocationRelativeTo(null);
           frame.setLocation(300, 120);
           frame.setSize(1024, 768);
           frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
           //Display the window.
          frame.pack();
           frame.setVisible(true);
          * @param args
          * This is main function.
         public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Change combo box selection dynamically?

    I would like to have a combo box change its selection dynamically according to what is selected in another selector.  As far as I can tell from reading the Help, this feature is available for List Boxes, List Views and List Builders only ("The Dynamic Selected Item functionality is available in list-based selectors") and based on the wording I assume that it is currently unavailable for other components.  Is this true?  If so I would like to formally request that other selectors - particularly combo boxes - be included.
    The use case for me is this: After the user has already inputted information and digested some of the output, they eventually reach a section of the project that appears only under certain conditions.  This area is about 800 pixels to the right of the original combo box in the inputs area, and so in order to quickly change that selection they would have to go look for the original selector, which could easily discourage them from browsing that particular selection.  Hopefully this makes sense.
    It would also be great to hear back that this kind of feature request can actually be made in this way.  I've submitted a few similar requests in the past and did not see an acknowledgment, and so I am still unclear as to whether or not feature requests are even possible.
    (Edit: I thought about creating duplicate overlapping instances of the combo boxes in question and, using dynamic visibility, control which appears according to the current selection.  But this is only suitable for smaller lists).

    >
    Alan McClean wrote:
    > To get around it I shuffled my selection list dynamically, so that the one I wanted appeared at the correct place. I did this using the source data component and some Excel logic. However, it is buggy and a lot of work.
    Thanks, Alan.  I am currently working on a similar solution.  Seems to be the best for my situation, but it is far from elegant.
    >
    Charles Davies wrote:
    > Just a thought, would the Filter component work for you?
    The Filter component requires that the underlying Excel data be structured in a pretty specific way.  As far as I can tell, I would probably have to rip apart my XLS and redesign it in order to make use of that component.  Perhaps in a future generation I'll give it a go, but I've already gone through too many redesigns this time around.

Maybe you are looking for