Add buttons to BorderLayout.NORTH

Hi, I am new to Java. I am using the BorderLayout for my frame. However, I am trying to add two buttons, two comboBoxes, and a checkBox to the NORTH region of the BorderLayout. Can't find anyway to add more than just one to the NORTH in my text book. I use the code below to add them, but the last item added is taking the entire NORTH region and covering the items added previously. If I assign them different regions, then they are all displayed.
     add( buttons[ 0 ], BorderLayout.NORTH );
     add( buttons[ 1 ], BorderLayout.NORTH );
     add( colorComboBox, BorderLayout.NORTH );
     add( shapeComboBox, BorderLayout.NORTH );
     add( filledCheckBox, BorderLayout.NORTH );
I want to use BorderLayout so I can place a drawing area in the CENTER and the x, y coordinates in the SOUTH.
Thank You,
Mike

Put the two buttons, two combo boxes, and checkbox into a panel with a FlowLayout, GridLayout, GridBagLayout, whatever layout you wish. Add only that panel to the BorderLayout.NORTH.

Similar Messages

  • BorderLayout.NORTH for a Buttonpanel and JMenubar?

    Is there a way to make both north?
    Thanks.
    Here is the relevent code: I tried to make it so that it displays it north then the string read from a file is set to top. But it dosn't display the buttonpanel north.
                   gameMenu.add(hpset);
                   gameMenu.add(censor);
                   menuBar.add(fileMenu);
                   menuBar.add(modMenu);
                   menuBar.add(adminCP);
                   menuBar.add(tools);
                   adminCP.add(adminCommands);
                   menuBar.add(gameMenu);
                   modMenu.add(modCommands);
                   tools.add(linkTools);
                   /*Setting censor*/          
                   ButtonGroup censr = new ButtonGroup();
                   onz = new JRadioButtonMenuItem("On");
                      onz.setSelected(true);
                   onz.addActionListener(this);
                      censr.add(onz);
                      censor.add(onz);
                          offz = new JRadioButtonMenuItem("Off");
                      censr.add(offz);
                   offz.addActionListener(this);
                          censor.add(offz);
                   /*End of setting hp*/
                   /*Setting hp*/          
                   ButtonGroup hpsel = new ButtonGroup();
                   hpbar = new JRadioButtonMenuItem("Hitpoints bar");
                      hpbar.setSelected(true);
                   hpbar.addActionListener(this);
                      hpsel.add(hpbar);
                      hpset.add(hpbar);
                          numbers = new JRadioButtonMenuItem("Numbers");
                      hpsel.add(numbers);
                   numbers.addActionListener(this);
                          hpset.add(numbers);
                   /*End of setting hp*/
                   String place = C();
                   if(place.startsWith("disable")) {
                   buttonPanel.setEnabled(false);
                   System.out.println("Disabling button panel.");
                   if(place.startsWith("top")) {
                   frame.getContentPane().add(buttonPanel, BorderLayout.NORTH);
                   System.out.println("Setting button panel to top.");
                   } else if(place.startsWith("bottem")) {
                   frame.getContentPane().add(buttonPanel, BorderLayout.SOUTH);
                   System.out.println("Setting button panel to bottem.");
                   if(!place.startsWith("top") && !place.startsWith("bottem") && !place.startsWith("disable")) {
                   frame.getContentPane().add(buttonPanel, BorderLayout.SOUTH);
                   System.out.println("No config file found. Setting default bar.");
                   frame.getContentPane().add(menuBar, BorderLayout.NORTH);
                   frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
                   frame.pack();
                   frame.setVisible(true);
                   init();C() is a method which uses bufferedwriter to read the line to see what setting the person wants.
    Thanks

    I can't read that unformatted code, so I can't help you directly, but I get the feeling that you're trying to put both the Buttonpanel and the JMenubar in the same BorderLayout.NORTH position, and you're finding that only the last one entered will be seen. What you need to do instead is create another JPanel, say northPanel, give it a proper layout, say BoxLayout configured to add components along the y-axis (to add a component just below the previous component), add your Buttonpanel and JMenubar to this northPanel and then add the northPanel to the main panel (the frame's contentPane), BorderLayout.NORTH.
    Edited by: Encephalopathic on Jun 18, 2008 2:32 PM

  • Add data to the table in the database with the use of add button

    The name of my database is Socrates.
    The name of the table in the database is Employees
    I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
    The error upon compilation is with this line of code
    If (ae.getSource() == jbtnA)// it says that ";" is expected
    Below is the entire code
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
         public void actionPerformed(ActionEvent ae)
                   If (ae.getSource() == jbtnA)
                                    fst = jFirstName.getText();
                        srn = jSurname.getText();
                        cty = jCity.getText();
                        cnty = jCountry.getText();
                        int sn =
    Interger.parseInt(jSSN.getText());
                                    String ad = "Insert into Employees
    (Firstname,Surname,City,Country,SSN)" +
    "values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
                        JOptionPane.showMessageDialog("Your
    details have been registered");
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
    public static void main (String args[])
              Mainpage ObjFr = new Mainpage("Please fill this
    registration form");
              try
                   Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
                   String plato = "jdbc:odbc:socrates";
                   Connection con =
    DriverManager.getConnection(plato);
              catch(SQLException ce)
                   System.out.println(ce);
    }

    i have restructured the code, but the following line of code is giving error:
    String plato = jdbc:odbc:socrates;
    the entire code is below:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         Statement stmt;
            String ad;
            public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
              try
                   Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
                   String plato = jdbc:odbc:socrates;
                   Connection con = DriverManager.getConnection(plato);
                   stmt = con.createStatment();
              catch(SQLException ce)
                   System.out.println(ce);
              catch(ClassNotFoundException ce)
                   System.out.println(ce);
         public void actionPerformed(ActionEvent ae)
                   try
                        if(ae.getSource().equals(jbtnA))
                                         fst = jFirstName.getText();
                             srn = jSurname.getText();
                             cty = jCity.getText();
                             cnty = jCountry.getText();
                             int sn = Interger.parseInt(jSSN.getText());
                                         ad = "Insert into Employees
    values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
                             stmt.executeUpdate(ad);
                             JOptionPane.showMessageDialog(this, "Your details have been
    registered");
                   catch(SQLException ce)
                        System.out.println(ce);
    public static void main(String args[])
              Mainpage ObjFr = new Mainpage("Please fill this registration form");
    }

  • JPanel applied to BorderLayout.WEST covers BorderLayout.NORTH section, why?

    I am a newbie to swing, but thought that if you applied a panel to borderlayout.WEST, it would not overwrite another area.
    What have I missed, why has may applied panel overwritten borderlayout.NORTH?
    Many thanks.
    <code>
    import java.awt.*;
    import javax.swing.*;
    public class LayoutTest extends JPanel {
         Dimension bd = new Dimension(150,50);
         public LayoutTest(){
              setLayout(new BorderLayout());
              JPanel orderPanel = new JPanel();
              orderPanel.setLayout(new BoxLayout(orderPanel, BoxLayout.Y_AXIS));
              orderPanel.add(makeButton("rita"));
              orderPanel.add(makeButton("bob"));
              orderPanel.add(makeButton("sue"));
              add(orderPanel, BorderLayout.WEST);
         public JButton makeButton(String title) {
              JButton b = new JButton(title);
              b.setMaximumSize(bd);
              b.setMinimumSize(bd);
              b.setPreferredSize(bd);
              b.setBorder(BorderFactory.createCompoundBorder(
                                  BorderFactory.createEmptyBorder(5,5,5,5),
                                  b.getBorder()));
              b.setAlignmentX((float)0.5);
              return b;
         public static void main(String []args) throws Exception {
         JFrame f = new JFrame();
         f.setSize(600, 600);
         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         f.getContentPane().add(new LayoutTest());
         f.show();
    </code>

    I see, thanks.
    I thought each area wouldn't allow you to spill over.
    So, if I don't use an area, all other components will use the space, is that right?
    If I didn't want anything to populate the NORTH area (can't think of an example why), I guess you would have to add a (any) component to it?
    Just modified LayoutTest to populate the NORTH area to, and as you said, it displayed as I initially expected.
    It's gonna take a bit of getting used to this Swing business!
    Thanks for your help.
    <code>
    import java.awt.*;
    import javax.swing.*;
    public class LayoutTest extends JPanel {
         Dimension bd = new Dimension(150,50);
         public LayoutTest(){
              setLayout(new BorderLayout());
              JPanel orderPanel = new JPanel();
              orderPanel.setLayout(new BoxLayout(orderPanel, BoxLayout.Y_AXIS));
              orderPanel.add(makeButton("rita"));
              orderPanel.add(makeButton("bob"));
              orderPanel.add(makeButton("sue"));
              JPanel orderPanel2 = new JPanel();
              orderPanel2.add(makeButton("rita"));
              orderPanel2.add(makeButton("bob"));
              orderPanel2.add(makeButton("sue"));
              add(orderPanel, BorderLayout.WEST);
              add(orderPanel2, BorderLayout.NORTH);
         public JButton makeButton(String title) {
              JButton b = new JButton(title);
              b.setMaximumSize(bd);
              b.setMinimumSize(bd);
              b.setPreferredSize(bd);
              b.setBorder(BorderFactory.createCompoundBorder(
                                  BorderFactory.createEmptyBorder(5,5,5,5),
                                  b.getBorder()));
              b.setAlignmentX((float)0.5);
              return b;
         public static void main(String []args) throws Exception {
         JFrame f = new JFrame();
         f.setSize(600, 600);
         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         f.getContentPane().add(new LayoutTest());
         f.show();
    </code>

  • How to add button in ALV report (Class method )?

    Hello experts,
    I have developed one ALV report using classes.
    I want to add one more  button on the report like already is there named DISPLQUA
    How ca i do that here?
    Following the code of CLASS definition & implimentation
    CLASS lcl_handle_events DEFINITION.
      PUBLIC SECTION.
        METHODS:
          handle_on_user_command FOR EVENT added_function OF cl_salv_events
            IMPORTING e_salv_function.
    ENDCLASS.                    "lcl_handle_events DEFINITION
          CLASS lcl_handle_events IMPLEMENTATION
    CLASS lcl_handle_events IMPLEMENTATION.
      METHOD handle_on_user_command.
        CASE e_salv_function.
          WHEN 'DISPLQUA'.
            PERFORM show_quant_record.
         WHEN 'DISPQM03'.                                " Here i want to add button
           PERFORM display_quality_notification.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_on_user_command
    ENDCLASS.                    "lcl_handle_events IMPLEMENTATION

    HI Ronny.
    Code snippet for reference.
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION.
        METHODS :
    *--Toolbar control
          HANDLE_TOOLBAR FOR EVENT TOOLBAR
            OF CL_GUI_ALV_GRID IMPORTING E_OBJECT
                                         E_INTERACTIVE,
    ENDCLASS
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *--handle toolbar
      METHOD HANDLE_TOOLBAR.
    * append a separator to normal toolbar
        CLEAR G_TOOLBAR.
        G_TOOLBAR-BUTN_TYPE = 3.
        APPEND G_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
        CLEAR G_TOOLBAR.
        G_TOOLBAR-FUNCTION = 'SAVE'.
        G_TOOLBAR-ICON = ICON_SYSTEM_SAVE.
        G_TOOLBAR-BUTN_TYPE = 0.
        G_TOOLBAR-QUICKINFO = 'Save the Customer'(203).
        APPEND G_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      ENDMETHOD.                    "HANDLE_TOOLBAR
    Hope this helps.
    Gary.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 7, 2008 5:41 PM

  • Clicking add button to display the values

    requrement is like this
    Could anyone give suggestions with some code .
    we have lovs using this one we are searching for the value(ex emloyee name) that value is returned to the base page filed like message text input . we have add button, when ever we click that button to display the value(ex employee name ,desigantion this is from another table )on that same page.

    I could not understand your requirement. Post more details of the requirement with specific details.
    Message was edited by:
    Srini

  • Add button to the transaction SM30

    HI
       Whether it is possible to add a buton to application tool bar in the transaction SM30.
    help reg this.

    Hi,
    Yes, it is possible to add button for the transaction SM30.
    This is possible through Menu exit.
    Procedure for Menuexit:-
    Go to SM30 ->System -> Status
    Repository data -> Transaction -> Double click on it
    Copy package name
    Go to SMOD
    Press F4 then a popup will open
    Click on information system
    Enter package name and press Enter
    Then we will get Exit
    Put cursor on that exit and press Enter
    Go to change mode and save it.
    Go to CMOD or alternatively we can use the path tools -> ABAP/4 Workbench -> Utilities -> Enhancements ->Project Management
    Specify Project name in the enhancement text box
    Click on Create icon on the application toolbar.
    Enter description for the project and save it
    Click on Enhancement Assignment button on the application toolbar
    Give Exit  and save it
    Go to Components on the application toolbar
    Double Click on MENUS001
    Write function text which we want to add to menu item and save it with an request      number
    Double Click on Exit and write code there to display menu item in the screen
    Activate the include program and finally activate the project.
    Please reward points if helpful.

  • Add button to unused space in JTableHeader

    I have modified my JTable so that I can have multiple rows of column headers. I did this by extending BasicTableHeaderUI. In my particular instance, the first column of the table will never have more than one row in the header (unlike other implementations of multi-row headers I have seen, my column headers don't automatically fill upwards to take up all usable space in the header). So, I have "unused" space in the header above the first column.
    I would like to put some buttons there that are relevant to the table, but so far every effort to do so has failed.
    In the SSCCE below I have created a very stripped down version of my TableHeaderUI. It doesn't contain any of the code to create multiple row headers, it just pushes down the standard column headers to create some space. I try adding a button to the rendererPane, but it doesn't show up. There is a commented out line that paints the button which does work in terms of showing the button, but that's probably not the right way to do this (and the button doesn't work anyway).
    So, why isn't the button showing up? Am I doing this the right way (i.e. adding the button within the UI)? Thanks in advance for you help.
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Enumeration;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.plaf.basic.BasicTableHeaderUI;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableColumnModel;
    public class HeaderButtonTable extends JPanel {
         public HeaderButtonTable() {
              String[] colNames = {"column 1", "column2", "column3"};
              Object[][] data = {{"a","b","c"},{"d","e","f"}};
              JTable table = new JTable(data, colNames);
              table.setPreferredScrollableViewportSize(new Dimension(400,100));
              table.setFillsViewportHeight(true);
              table.getTableHeader().setUI(new ButtonHeaderUI());
              JScrollPane scrollPane = new JScrollPane(table);
              add(scrollPane);
         public class ButtonHeaderUI extends BasicTableHeaderUI {
              public void paint(Graphics g, JComponent c) {
                   Rectangle clip = g.getClipBounds();
                   Point left = clip.getLocation();
                   Point right = new Point( clip.x + clip.width - 1, clip.y );
                   TableColumnModel cm = header.getColumnModel();
                   int cMin = header.columnAtPoint(left);
                   int cMax = header.columnAtPoint(right);
                   if (cMin == -1) cMin =  0;
                   if (cMax == -1) cMax = cm.getColumnCount()-1;
                   TableColumn draggedColumn = header.getDraggedColumn();
                   int columnWidth;
                   Rectangle cellRect = header.getHeaderRect(cMin);
                   TableColumn aColumn;
                   for(int column = cMin; column <= cMax ; column++) {
                        aColumn = cm.getColumn(column);
                        columnWidth = aColumn.getWidth();
                        cellRect.width = columnWidth;
                        if (aColumn != draggedColumn) {
                             paintCell(g, cellRect, column);
                        cellRect.x += columnWidth;
                  JButton test = new JButton("test");
                  test.addActionListener(new ActionListener(){
                        public void actionPerformed(ActionEvent e) {
                             System.out.println("pressed");
                  test.setBounds(2, 2, 60, 15);
                  rendererPane.add(test);  //why isn't this showing up?
                  //this line will display the button, but button doesn't work
    //          rendererPane.paintComponent(g, test, header, 2, 2, 60, 15);
              private Component getHeaderRenderer(int columnIndex) {
                   TableColumn aColumn = header.getColumnModel().getColumn(columnIndex);
                   TableCellRenderer renderer = aColumn.getHeaderRenderer();
                   if (renderer == null) renderer = header.getDefaultRenderer();
                   return renderer.getTableCellRendererComponent(header.getTable(),
                        aColumn.getHeaderValue(), false, false, -1, columnIndex);
              private void paintCell(Graphics g, Rectangle cellRect, int columnIndex) {
                   Component component = getHeaderRenderer(columnIndex);
                   rendererPane.paintComponent(g, component, header,
                        cellRect.x, cellRect.y + 30, cellRect.width,
                        cellRect.height - 30, true);
              public Dimension getPreferredSize(JComponent c) {
                   long width = 0;
                   Enumeration enumeration = header.getColumnModel().getColumns();
                   while (enumeration.hasMoreElements()) {
                        TableColumn aColumn = (TableColumn)enumeration.nextElement();
                        width = width + aColumn.getPreferredWidth();
                   return new Dimension((int)width, 60);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add(new HeaderButtonTable());
              frame.pack();
              frame.setVisible(true);
    }

    Yes, I've seen similar links/posts about how to activate buttons in the header of a table, but those do it by adding listeners to the renderer. My buttons would be directly in the CellRendererPane that is the container for the table header. I would have thought that by putting the button directly in the Cell RendererPane that it would have nothing to do with the rest of the table header. CellRendererPane extends Container. Is it not possible to put a JButton in a Container? JFrame extends indirectly from Container and you can add buttons to that.
    Edited by: Bob.B on Oct 28, 2009 10:57 PM

  • Add button to SNC screen

    Dear Experts,
    I have a requirement in SNC system.
    Requirement: Add a new button on screen Due List for Purchasing Documents, if we click on the button it has to open a new screen where we should have a file browse filed, browse and upload buttons to upload ASN details from presentation server.
    am using,
    WebDynpro Component: /SCF/UIWD
    WebDynpro Application: /scf/snc_s
    I have used following details to add button and acheived to add button alone, but how can I assing action/event, where can I create the screen, where can I write code and how can I assign this to button action.
    ApplicationID: ICH
    ScreenID: DUELIST
    ComponentID: DLRLTLR1
    Please help me out, almost from 2 weeks am doing R and D on it.
    Thanks in advance
    Pallu

    Thanks for your inputs Sai, but here the screen design is not static as normal webdynpro, normally we add a button and in OnAction property we create new action and we write code for the corresponding method, but in my case (expecially in SNC) everything I need to do with configurations, the transaction for screeen configuraitons is /N/SCF/SCREENCFG, and the BADI which I used for adding button is /SCF/UIMDL_APPCUST, you can find these details only in SNC (Supply Network and Collaboration) system.
    Please try with inputs again.
    Thanks again in advance!
    Pallu!!

  • I just installed itunes 11.1.5.5.  Now the format in Itunes is changed.  when I am trying to add music to my iphone, there is no longer an add button under the Iphone device.  Why did they have to change this?  Can anyone help, Im tryiong to add music.

    How do you add musci to the Iphone?  I just installed itunes 11.1.5.5.  Now the format in Itunes is changed.  when I am trying to add music to my iphone, there is no longer an add button under the Iphone device.  Why did they have to change this?  Can anyone help, Im tryiong to add music.

    Correct.  When you purchase devices, they would have stated the OS they needed to work, on the box.  This can be overlooked, but it is very important to check when purchasing. 
    You current OS, is so old, that they technology build into the new devices, is not something your OS understands.  It didn't exist when your OS was created, and therefore you need to upgrade the OS to work with the newer technology of these devices.
    10.6 software is not downloadable.  You must purchase a DVD disc.  You can order it from the on-line apple store
    - http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard.

  • Add Button Column in IR

    Hi,
    I have created an Interactive report on a table. I want to add two buttons in each row: Accept and Reject, so that i can change the status(db column) of the corresponding record on button action.
    How can I do so?

    Hi poojaC,
    Try the below code,
    i am giving the idea to add buttons..may be this is not the way you want.
    step1
    -- put this code in report region
    select "ROWID",
    '<input type="button" value="Accept"  onclick="func('||EMPNO||')">'  as "Accept",
    '<input type="button" value="Reject"  onclick="func('||EMPNO||')">'  as "Reject",
    "EMPNO",
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO"
    from "#OWNER#"."EMP"
    -- edit the Accept and reject column and change Display type to "standard report column"Step 2 : create one function in page header like
    -- here you can execute your process on button action
    <script>
    function func(id)
    alert(id);
    </script>Hope this will give you some idea.
    Regards,
    Jitendra

  • Add button inactive in Match record step in Import manager

    Hello,
    In the Main table, I want to see the country data as 'US; United States' in country field.
    I have made both 'country code' and 'country description' as display fields in the country flat lookup table.
    When I load country code and country description from import manager from an excel file, the 'Add' button in Match records step is inactive for both the fields.
    How can I do the matching in import manager without sacrificing my requirement of showing country as 'US; United States' in main table ?
    Thanks,

    answer to this question is already available in forum.

  • How can I add buttons that do different things to each row of an rpt result

    Hi there,
    I'm trying to figure out how to add buttons to each row of a report. Here is the scenario:
    report query returns a set of data that needs to be "approved". The options are "Append", "Replace", or "Reject" (I want to make the results look like so:)
    Person1 today blah, blah blah... Append button Replace button Reject button
    Person2 today blah, blah, blah... Append button Replace button Reject button
    PersonA today something, blah... Append button Replace button Reject button
    and so on.
    I'd like to set up the page so that there is an append, replace, reject button for each row returned by the report. So when the "Approver" clicks on the append button, something happens for that row, etc. How does one do this? So far I can only get the buttons to show up in the region. I also thought it might be possible to somehow turn the append, replace, reject text into links that called a plsql proceedure that would handle the action, but I'm not having any success with that idea either.
    Edited by: user10361829 on Sep 29, 2009 12:10 PM

    What I've done is make my report query as follows:
    select field_a, field_b, field_c, 'Append', 'Replace', 'Reject'
    from table_x
    where field y = :PX_ID
    That gives me the words (append, replace, reject) in the report. Then I go to the report attributes section and make a link out of the columns (append, replace, reject) so far, so good.
    Next question is how to make clicking on those links activate an update action on tableN. In the column_link section there is a box marked "Request" that looks like it might be relevant because Request is a term connected to buttons, but I've no idea how to use it. Or, can one use the tabluar form element section of the report attributes page to connect the Append (pseudo column) to an action? I've looked at your example (Sam) with the delete button, but what I really need to see is the Apex menu that sets it up because there are so many levels in the interface it is not intuitive (at least for me). I know exactly what I want it to look like but I'm missing the crucial step to get there... Thanks for your help so far.
    Column link section is described below :
    Column Link     Top
    Link Text      flashlight          
         [*Append*][Icon 1][Icon 2][Icon 3][Icon 4][Icon 5]
    Link Attributes      
    Target: *"Page in this application"*     Page: *10*     
    Reset Pagination
    Request Clear Cache      
    Name     Value
    Item 1      Px_page_item flashlight *#????#*          flashlight
    Item 2      flashlight          flashlight
    Item 3      flashlight          flashlight
    URL      
    Page Checksum

  • Can we add button in query region  along with go and clear

    Hi Friends,
    i have a requirement as below steps-
    1)i have developed search pgae by using query regiion
    2) in pgae,first we have search items,go and clear(submit buttons), table region.
    3)here go and clear buttons came automatically.
    4) i can able to add button in front of the page and end of the page.
    4) my requirement is i need to add one more button along with go and clear(here go and clear button are in between search items and table region) .
    5)i am not able to add button along with go and clear.
    Can any one know how to do this--
    Thanks in Advance
    vamshi

    Hi Vamshi,
    You can not create extra buttons in Standard Query region.
    Alternatively you can create your custom region for the search and there you can add a button. If you don't need advanced region, you can create the custom region in place of standard one.
    Anoop

  • Javascript code to enable an ADD button to create duplicate tables and pages for multiple entries

    I am using Adobe XI Pro. I have created a multi-page fillable pdf questionnaire that I want to make interactive to the user. Within each page, I have multiple tables that can have ADD buttons to duplicate the table if the client wants more than one test. I would like this table to insert directly below the previous table and they may be able to add upto 5 of these table.
    I also have a couple pages in the questionnaire that require duplication for multiple samples. Eg. One page per sample, and I may have upto 10 samples. I would like the javascript to have an ADD button and then add each page behind the previous related sheet (Original and duplicates together)
    I am not a javascript coder so I would need some examples and a walk through. I did take some developer courses in engineering but it has been almost two decades
    I have search on several forums and cannot find a good resource so I appreciate the help.
    Sincerely
    Tara

    Some of what you want to do can be done using template features and a bit of JavaScript, but if your users will be using Reader, version 11 will be required. You can dynamically add new pages, but adding new tables to existing pages with reflow of content that comes after is not possible with a form created in Acrobat. If you have access to Adobe's LiveCycle Designer form creation software, you can create what's known as a dynamic XFA form that can do all of what you want. You can ask in the LiveCycle Designer forum for more information: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es?view=discussions

Maybe you are looking for

  • Nokia N95 8GB takes ages refreshing even for one t...

    Hi All. I have had this REALLY frustrating problem... Every time i add a track to my phone, then i refresh it takes AGES to update the library. Does anyone know how to fix this? Nokia N97 Mini V: 10.0.020 : 14/10/09 RM-555 Old: N95 8GB : V 20.0.016 :

  • H323 inspect in a single class with match criteria

    Hi, I trying to apply this to make sure only inspect h323 traffic in a single host (that's a Video Conference host), but don't works. Only works when I applied the inspect in the inspection_default class. Here is the config: access-list 100 extended

  • Difference between concat and concatenation operator ||

    Hi, Most of us may think there is no difference between CONCAT and || By looking in the doc, I can read This function is equivalent to the concatenation operator (||). The function is useful when there are spaces in the values to be concatenated. The

  • Reporting who could access a system

    Hi I need to be able to generate a report on which users could have accessed a given system in a given timeframe (ie. the last 2 weeks), I have been through the menus and I can't seem to find any report-type that fits this requirement. Is it possible

  • How to convert a string data to a 1 d array

    Dear All, I am wondering if somebody help me. In the attached fle i have my program (in labview 8.6) which read temperature data and updates temperature during the time. I want to use the updated temperature in a calculation.  How can i get the new t