3 columns in table, but just 2 field in edit page = NullpointerException

Hi!
I have a h:dataTable with 3 columns (modul_id, modul_name, synonym_name), but i want to edit just 2 fields in the edit page: modul_name, synonym_name.
I must call an UPDATE sql statement, when the user click to submit and I need the value of modul_id as well.
UPDATE nxt_moduls SET modul_name=?,synonym_name=? WHERE modul_id=?But when I want to set the value of modul_id for PreparedStatement, I get a NullpointerException, the modul_id is null.
There are just two inputText on the edit.jsp one for modul_name and one for synonym_name. I think, that I must return the value of modul_id somwhow as well. When I put a third inputText for modul_id, then it worked, but I don't want to allow to edit this.
This is my edit.jsp:
<html>
     <body>
          <f:view>
               <h:form>
                    <h:panelGrid columns="2">
                         <h:outputText value="Module name"/>
                         <h:inputText id="modul_name" value="#{nxtModulsBean.itemNxtModuls.modul_name}"/>
                         <h:outputText value="Synonym name"/>
                         <h:inputText id="synonym_name" value="#{nxtModulsBean.itemNxtModuls.synonym_name}"/>
                    </h:panelGrid>
                    <h:commandButton action="#{nxtModulsBean.saveItemNxtModuls}" value="Save"/>
               </h:form>
          </f:view>
     </body>
</html>and this is the java code for save operation:
     void updateNxtModulsInDB() throws SQLException, NamingException {
          String sql = new String("UPDATE nxt_moduls SET modul_name=?,synonym_name=? WHERE modul_id=?");
          java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
          PreStat.setString(1,itemNxtModuls.getModul_name());
          PreStat.setString(2,itemNxtModuls.getSynonym_name());
          PreStat.setLong(3,itemNxtModuls.getModul_id());
          PreStat.execute();
          PreStat.close();
          ownGetConnection().commit();
     }here stops: PreStat.setLong(3,itemNxtModuls.getModul_id());
Please help me!
Thanks!

I've solved the problem: the <managed-bean-scope> tag of bean was defined in the faces-config.xml as 'request' and not 'session'. When I set to 'session', it functioned perfectly...

