In a tubular form: how do you make one combo box reflect another

For example:
if there are two fields, one with combo box with bread, meat, juice and I select juice, I and the contents of another combo box in another field to say Orange, grape, lemon.
field one field two
bread orange
meat grape
juice lemon
in field one there is just those 3 but in the table representing two there are many such as types of bread and meat and juice, all three.
Hope you can understand this example. Thanks for your help.

Your description is not very clear but looks like you want cascading select lists, where 2nd select list is populated based on value selected in the first select list.
AJAX is a good solution if you are comfortable with it. Since I'm not very familiar with that, I end up using pl/sql.
Someone had asked similar question few days back, and i had provided a detailed answer. You can check it out at:
Re: select menu depends from selection
Hope this helps.

Similar Messages

  • How do you make one computer slave to another?

    My cd-rom doesnt work, and I want to install some programs using my friend´s cd-rom.
    How do you set the computers up so that his computer can be the slave (or mine???) and that the software is being installed onto my disk?
    Is there a shortcut when starting up the machine?
    Thanks,

    See if the information in this document is useful to you:
    http://docs.info.apple.com/article.html?artnum=58583
    Tuttle

  • Pricing: How do you make one cntyp supersede/override another

    I have two CnTyp in my pricing procedure. The user wants that when she enters the price in Cntyp A it should override the existing Price Condition B and this should reflect in the Gross Value calculation
    This should the same like Pr00 and Pr01. Where the presence of PR01 deactivates PR00. However in this case I want it to do vice versa.

    Both are set to 'C' in customizing. However it is still not working the way we want it too.
    Right now I have condition A that deactivates condition B, if A condition record exists. However I want it the other way round, where Condtion B if entered should deactivate A.
    I am thinking it would have to do with the AltCal and AltBv fields. I just don't know the correct combo to get it working
    This is similar to how PR01 overrides PR00, however I need this to work the other way round

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How do you make one long track into multiple tracks?

    How do you make one long track in itunes into multiple tracks? Is there a way to do that?

    I found another solution too through Garageband. I don't know if it was easier, but I liked this way of creating seperate tracks.
    First, You put the long track into Garageband.
    -then you create a New Basic Track under Track Tab-create as many of those as tracks you want to make
    -also make sure the headphones button is lit up under each New Basic Track-this allows it to be a 'solo' track.
    -then you can start cutting music-with the long strip find where you want to split into a new track and drag that half down into each New Basic Track.
    -Once you are done, press Option Z and a purple little triangle will appear up by the measures. drag the triangle to the end of the first track-this allows it when sharing to itunes to just record the particular track you want, it puts a stop/end to that track.
    -then, make sure the track you want to share is highlighted the bright orange and go to share, 'send to itunes'
    -it will send that to itunes and you can rename it in itunes.
    -Go back to Garageband-delete the first track you successfully shared and move the next one up to where that one was. Slide it accross to the left so it is at the beginning, press option Z and move the purple triangle where you want it to be...and you are good to repeat until all your tracks are done!
    I am a very visual person, and this helped to see where I was cutting each track, just another way!

  • 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.

  • How do you add a combo box into a Jfilechooser?

    how do you add a combo box into a Jfilechooser?
    thanks

    See the API For JFileChooser
    public void setAccessory(JComponent newAccessory)Extend a JPanel or Such like, put your Combo Box on it, fiddle around with event handling code for the ComboBox..
    Set an Instance of that as The Accessory for the JFileChooser.
    Look In Your Docs:-
    <JAVA_HOME>/Demo/jfc/SwingSet2/src , unpack SwingSet2.jar if neccessary
    In there is a demo of using A JFileChooser with an accessory Panel, and Source code that is adaptable...

  • How do you hyperlink one Pages document to another Pages document?

    How do you hyperlink one Pages document to another Pages document?

    Feature removed from Pages 5, along with over 90 others, by Apple.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • How do you make a virtual box available to all users

    Hello everyone,
    My parents just recently bought a new iMac as our "family" computer, which means we have multiple accounts on it. There is a couple of pieces of software still use on a regular basis that only works in Windows, so I was going to make a virtual box so we could run them. My question is, though I have done this several time on single account computers, how do I make one virtual machine available on multiple accounts. I don't want to waste hard drive space making a virtual box for every account. Thanks much for any help you can give me!

    What you need to know is here:
    http://www.apple.com/findouthow/mac/#windowsmac

  • How do I make one window progress to another in swing

    Ive got to design a simple quizgame interface using Swing. Its got to have a player's front-end - gives a selection of questions where the user selects one of five answers, a scoring front-end - displayed after game that allows user to enter their name and a manager's front-end - used to enter questions. The thing is I only have to design the interface. I want to have a front window that leads to the managers front end, scoreboard, and game seperatley. I also want the system to report back when the players got the question wrong or right and then take them to a scoreboard. I dont know how to keep this all seperate from the normal code in the program being written by someone else. I also dont know how to make one window lead to another etc. Please can someone help. does anyone have some code I coulkd adapt for this purpose Im really stuck!!!

    Have a look at CardLayout. Rather than adding removing components, you can keep your three screens separate. Basically, you have three JPanels only one of which will be displayed at any one time. If one has textfields and you switch to another and then back, the text in the textfields will still be there.
    Here's some snippets from an application of mine:
    // set a 'container' panel to cardLayout. This will 'hold' the panels to be displayed at any one time
    private CardLayout cardDisplay;
    deck = new JPanel();
    cardDisplay = new CardLayout();
    deck.setLayout(cardDisplay);
    // add your various screens to the 'container' panel
    deck.add(logonPanel, "LogonPanel");
    deck.add(newUserPanel, "NewUserPanel");
    deck.add(bookingPanel, "BookingPanel");
    deck.add(printPanel, "PrintPanel");
    // add the 'container' panel to the contentPane
    c.add(deck, BorderLayout.CENTER);
    // switch the display, for example when a button is pressed, by using
    cardDisplay.show(deck, "NewUserPanel");
    cardDisplay.show(deck, "EnquiryPanel");

  • How do you make one long clip camera import FCPX

    Does anyone out there know how to make one long clip from a DV camera import in FCPX???  Why the designers thought it was a good idea to chop the clips up during import is beyond me...

    You're expecting one continuous take to import as one single clip, right?
    From my experience with DV-format cameras like the Canon HV20, it's not unusual for there to be enough of a discontinuity (control track??) to create two or more successive clips when importing, dropping a small number of frames between clips. This could be caused by dirty heads or a tape that has been used more than it should.
    A string of separate takes should import as separate clips, I believe.
    Hope this helps.

  • How do you make one video clip constantly switch colors?

    I am trying to make it that one video clip switches from one color then to another color then to another? I also don't want to break up the clip into multiple clips then just change the color on each sub clip because when I tried that, it wouldn't load well in playback because there were so many effects in a couple of seconds. Please help me, thanks!

    When you say 'switch from one color then to another color' do you mean you want the clip to show in shades of a single colour ranging from black to your colour and for that colour to change, or that you want the colours of the image to cycle so that red becomes blue, yellow becomes green and blue becomes red?
    If it is the 'shades of a single colour' you want, apply the 'Cast' effect from the 'Looks' section of the effects palette and use keyframes to animate the Midtones parameter.
    If you want to colour cycle, apply my free 'Gradient Colorize a4d' effect, edit the colours in the gradient and keyframe the 'Offset' parameter which cycles the gradient colours through the image. If you're interested I could create a free effect that could cycle through the colours in a gradient automatically.
    Download 'Gradient Colorize a4d' from my blog:
    http://alex4d.wordpress.com/2012/03/22/11-colour-fcpx-filters/
    @alex4d

  • How do you use the combo box to populate a text box

    I am a beginner when it comes to Java Script.  I have viewed many different discussions, look at a lot of "help" articles dealing with Acrobat 9 and Java Script, but only to be left confused and dazed.  I am hoping someone will be able to tell me how to write a script that will populate a text box that is on my form with the combo box selection's export value...
    Thanks

    If you want the text box to be read-only, just set it up with the following custom calculate script:
    // Set this field value to the value of the combo box
    event.value = getField("combo1").value;
    but replace "combo1" with the actual name of the combo box field.
    If you want something else, post again with more information.

  • How do I make a combo box in LabVIEW 6.1?

    I have found reference to the combo box on this site, but it is not in the LabVIEW help for 6.1. Is there a custom VI I can use?
    Thanks,
    Steve

    The combo box was introduced with LabVIEW 7 and is a special type of string control. Prior to 7, everyone used either a ring or enum control. These are all numeric controls and in order to get the string value of the selected item, you have to use the Strings[] property and use the value of control to index the string array. I've attached a 6.1 VI that shows the different controls and how to index the string value to use them in a case statement. For connection to a case statement, it is not required to get the string value - it can be wired directly to the selector.
    Attachments:
    ring_controls.vi ‏37 KB

  • How can i make 2 combo boxes as the same data source and group by each combo box items separately?

    I have 2 combo boxes  If I have data table like below
    TableA
    ID  NAME
    1     A
    2     B
    3     C
    4     A
    I make "TableA" as data source of "combobbox1" and "combobox2" like
    combobox1.datasource = TableA
    combobox1.displaymember = "ID"
    combobox2.datasource = TableA
    combobox2.displaymember = "Name"
    I want when combobox2 select index at "A"  , Combobox1 show only the items at ID = 1 And ID = 4
    Thanks 

    This is not actually a question to be posted in SQL Server. Here is a link for ASP.NET forum.
    http://forums.asp.net/
    It looks like there is a filter that can be applied in .NET dataset and populate the results in your combobox1. You may get better help from .NET forums for this question.

Maybe you are looking for

  • What is the best virus/spyware software for OSX 10.6.8?

    What is the best virus/spyware software for OSX 10.6.8 on an iMac?

  • Zen V Plus - Video on PC ok; video in Zen with de

    Hello Catherina-CL , I have?Creative Zen V Plus 4 GB, version .0.03e. When i Convert my videos (Video propierties: DivX, 24 Bits, 39 kbps, 25 fps, on 368x496 pix; Sound: MP3, 28kbps) with Creative Video Converter 5.6.6.0, I can see the videos on my P

  • Indesign export pdf font encoding ansi custom

    After exporting an Indesign document to a pdf, I was wondering why some fonts appear twice the same with different font encodings. As example, the font TnTFormBSK-Light appears once as font encoding ansi and a second time as font encoding Custom. The

  • How to check duplicate entries in internal table??

    Dear Friends, How to check duplicate entries in internal table?? Exp: In my internal table if I am having the same records more then ones then I need to print the error message, here I am using steploop for selecting the values from screen, and the v

  • After updating, all fonts on all websites are bold, help?

    I just updated to Firefox v7.0, using Windows 7. I go into Gmail and all of my email looks unread. I realize this is not a gmail setting as CNN is the same, as is all other sites. Please help me get my fonts back to normal! I checked my default and I