Similar Messages

  • When I click on a link in Thunderbird, Firefox 4 starts, but just shows the home page, not the page I clicked for

    When I click on a link in an email in Thunderbird, Firefox 4 starts, but only shows the home page(s) not the page of the link

    I think i've found how to fix this issue when it appears. Don't know what caused it to happen, but that's up to the devs.
    In Thunderbird, you need to re-register http and https to make them open with Firefox (or open well with firefox in this case).
    How to to this?
    Well... open the about:config in thunderbird. You can achieve this by clicking configuration-editor in the advanced tab.
    search for the strings: network.protocol-handler.warn-external.https and network.protocol-handler.warn-external.http. Set both to "true".
    The next time you click on a link from within Thunderbird, it will ask you to set wich program you'd like to open it with.
    Be Aware now!!! Firefox may already be listed in there, but don't pick that one. instead... choose to browse for the app and point to the binairy/exe of firefox.
    (for example: /usr/bin/firefox or c:/program files/mozilla/firefox.)
    You will notice that firefox now does open up with the page you just clicked on.
    If it doesn't right away... just restart thunderbird and check again.
    Please respond if this works for you too on all platforms. It's more interesting to know it does than if it's not.
    Greetz,
    Kenny

  • Servlet seem to execute but just return a blank page

    I have two servlets that I am calling from a jsp.
    One servlet executes fine, the other seems to execute but comes back with a "done" message in the messagebar and no page whatsoever.
    I checked the web.xml. It is correct.
    Anyone have any ideas?

    Try "view source" in the web browser. Sometimes certain browsers don't display anything if you have e.g. a missing </table> tag.
    Check the web server logs - access log and error log. Do they record a succesful execution? Which server do you use -- e.g. Netscape / iPlanet / Sun ONE / whateverthehellit'stoday logs the number of returned bytes in the access log.
    Use a TCP/IP trace program (Unix -> tcpdump, Windows -> ethereal) to see what the web server returns.
    Or use telnet:
    telnet localhost 80
    GET /the/servlet.html HTTP/1.0
    Host: foo.bar.com
    -- the Host header may or may not be required by the web server.

  • STATUS Field isBlank on AP_INVOICES_INTERFACE table but REQUEST_ID is there

    Hi All,
    After running Payables Open Interface Import, I see Request_id is populated on AP_INVOICES_INTERFACE Table but STATUS field is still blank and i don't see any error details on AP_INTERFACE_REJECTIONS_TABLE as well for these invoices and ofcourse not in Base tables. I am under the impressions that, when ever This Standard Import is run, it will update Request_ID along with STATUS field to either PROCESSED or REJECTED. But in my case only request_id populated but not STATUS. Does anyone had faced this? and what could be the case?
    Thank you.

    Hello,
    Does the report output show whether records have been processed?
    Else check whether ORG_ID and SOURCE (Note: the source name must be setup in Payables lookups setup) are correctly populated in AP_INVOICES_INTERFACE.
    Vik

  • Table Extension custom fields in SRM 7.0

    Hi SRM Experts,
    I'm struggling with adding data into a table extension that I created on Confirmations. (SRM 7.0)
    I followed the suggested steps to add a table extension:
    1) SPRO->SAP SRM->SRM Server->Cross-Application Basic Settings->Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data -> Define Customer Table Extensions on Item Level.
    2) I created the two structures (INCL_EEW_PD_HEADER_CST and INCL_EEW_PD_HEADER_CST_CONF) and added the custom fields.
    3) I set the visibility of the table extension and created the entries with TICUS.
    4) I configured control of fields of table extensions.
    5) I configured control of actions for adding a row (ADD_TICUS)
    6) I added the custom fields in SM30 to table /SAPSRM/V_MDFSBC_DEFAULT
    The table extension is visible on the Confirmation screen but the custom fields are not editable and I'm not able to fill in data into them.
    When I click on the add row button, a row is added to the table but the fields are still uneditable.
    I need to populate this table extension with some data before it gets displayed to the user, and then the user needs to complete the empty custom fields.
    I tried to add data to BBP_PDICF, but it still does not appear in the table extension.
    Please can someone give me some guidence?
    Regards,
    Andrew

    Hey Andrew,
    Please let me know how you rectified the issue?
    Are these the steps to be followed? Even I need to add  a table in the header level of PO document.
    Please share your experience.
    Kind Regards,
    Gayathri

  • Displaying Link UI element in a column of table.

    Hi All
    I am displaying Name of all my Partner's as Link to action UI Element in a column of table. If user clicks on a Link, he should be able to navigate to a Portal.
    I am able to display all my partner's as Link in a column of table but my problem here is how program will understand that which Link user has clicked here.
    Please help.
    Thanks in anticipation.
    Regards
    Nikhilesh Vyas

    You can pass the particular Partner which you want to display as part of the handle .

  • Blank page after clicking Edit Page

    Have just created a new Contribute connection to a new
    website, without any problem. The webpage appears in the Contribute
    window, but when I click 'edit page', the window goes blank. Does
    anyone have any idea what this could be causing this?
    Thanks.

    Hi CoopCookie,
    You have a couple of errors in your table structure (f.i. an
    extra td tag in the class="dataTable" table and the main table is
    closed twice from what I could see quickly). I mean there are tags
    in the wrong places in your table structure. When you correct this
    your page should display fine fine, even in Contribute. Browsers
    are more forgiving to errors then Contribute, so that's why the
    page probably looks fine on the internet.

  • Editable columns in table don't select the whole row

    I am new to the forums and posted this to the wrong one the first time and I am not sure how to move it so I am just reposting it here. Sorry.
    I have a table with 7 columns. 2 of them are non-editable and the rest are either radio buttons or check boxes. When I click on the 2 non-editable columns, the whole row gets highlighted. When I click on any of the editable columns, the button is selected, but the whole row is not highlighted. If I made the editable columns non-editable then the whole row gets highlighted when the column is clicked on. I want the button selected and the row highlighted when the editable columns are clicked on. Here is some relevant code:
    class PackageTable extends JPanel
        public PackageTable(String pathfile)
           fieldsok = true;
           errorfield = new JTextField(250);
           startfield = new JTextField(250);
           stopfield = new JTextField(250);
           tableModel = new MyTableModel();
           table = new JTable(tableModel)
             public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex)
               Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
               if (vColIndex == 0)
                 c.setBackground(new Color(238,238,238));
               else
                 c.setBackground(new Color(255,255,255));
               boolean selected = isRowSelected(rowIndex);
               if (selected)
                 c.setBackground(Color.yellow);
               return c;
           table.setPreferredScrollableViewportSize(new Dimension(300, 1000));
           table.setRowSelectionAllowed(true);
           table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
           TableColumn column = null;
           for (int col = 0; col < 7; col++)
              column = table.getColumnModel().getColumn(col);
              if (col == 0)
                column.setPreferredWidth(30);
              else if (col == 1)
                column.setPreferredWidth(300);
              else if (col == 2)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 3)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 4)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if ((col == 5) || (col == 6))
                column.setPreferredWidth(10);
      class RadioButtonRenderer implements TableCellRenderer
        public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column)
          if (isSelected)
            setForeground(table.getSelectionForeground());
            setBackground(table.getSelectionBackground());
          else
            setForeground(table.getForeground());
            setBackground(table.getBackground());
          if (value == null)
            return null;
          return (Component) value;
      class RadioButtonEditor extends DefaultCellEditor implements ItemListener
        private JRadioButton button;
        public RadioButtonEditor(JCheckBox checkBox)
          super(checkBox);
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          if (value == null)
            return null;
          button = (JRadioButton) value;
          button.addItemListener(this);
          return (Component) value;
        public void addCellEditorListener(CellEditorListener listener)
          listenerList.add(CellEditorListener.class, listener);
        public void removeCellEditorListener(CellEditorListener listener)
          listenerList.remove(CellEditorListener.class, listener);
        protected void fireEditingStopped()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingStopped(changeEvent);
        protected void fireEditingCanceled()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingCanceled(changeEvent);
        public void cancelCellEditing()
          fireEditingCanceled();
        public boolean stopCellEditing()
          fireEditingStopped();
          return true;
        public Object getCellEditorValue()
          return button;
        public boolean isCellEditable(EventObject event)
          return true;
        public boolean shouldSelectCell(EventObject event)
          return true;
        public void itemStateChanged(ItemEvent e)
          super.fireEditingStopped();
      class MyTableModel extends AbstractTableModel
        String[] columnNames = {"","Configuration Files","Sorts","Plots","Both","Print","Alerts"};
        public MyTableModel() { }
        public int getColumnCount()
          return columnNames.length;
        public int getRowCount()
          return totaldata.size();
        public String getColumnName(int col)
          return columnNames[col];
        public Object getValueAt(int row,int col)
          return(((Vector)totaldata.get(row)).get(col));
        public Class getColumnClass(int c)
          return getValueAt(0, c).getClass();
        public boolean isCellEditable(int row, int col)
          if ((col == 0) || (col == 1))
            return false;
          else
            return true;
        public void setValueAt(Object value, int row, int col)
          Vector v1 = new Vector();
          v1 = (Vector)totaldata.get(row);
          v1.set(col,value);
          if (col == 1)
             if (((String)value).indexOf("/") == -1)
               JOptionPane.showMessageDialog(pdsframe, "The CONFIG file that was entered on line " + (row+1) + " is not valid.");
               v1.set(col,(Object)"");
               return;
          fireTableCellUpdated(row, col);
          fireTableChanged(new TableModelEvent(this));
        public void addNewRow(Vector newRow)
          totaldata.add(newRow);
          fireTableRowsInserted(totaldata.size()-1, totaldata.size()-1);
        public void deleteRow(int Row)
          totaldata.remove(Row);
          fireTableRowsDeleted(totaldata.size()-1, totaldata.size()-1);
      }I have searched forever to try to find how to do this and I can't seem to get it right. If all the radiobuttons in one column are selected and I click on one of those rows in one of those columns, then the whole row is highlighted.
    Can anyone help me out?
    Thanks.
    esk3 {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Sorry. I didn't know that I had to provide something that could be executed. I am going to try to put enough in so that it can. This is part of a larger program and this frame is called from another frame. Here it is. I hope it works.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Dimension.*;
    import java.util.*;
    import java.text.*;
    // Java extension packages
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import javax.swing.JTable.*;
    import javax.swing.JScrollPane.*;
      private JFrame     pdsframe;
      private String printchecked;
      private String alertschecked;
      private JTextField cb;
      private JTextField pf;
      private JScrollPane scrollpane;
      private JTable table;
      private MyTableModel tableModel;
      private Vector totaldata;
      private JLabel startlabel;
      private JLabel stoplabel;
      private JTextField startfield;
      private JTextField stopfield;
      private JTextField errorfield;
      private boolean fieldsok;
      class MyTableModel extends DefaultTableModel
        String[] columnNames = {"","Configuration Files","Sorts","Plots","Both","Print","Alerts"};
        public MyTableModel() { }
        public int getColumnCount()
          return columnNames.length;
        public int getRowCount()
          return totaldata.size();
        public String getColumnName(int col)
          return columnNames[col];
        public Object getValueAt(int row,int col)
          return(((Vector)totaldata.get(row)).get(col));
        public Class getColumnClass(int c)
          return getValueAt(0, c).getClass();
        public boolean isCellEditable(int row, int col)
          if ((col == 0) || (col == 1))
            return false;
          else
            return true;
        public void setValueAt(Object value, int row, int col)
          Vector v1 = new Vector();
          v1 = (Vector)totaldata.get(row);
          v1.set(col,value);
          if (col == 1)
             if (((String)value).indexOf("/") == -1)
               JOptionPane.showMessageDialog(pdsframe, "The CONFIG file that was entered on line " + (row+1) + " is not valid.");
               v1.set(col,(Object)"");
               return;
          fireTableCellUpdated(row, col);
          fireTableChanged(new TableModelEvent(this));
        public void addNewRow(Vector newRow)
          totaldata.add(newRow);
          fireTableRowsInserted(totaldata.size()-1, totaldata.size()-1);
        public void deleteRow(int Row)
          totaldata.remove(Row);
          fireTableRowsDeleted(totaldata.size()-1, totaldata.size()-1);
      class RadioButtonRenderer implements TableCellRenderer
        public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column)
          if (isSelected)
            setForeground(table.getSelectionForeground());
            setBackground(table.getSelectionBackground());
          else
            setForeground(table.getForeground());
            setBackground(table.getBackground());
          if (value == null)
            return null;
          return (Component) value;
      class RadioButtonEditor extends DefaultCellEditor implements ItemListener
        private JRadioButton button;
        public RadioButtonEditor(JCheckBox checkBox)
          super(checkBox);
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          if (value == null)
            return null;
          button = (JRadioButton) value;
          button.addItemListener(this);
          return (Component) value;
        public void addCellEditorListener(CellEditorListener listener)
          listenerList.add(CellEditorListener.class, listener);
        public void removeCellEditorListener(CellEditorListener listener)
          listenerList.remove(CellEditorListener.class, listener);
        protected void fireEditingStopped()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingStopped(changeEvent);
        protected void fireEditingCanceled()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingCanceled(changeEvent);
          }      fireEditingStopped();
          return true;
        public Object getCellEditorValue()
          return button;
        public boolean isCellEditable(EventObject event)
          return true;
        public boolean shouldSelectCell(EventObject event)
          return true;
        public void itemStateChanged(ItemEvent e)
          super.fireEditingStopped();
      class PackageTable extends JPanel
        public PackageTable(String pathfile)
           fieldsok = true;
           errorfield = new JTextField(250);
           startfield = new JTextField(250);
           stopfield = new JTextField(250);
           tableModel = new MyTableModel();
           table = new JTable(tableModel)
             public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex)
               Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
               if (vColIndex == 0)
                 c.setBackground(new Color(238,238,238));
               else
                 c.setBackground(new Color(255,255,255));
               boolean selected = isRowSelected(rowIndex);
               if (selected)
                 c.setBackground(Color.yellow);
               return c;
           table.setPreferredScrollableViewportSize(new Dimension(300, 1000));
           table.setRowSelectionAllowed(true);
           table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
           TableColumn column = null;
           for (int col = 0; col < 7; col++)
              column = table.getColumnModel().getColumn(col);
              if (col == 0)
                column.setPreferredWidth(30);
              else if (col == 1)
                column.setPreferredWidth(300);
              else if (col == 2)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 3)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 4)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if ((col == 5) || (col == 6))
                column.setPreferredWidth(10);
          JScrollPane scrollPane = new JScrollPane(table);
          scrollPane.setBounds(20,180,1000,300);
          JLabel pflabel = new JLabel("Package File: ");
          pf = new JTextField(pathfile);
          cb = new JTextField(250);
          startlabel = new JLabel("START_TIME = ");
          stoplabel = new JLabel("STOP_TIME = ");
          JLabel typelabel = new JLabel("TYPE OF FORMAT TO OUTPUT");
          JButton savebutton = new JButton("Save and Run");
          JButton jbtAddRow = new JButton("Add New Row");
          JButton jbtUpdateRow = new JButton("Update Row");
          JButton jbtDeleteRow = new JButton("Delete Row");
          JButton cancelbutton = new JButton("Cancel");
          cb.setEditable(false);
          cb.setBounds(130,230,100,30);
          cb.setEnabled(false);
          cb.setVisible(false);
          pflabel.setBounds(20,20,100,30);
          pf.setEditable(false);
          pf.setBounds(130,20,300,30);
          startlabel.setBounds(20,90,100,30);
          startfield.setEditable(false);
          startfield.setBackground(new Color(255,255,255));
          startfield.setBounds(130,90,300,30);
          stoplabel.setBounds(20,120,100,30);
          stopfield.setEditable(false);
          stopfield.setBackground(new Color(255,255,255));
          stopfield.setBounds(130,120,300,30);
          typelabel.setBounds(525,150,400,30);
          savebutton.setBounds(130,500,130,30);
          jbtAddRow.setBounds(280,500,130,30);
          jbtUpdateRow.setBounds(430,500,130,30);
          jbtDeleteRow.setBounds(580,500,130,30);
          cancelbutton.setBounds(730,500,130,30);
          add(scrollPane);
          add(pflabel);
          add(pf);
          add(startlabel);
          add(stoplabel);
          add(startfield);
          add(stopfield);
          add(typelabel);
          add(jbtAddRow);
          add(jbtUpdateRow);
          add(jbtDeleteRow);
          add(savebutton);
          add(cancelbutton);
      public void createAndShowGUI() {
        //Create and set up the window.
        pdsframe = new JFrame("PDS Batch Parameters");
        pdsframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        totaldata = new Vector();
        //Create and set up the content pane.
        PackageTable newContentPane = new PackageTable(pathfile);
        newContentPane.setOpaque(true); //content panes must be opaque
        pdsframe.setContentPane(newContentPane);
        //Display the window.
        pdsframe.setLayout(null);
        pdsframe.setSize(1100,700);
        pdsframe.setLocationRelativeTo(null);
        pdsframe.setFocusableWindowState(true);
        pdsframe.setVisible(true);
        pdsframe.show();
        pdsframe.setAlwaysOnTop(true);
        pdsframe.requestFocus();
    public void main()
        Toolkit.getDefaultToolkit().beep();
        createAndShowGUI();
    }Does this help? I hope it works. These are the relevant parts. Thanks.
    esk3

  • In WD application making one WD-table field un-editable.

    Hi,
    I have changed one WD application and I have added one table(Layout data: Matrix head data),
    in which I made one column as editable"Bind to property of the selected attribute-Enabled". My requirement
    is to make for one particular row - make that column non-editable.
    Please let me know if anyone come across this kind of requirement?
    I wrote a code in method for the element(table): WDDOMODIFYVIEW
    *    lo_el_nd_partner = lo_nd_nd_partner->get_element( index = sy-tabix ).
    *    lo_el_nd_partner->set_attribute_property(
    *    attribute_name = 'GPARN'
    *    property = 3  "Property 3 for read-only
    *    value    = 'X'). "Disable vendor number editing for VN row
    But still it is editable.
    Best regards,
    Anilkumar.

    Hi Anil,
    As you are having a context attribute ZGPARN_READONLY to make the columne GPARN as read only based on the value inside the table.
    You just need to bind the READONLY property of GPARN to context attribute ZGPARN_READONLY as below
    Now, if you pass value X to attribute, then the particular cell will be made as read only
    "Read table data  from context node  into lt_nd_parnter.
    loop at lt_nd_partner assigning <ls_partner> where parvw = 'VN'.
         <ls_partner>-ZGPARN_READONLY = abap_true.
    endloop.
    " bind the table to context node
         lo_node->bind_table( new_items = lt_nd_partner ).
    Hope this helps you.
    Regards,
    Rama

  • Making field input editable after giving error msg from table event 01

    Hi All,
    I have a requirement of giving error msg and making that row or the particular field input editable by writing code in table event 01 i.e before saving any record in a z-table i have to chk some condition for a column value and if that condition fails then i have to give error msg and make that column input editable.
    I have created a routine for event 01 and written the code to give error msg. But my problem is that column is not becoming input editable. Could you pls tell me how can i make that field editable?
    Thanks in advance.

    Hi Piyali,
    Use SET PARAMETER & GET PARAMETER ID  .
    You will get it.
    Best Regards,
    Pravin

  • Make Non-editable Column in Table Control of ME21N and ME22N

    Hi Experts,
    I was trying to look for a solution to make the columns for field MEPO1320-SLFDT(Stat Deliv. Date), MEPO1320-EEIND (Deliv. Date) and MEPO1211-NETPR (Net Price) from transaction ME21N and ME22N to be non-editable ONLY when Qty Received (MEPO1320-WEMNG) > 0.
    I'd found that the modify screen codes were located at Class CL_TABLE_VIEW_MM, Method MODIFY_SCREEN_TC_LINE but there were no enhancement spots available to add my code. Is there any other method i can use to make those fields non-editable?
    Thanks in advance!
    Cheers,
    Cheng
    Edited by: Cheng Mei Tan on Jun 4, 2009 9:31 AM

    Hi Cheng,
    I think you can use this BAdi: ME_PROCESS_PO_CUST - Enhance Processing of Enjoy Purchase Order.
    Use the method PROCESS_ITEM to control the fields at the item level.
    I think is not possible to make the fields non-editable, however, you can put an error message whenever your condition is verified, and the user won't be able to change the fields.
    Cheers,
    Pedro

  • How can anyone add to a SharePoint list but only some can edit all fields?

    My office has a list on our SharePoint for product requests. We were trying to make it so that the "+Add Item" link was available to all who want to request a map but only specific fields such as Name or Description would be editable on their
    end. Once the item is in the system, the SharePoint admins in our office could update things like Status or Analyst. However, after talking to the individual in charge of our SharePoint permissions told us that we cannot set this basic ability to "everybody"
    and instead need to create a special group with limited permissions. Unforunately we have high-turnover between our office and other locations and see this causing a problem in the near future. Is there a work around such as creating a web app or form that
    will push the necessary data into the SharePoint list or maybe just send it via email to designated recipients in our office to process it?

    I do not see any simple solutions here.  You have various options, each with different limitations and each will require some effort to implement.  Mix and match as best meets your needs:
    Create a standard list as usual*. In the lists's Advanced settings, in the Item-Level Permissions group, select the options Read all items and Create items and edit items that were created by the user.  This approach lets users create their own items
    and edit them, and they can still view other's, but they cannot edit other's.  Note: some list templates do not provide the Item-Level Permissions group of settings.
    Create a custom permissions level: copy it from Contribute.  Remove all of the Edit and Delete list permissions.  This approach lets your users create new and view existing entries, but not delete or edit them.
    Configure Incoming Email, and email-enable the target list.  You can configure the list to accept email according to the permissions that person has with respect to the list.  Thus, for example, a person with Contribute permission level would
    be able to send email to the list but a person with Read permission level would not.
    Create the list.  This will also create default New, Edit and View forms.  Customize the New form in SharePoint Designer 2013 so as not to display the fields you do not wish the user to edit.
    Create new site fields and content types: create one content type that displays only a few of these new fields and the other that displays all of them.  Add these to the list.  Configure a custom content type as the default for the list that displays
    only a few fields.  Users will see this content type when they create a new entry.  Edit the New list form to display only this content type.  Edit the View list form to display only this content type.
    References
    Configure custom permissions in SharePoint 2013
    Configure incoming email for a SharePoint 2013 farm.
    Create a custom list form using SharePoint Designer
    Create or customize a site content type

  • On f4 help , want to update some other fields in same column in table

    Hi All,
    I am using table for displaying multiple line-items, but my requirements is that on F4 help in  the first field of the table, i need to fill the other two fields in the same column based on the selection made.
    Please help me out and reply me if you need any further specification.
    Thanks in Advance
    Regards,
    Gopal

    Hi Gopal,
    Create elementary search help in SE11 with your search help parameter as the table fields. select the same data type for this fields as you took  while creating your context node/attributes for table.
    I guess by using IMP/EXP parameter, if you select F4 on particular field then you will get automatically other fields value in your table row.
    Assing the new search help to your main field.
    Please try with this approach. It worked for me on my WD screen with 4-5 input fields. I am not sure 100% if this will work for table but give the try.
    Thanks,
    Chandra

  • Add a new field in custom table but not show on SM30

    I add a new field in a custom table, did Table Maintenance generator and SE93.  But that field did not show on SM30 screen.  How to make it show on the SM30?
    Thanks
    Helen

    Hi,
    I think its the Problem with TMG.
    Go to TMG screen delete the old TMG and regenerate the new TMG
    Hope it helps
    regards
    Prasanth

  • I have a lot of HD video on my hard drive that I eventually want to edit in iMovie, but just don't have the time now.  It is clogging up the computer, though.  How do I take the Hd clips off Mac for later editing?

    I have a lot of HD video on my hard drive that I eventually want to edit in iMovie, but just don't have the time now.  It is clogging up the computer, though.  How do I take the Hd clips off Mac for later editing?

    See "Storage drive" here
    Most commonly used backup methods
    Th problem with HD video is it needs a fast external interface, so you should pick a external drive that uses the fastest interface your computer has to offer.
    Performance rank fastest to slowest is
    Thunderbolt, USB3, (newer Mac's)
    Firewire 800, USB 2, Firewire 400, USB 1 (older Mac's)
    Newer Windows PC's have USB3, older one's USB 2,1.
    You need to format the drive if it comes FAT which a lot do, as FAT has a 4GB file size limit, so this won't work with large HD video files.
    So if your  going to use the drive only with a Mac, then head to Utlities > Disk Utility and format it Options: GUID Format: OS X Extended Journaled. (select the drive makers name and click Partition tab)
    If your going to use the external drive with a PC, take it to the oldest PC you have and right click and format exFAT.
    If you have a Windows XP machine and there is no exFAT, it can be downloaded for free from Microsoft.
    Drives, partitions, formatting w/Mac's + PC's

Maybe you are looking for