About row delete event

dear all,
i need to recalculate the form total after user delete row in matrix.
what is the matrix delete row event?
thanks

Hello,
Is it a B1 System form or add-on form?
How does the line is delete? via right click or button?
If the delete line function already exists, you can check the event with [SAP Business One Event Logger tool|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e]
Kind Regards, Yatsea

Similar Messages

  • Ical displays alarm for deleted event and calendar

    Ical is displaying a message alarm on my screen for about 5 deleted events. The calendar that contained the events has been removed as well.
    how can I stop the message notifications from appearing on my screen.
    Cheers,
    Noah

    figured it out

  • Deleting event in iCal 5.0.1 not syncing with Google Calendar

    When I delete an event from iCal, it does not sync with Google Calendar.  However, when I create an event in iCal, it syncs just fine with Google Calendar. Creating and deleting events from Google Calendar syncs fine with iCal.  Has anyone else experienced this problem?

    12/13/2011 - call to google tech support
    Recent support call with Google: iCal deleting events still broken.  this is big for us.  We have users that have accounts for and/or subscribe to multiple calendars, and took a while to teach them to use iCal, so web based calendars will be foreign to them (even though I like the web based).  There is no timeline in place according to Google Tech Support.  I feel like the issue is really Apple's issue, so Google is waiting on them to fix, this type of urgency(or lack of) is right up their alley.  Oh well.
    Does anyone have any suggestions on alternate calendar apps for Mac?  Specifically for google calendars?
    "Regarding the issue about not being able to delete Google Calendar events within iCal, as mentioned it is a known issue which unfortunately we don't have a time frame to offer you.
    You can visit  http://support.google.com/calendar/bin/static.py?hl=en&page=known_issues.cs for Google Calendar known issues.
    You can submit a feature request at https://www.google.com/moderator/#16/e=ba1ca which is also located at the bottom of your Control Panel as ‘Suggest a feature.’ "

  • Tabular form - Multi row delete error

    Apex 4.0.2
    We have a simple CRUD type of application on a bunch of tables built using Apex v1.6 that has, over the years, been upgraded to v4.0.2 and it is working mostly fine. It uses all out-of-the-box standard components, forms, classic reports, nothing too fancy. Recently one of the tabular forms started to misbehave, the multi-row-delete process raises a No Data Found error. The tabular form is based on a view with a INSTEAD OF trigger to handle the DML. Manually deleting the row in SQL*Plus works fine delete from mytab here pk_id = :pk_id but selecting the same row in Apex and clicking Delete raises the error.
    How does one go about troubleshooting & fixing this sort of thing? I tried re-saving the region in the Builder, exporting/importing the entire app, nothing. Running in Debug mode doesn't really provide any additional information, just that the MRD process failed. Tabular forms are the most frustrating, opaque component in Apex, wish they were easier to troubleshoot.
    Any ideas?

    Hello Vikas,
    >> How does one go about troubleshooting & fixing this sort of thing?
    By given us a bit more information :)
    • Is it a manual Tabular Form (using the ITEM API) or a wizard created one?
    • Are the Insert/Update operations work correctly? If not, what is the type of your PK column(s)?
    • If the problem is limited to the Delete operation, maybe the problem lies with the checkbox column. Are you sure that on page it is rendered as the f01 column?
    • As triggers are involved, can you save the PK that the trigger sees? Is it the expected value?
    • Are there any other processes that are fired before the DML process? If so, maybe the problem is with them. You can temporarily disable them and see if it change anything.
    >> Tabular forms are the most frustrating, opaque component in Apex, wish they were easier to troubleshoot
    Yes, I agree. However, I believe that 4.1 made some serious advancement where Tabular Form is concerned. Having simplified Tabular Form related Validations and Process should make things easier, and as a result, prone to less errors. Still, the main problem is that the type of error you are talking about is usually the result of metadata problems and these are indeed very hard to track.
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • After deleting events they reappear

    Using  MacBook Pro, running 10.6.8, I setup an event up in iCal and when editing to correct information the event was duplicated, one with the correct information one that was originally edited to correct information. Now when deleting events they disappear for about 20 seconds and then reappear.
    How can I correct this?

    I want to let others know I have resolved this issue.

  • JTable row deletion deleting valuable information  --need HELP

    Hi Experts and Java Programmers,
    I am posting the code that works 99% of the time. It basically creates a JTable and has row insertion and row deletion methods. The row insertion works fine. However, when a row N is deleted it causes the loss of data in the row N+1's cell in whichever cell the cursor is blinking. In other words, when cursor is in cell M of row N, row deletion sets the cell M of row N+1 to blank. So if the cursor is on the 2nd cell of 1st row and if 1st row is deleted, the data in the 2nd cell of 2nd row (now moved to 1st row) is lost.
    Thanks for your help.
    Murthy
    package trunkxref;
    *  Copyright 1999-2002 Matthew Robinson and Pavel Vorobiev.
    *  All Rights Reserved.
    *  ===================================================
    *  This program contains code from the book "Swing"
    *  2nd Edition by Matthew Robinson and Pavel Vorobiev
    *  http://www.spindoczine.com/sbe
    *  ===================================================
    *  The above paragraph must be included in full, unmodified
    *  and completely intact in the beginning of any source code
    *  file that references, copies or uses (in any way, shape
    *  or form) code contained in this file.
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.io.*;
    import java.text.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.net.*;
    public class trnk
    //extends JFrame
      public JTable m_table;
      public TrunkReportData m_data;
      public JLabel m_title;
      public JLabel m_title2;
      public InputStream is;
      Image imginsert, imgdel, imgup, imgdown, imgsav;
      URL jspURL;
      JApplet applet;
      public trnk ( JApplet applet,InputStream is, Image imginsert, Image imgdel, Image imgup, Image imgdown, Image imgsav, URL jspURL)
        //super ("Trunks Data");
        //setSize (600, 300);
        this.applet=applet;
        this.is=is;
        this.imginsert=imginsert;
        this.imgdel=imgdel;
        this.imgup=imgup;
        this.imgsav=imgsav;
        this.imgdown=imgdown;
        this.jspURL=jspURL;
        UIManager.put("Table.focusCellHighlightBorder",
                new LineBorder(Color.black, 0));
        m_data = new TrunkReportData (this,imgup, imgdown);
        m_title = new JLabel(m_data.getTitle(),
                    null, SwingConstants.LEFT);
        m_title2 = new JLabel("(Please make sure to hit TAB or ENTER after making changes to a cell)",
                    null, SwingConstants.LEFT);
        m_title.setFont(new Font("Helvetica",Font.PLAIN,24));
        m_title2.setFont(new Font("Helvetica",Font.PLAIN,12));
               Color bg=new Color(200,100,30);
               //setBackground(header.getBackground());
               m_title.setBackground(bg);
               m_title.setForeground(Color.white);
               m_title2.setBackground(bg);
               m_title2.setForeground(Color.yellow);
        //getContentPane().add(m_title, BorderLayout.NORTH);
        m_table = new JTable ();
         m_table.putClientProperty( "JTable.autoStartsEdit", new Boolean( false ) );
         //m_table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
        m_table = new JTable () {
              public boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) {     
                   if (e.getKeyChar()==KeyEvent.CHAR_UNDEFINED)
                        return false;     
                   return super.processKeyBinding(ks,e,condition,pressed);             }
        m_table = new JTable () {
         protected void processKeyEvent(KeyEvent e)     {     
               if ( (e.getKeyCode() == KeyEvent.VK_ENTER ||
                   e.getKeyCode() == KeyEvent.VK_TAB) &&  
                   e.getID() == KeyEvent.KEY_PRESSED ){
                        if(m_table.isEditing()) {
                             m_table.getCellEditor().stopCellEditing();
                             int row = m_table.getEditingRow();
                             int col = m_table.getEditingColumn();
                             col++; // actually check col > number of columns
                             m_table.editCellAt(row,col);
                             //m_table.transferFocus();
                        } else {
                             int col = m_table.getSelectedColumn() + 1;
                             int row = m_table.getSelectedRow();
                             m_table.clearSelection();
                             col++; // actually check col > number of columns
                             m_table.editCellAt(row,col);
                             //m_table.transferFocus();
                                //m_table.setRowSelectionInterval(row, row);
                                //m_table.setColumnSelectionInterval(column, column);               
                             //m_table.scrollRectToVisible( m_table.getCellRect(row, column, true) );          
              }     else           {               
                   super.processKeyEvent(e);           
         //m_table.setSurrendersFocusOnKeystroke(true);
         //m_table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
         m_table.addFocusListener(new FocusListener() {
              public void focusGained(FocusEvent e){
              public void focusLost(FocusEvent e){
                        if(m_table.isEditing()) {
                             m_table.getCellEditor().stopCellEditing();
        m_table.setAutoCreateColumnsFromModel (false);
        m_table.setModel (m_data);
        m_table.setSelectionMode (ListSelectionModel.SINGLE_SELECTION);
        for (int k = 0; k < m_data.getColumnCount (); k++)
         TableCellRenderer renderer = null;
         TableCellEditor editor = null;
         renderer = new TextAreaCellRenderer ();     // NEW
         editor = new TextAreaCellEditor (m_table, m_data);
         TableColumn column = new TableColumn (k,
                                   TrunkReportData.m_columns[k].m_width,
                                   renderer, editor);
         column.setHeaderRenderer(createDefaultRenderer());
         m_table.addColumn (column);
        JTableHeader header = m_table.getTableHeader ();
        header.setUpdateTableInRealTime (false);
        header.addMouseListener(new ColumnListener());
        header.setReorderingAllowed(true);
        //JScrollPane ps = new JScrollPane ();
        //ps.getViewport ().setBackground (m_table.getBackground ());
        //ps.setSize (550, 150);
        //ps.getViewport ().add (m_table);
        //getContentPane ().add (ps, BorderLayout.CENTER);
        //JToolBar tb = createToolbar ();
        //getContentPane ().add (tb, BorderLayout.NORTH);
        //JPanel p = new JPanel (new GridLayout (1, 2, 5, 5));
        //getContentPane ().add (p, BorderLayout.SOUTH);
      } //constructor trnk
      protected TableCellRenderer createDefaultRenderer() {
        DefaultTableCellRenderer label = new DefaultTableCellRenderer()
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
           if (table != null) {
             JTableHeader header = table.getTableHeader();
             if (header != null) {
               //setForeground(header.getForeground());
               setForeground(Color.white);
               Color bg=new Color(200,100,30);
               //setBackground(header.getBackground());
               setBackground(bg);
               setFont(header.getFont());
           setText((value == null) ? "" : value.toString()) ;
           setBorder(UIManager.getBorder("TableHeader.cellBorder"));
           return this;
        label.setHorizontalAlignment(JLabel.CENTER);
        return label;
      } //table cell renderer
      public JToolBar createToolbar ()
        JToolBar tb = new JToolBar ();
        tb.setFloatable (false);
               Color bg=new Color(200,100,30);
               //setBackground(header.getBackground());
               tb.setBackground(bg);
        JButton bt = new JButton (new ImageIcon (imginsert));
        //JButton bt = new JButton ("Insert");
        bt.setToolTipText ("Insert Row");
        bt.setRequestFocusEnabled (false);
        ActionListener lst = new ActionListener (){
          public void actionPerformed (ActionEvent e) {
         int nRow = m_table.getSelectedRow() + 1;
         m_data.insert (nRow);
         m_table.tableChanged (new TableModelEvent
                         (m_data, nRow, nRow, TableModelEvent.ALL_COLUMNS,
                          TableModelEvent.INSERT));
         m_table.setRowSelectionInterval (nRow, nRow);
        bt.addActionListener ((ActionListener)lst);
        tb.add (bt);
        bt = new JButton (new ImageIcon (imgdel));
        //bt = new JButton ("Delete");
        bt.setToolTipText("Delete Row");
        bt.setRequestFocusEnabled(false);
        lst = new ActionListener ()
         public void
           actionPerformed
           (ActionEvent e)
             int nRow = m_table.getSelectedRow();
              if (nRow  < 0)
               JOptionPane.showMessageDialog( null,  "Please select a row to delete",  "Error", JOptionPane.ERROR_MESSAGE);
              else
              if (JOptionPane.showConfirmDialog(null, "Do you want to delete the selected row?", "Delete a Row", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
             if (m_data.delete (nRow))
              m_table.getCellEditor().stopCellEditing();
              m_table.tableChanged
                (new TableModelEvent
                 (m_data, nRow, nRow,
                  TableModelEvent.ALL_COLUMNS,
                  TableModelEvent.DELETE));
              //m_table.clearSelection();
        bt.addActionListener(lst);
        tb.add (bt);
        bt = new JButton (new ImageIcon (imgsav));
        //bt = new JButton ("Save");
        bt.setToolTipText("Save");
        bt.setRequestFocusEnabled(false);
        lst = new ActionListener ()
         public void
           actionPerformed
           (ActionEvent e)
             m_table.tableChanged (new TableModelEvent
                          (m_data));
             //m_data.fireTableDataChanged();
             //System.out.println("beginning to write data to" + jspURL.toString());
             //code to save data to file
              //final Component top=(trnk)this.getTopLevelAncestor();
              //final Component top=(trnk)super.;
              //final Cursor lOrigCursor =(Cursor) super.getCursor();
              //final Cursor lOrigCursor = getCrsr();
              //top.setCursor( Cursor.getPredefinedCursor( Cursor.WAIT_CURSOR ) );
              setWaitCursor();
              Thread lSavThread= new Thread() {
                   public void run()
                        savefile(m_data, jspURL);
                        //top.setCursor( lOrigCursor );
                        setNormalCursor();
              lSavThread.start();
        bt.addActionListener(lst);
        tb.add (bt);
        return tb;
      } //create tool bar
      public void setWaitCursor()
              applet.getGlassPane().setVisible(false);
              applet.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
      public void setNormalCursor()
              applet.getGlassPane().setVisible(true);
              applet.getGlassPane().setCursor(Cursor.getDefaultCursor());
      public void savefile(TrunkReportData m_data, URL jspURL)
             String txt="";
             Enumeration enum=m_data.m_vector.elements();
             while(enum.hasMoreElements())
              TrunkData trnk = (TrunkData)enum.nextElement();
              txt += trnk.m_sysname + " , "
    + trnk.m_clli + " , "
    + trnk.m_tg + " , "
    + trnk.m_member.intValue() + " , "
    + trnk.m_trunk_type + " , "
    + trnk.m_lata + " , "
    + trnk.m_lata_name + " , "
    + trnk.m_prospect_server + " , "
    + trnk.m_tgroupid + " , "
    + trnk.m_ctg + " , "
    + trnk.m_augmen.intValue() + " , "
    + trnk.m_vendor + "\n";
             try {
               URLConnection jspCon=jspURL.openConnection();
               jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
               jspCon.setUseCaches(false);
               jspCon.setDoOutput(true);
               PrintStream out = new PrintStream(jspCon.getOutputStream());
               String postData= "Text=" + URLEncoder.encode(txt, "UTF-8");
               out.println(postData);
               out.flush();
               out.close();
               InputStreamReader in=new InputStreamReader(jspCon.getInputStream());
               int chr;
               while((chr=in.read()) != -1) {}
               in.close();
             } catch (Exception e2) {
               System.out.println (" exception in writing data out "
    + e2.toString());
             //System.out.println("done write data");
      // NEW
      class ColumnListener extends MouseAdapter {
        public void mouseClicked(MouseEvent e) {
          TableColumnModel colModel = m_table.getColumnModel();
          int columnModelIndex = colModel.getColumnIndexAtX(e.getX());
          int modelIndex = colModel.getColumn(columnModelIndex).getModelIndex();
          if (modelIndex < 0)
         return;
          if (m_data.m_sortCol == modelIndex)
         m_data.m_sortAsc = !m_data.m_sortAsc;
          else
         m_data.m_sortCol = modelIndex;
          for (int i=0; i < m_data.getColumnCount(); i++) {
         TableColumn column = colModel.getColumn(i);
         int index = column.getModelIndex();
         JLabel renderer = (JLabel)column.getHeaderRenderer();
         renderer.setIcon(m_data.getColumnIcon(index));
          m_table.getTableHeader().repaint();
          m_data.sortData();
          m_table.tableChanged(new TableModelEvent(m_data));
          m_table.repaint();
      } //column listener
    } //class trnk
    class TextAreaCellRenderer extends JTextArea implements TableCellRenderer
      protected static Border m_noFocusBorder    =    new
      EmptyBorder (1,           1,           1,           1);
      protected static    Border    m_focusBorder =
      UIManager.getBorder("Table.focusCellHighlightBorder");
      public
      TextAreaCellRenderer
        setEditable
          (false);
        setLineWrap
          (true);
        setWrapStyleWord
          (true);
        setBorder
          (m_noFocusBorder);
      public Component
      getTableCellRendererComponent
      (JTable table,
       Object value,
       boolean
       isSelected,
       boolean
       hasFocus,
       int nRow, int nCol)
        Color fg=new Color(255,0,0);
        //ColorData cvalue = new ColorData(value);
        setForeground(fg);
        if (value       instanceof       String)
          setText ((String) value);
        else if (value instanceof Integer)
          setText((String)value.toString());
         setBackground
          (isSelected && !hasFocus ?      table.getSelectionBackground() : table.getBackground ());
        //setForeground (isSelected && !hasFocus ?
        //      table.getSelectionForeground() : table.getForeground ());
        setFont (table.getFont ());
        setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
         causes looping and stops rendering the components surrounding
         the cells
        // Adjust row's
        // height
        //int width =
         // table.getColumnModel().getColumn(nCol).getWidth ();
        //setSize (width,
    //          1000);
        int rowHeight =     getPreferredSize().height;
        if (table.getRowHeight(nRow) <  rowHeight)
          table.setRowHeight (nRow,  rowHeight);
         //table.setRowHeight(nRow, 20);
        return this;}
      // To fix JDK bug
      public String getToolTipText (MouseEvent event)
        return null;
    } //class text area cell renderer
    // NEW
    class TextAreaCellEditor extends AbstractCellEditor implements
    TableCellEditor
      public static int CLICK_COUNT_TO_EDIT = 1;
      protected JTextArea m_textArea;
      protected JScrollPane m_scroll;
      public TextAreaCellEditor (JTable t_table, TrunkReportData t_tablemodel)
         final JTable table=t_table;
         final TrunkReportData tablemodel =t_tablemodel;
        m_textArea = new JTextArea () {
         protected void processKeyEvent(KeyEvent e)     {     
                   //if (e.getKeyChar()==KeyEvent.CHAR_UNDEFINED)
                   // return ;
               if ( (e.getKeyCode() == KeyEvent.VK_ENTER ||
                   e.getKeyCode() == KeyEvent.VK_TAB)&&  
                   e.getID() == KeyEvent.KEY_PRESSED ){
                   int row = table.getEditingRow();
                   int col = table.getEditingColumn();
                   col++; // actually check col > number of columns
                   if (col == tablemodel.getColumnCount())
                        row++;
                        if (row == tablemodel.getRowCount())
                        row=0;
                        col=0;
                   stopCellEditing();
                   table.editCellAt(row,col);
                   table.transferFocus();
              }     else if ( (e.getKeyCode() == KeyEvent.VK_DOWN ||
                   e.getKeyCode() == KeyEvent.VK_UP ) &&
                   e.getID() == KeyEvent.KEY_PRESSED ){
                   int row = table.getEditingRow();
                   int col = table.getEditingColumn();
                   if ( e.getKeyCode() == KeyEvent.VK_UP)
                   row--;
                   if ( e.getKeyCode() == KeyEvent.VK_DOWN)
                   row++;
                   if (col == tablemodel.getColumnCount())
                        row++;
                        if (row == tablemodel.getRowCount())
                        row=0;
                        col=0;
                   stopCellEditing();
                   table.editCellAt(row,col);
                   table.transferFocus();
              }     else
                   super.processKeyEvent(e);           
        m_textArea.setLineWrap (true);
        m_textArea.setWrapStyleWord (true);
        m_scroll = new JScrollPane (m_textArea,
                        //JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                        JScrollPane.VERTICAL_SCROLLBAR_NEVER,
                        //JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
                        JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      public Component
      getTableCellEditorComponent
      (JTable table,
       Object value,
       boolean
       isSelected,
       int nRow, int nCol)
        //m_textArea.setBackground(table.getBackground());
        m_textArea.setBackground(Color.green);
        //m_textArea.setForeground(table.getForeground());
        m_textArea.setForeground(Color.black);
        m_textArea.setFont (table.getFont());
        m_textArea.setText (value   ==   null ?   "" :  value.toString());
        return m_scroll;
      public Object getCellEditorValue ()
        return       m_textArea.getText ();
      JTextArea getCellEditor ()
        return       m_textArea;
      public boolean isCellEditable (EventObject anEvent)
        if (anEvent   instanceof         MouseEvent)
         int click = ((MouseEvent) anEvent).getClickCount();
         return click >= CLICK_COUNT_TO_EDIT;
        return true;
    } //class text area cell editor
    class TrunkData
      public String    m_sysname;
      public String    m_clli;
      public String    m_tg;
      public Integer     m_member;
      public String    m_trunk_type;
      public String    m_lata;
      public String    m_lata_name;
      public String    m_prospect_server;
      public String    m_tgroupid;
      public String    m_ctg;
      public Integer   m_augmen;
      public String    m_vendor;
      public TrunkData ()
        m_sysname = "";
        m_clli = "";
        m_tg = "";
        m_member =     new Integer (0);
        m_trunk_type =     "";
        m_lata = "";
        m_lata_name =       "";
        m_prospect_server       = "";
        m_tgroupid = "";
        m_ctg = "";
        m_augmen = new Integer(0);
        m_vendor = "";
      public
      TrunkData
      (String sys,
       String clli,
       String tg,
       String member,
       String ttyp,
       String lata,
       String latanm,
       String pserver,
       String tgrpid,
       String ctg,
       String aug,
       String vend)
        m_sysname = sys;
        m_clli = clli;
        m_tg = tg;
        try {
          if (member.trim().equals(""))
         m_member=new Integer(0);
          else
         m_member =     new Integer(member.trim());
        } catch (Exception e) {
          System.out.println("can't parse member " + e.toString());
        m_trunk_type =     ttyp;
        m_lata = lata;
        m_lata_name =     latanm;
        m_prospect_server     = pserver;
        m_tgroupid =     tgrpid;
        m_ctg = ctg;
        if (aug.trim().equals(""))
          m_augmen=new Integer(0);
        else m_augmen=new Integer(aug.trim());
        m_vendor = vend;
    } //class trunkd data
    class ColumnData
      public String    m_tolatLbl;
      int m_width;
      int m_alignment;
      public    ColumnData    (String title,     int width,     int alignment)
        m_tolatLbl =     title;
        m_width = width;
        m_alignment =     alignment;
    } //class column data
    class  TrunkReportData  extends  AbstractTableModel
      public static ImageIcon COLUMN_UP;
      public static ImageIcon COLUMN_DOWN;
      public int               m_sortCol = 0;
      public boolean m_sortAsc = true;
      public static      final ColumnData      m_columns[] =
        new      ColumnData      ("System", 200,       JLabel.LEFT),
        new      ColumnData      ("CLLI", 200,       JLabel.LEFT),
        new      ColumnData      ("Trunk Group",       200,       JLabel.LEFT),
        new      ColumnData      ("Members", 200,       JLabel.LEFT),
        new      ColumnData      ("Trunk Type",       200,       JLabel.LEFT),
        new      ColumnData      ("LATA ", 200,       JLabel.LEFT),
        new      ColumnData      ("LATA Name",       200,       JLabel.LEFT),
        new      ColumnData      ("Prospect Server",       200,       JLabel.LEFT),
        new      ColumnData      ("Trunk Group ID",       200,       JLabel.LEFT),
        new      ColumnData      ("CTG", 200,       JLabel.LEFT),
        new      ColumnData      ("Augments", 200,       JLabel.LEFT),
        new      ColumnData      ("Vendor", 200,       JLabel.LEFT)
      protected      trnk m_parent;
      protected Vector      m_vector;
      public TrunkReportData (trnk parent , Image imgup, Image imgdown)
        this.COLUMN_UP=new ImageIcon(imgup);
        this.COLUMN_DOWN=new ImageIcon(imgdown);
        m_parent = parent;
        m_vector = new Vector ();
        setDefaultData (parent.is);
      public void setDefaultData (InputStream is)
        m_vector =  new Vector ();
        int numFields =       0;
        try
         BufferedReader
           br =new     BufferedReader(new InputStreamReader(is));
         String inline ="";
         while ((inline =  br.readLine()) != null)
             if (inline.indexOf('#') > -1)
              continue;
             StringTokenizer st = new StringTokenizer (inline, ",");
             String nsys=st.nextToken ().trim(); //sys
             String nclli=  st.nextToken().trim() ;     // clli
             String ntg= st.nextToken ().trim();     // tg
             String nmemb=  st.nextToken().trim();     // members
             String nttyp=   st.nextToken ().trim();     // trunktype
             String nlata= st.nextToken ().trim();     // lata
             String nlataname=  st.nextToken ().trim();     // lata  name
             String npros=    st.nextToken ().trim();     // prospect  server
             String ntgrpid=st.nextToken().trim();      //tgroupid
             String nctg=st.nextToken().trim();      //ctg
             String naug=st.nextToken().trim();      //augments
             String nvend=st.nextToken().trim();      //vendor
             m_vector.addElement(new TrunkData(nsys,nclli, ntg,
                                   nmemb, nttyp, nlata, nlataname, npros, ntgrpid, nctg,
                                   naug,nvend));
         br.close ();}
        catch (Exception e)
         System.out.println("Error in file reader 2 "+ e.toString ());
        sortData();
      public Icon getColumnIcon(int column) { // NEW
        if (column==m_sortCol)
          return m_sortAsc ? COLUMN_UP : COLUMN_DOWN;
        return null;
      // NEW
      public void sortData() {
        Collections.sort(m_vector, new
                   TrunkComparator(m_sortCol, m_sortAsc));
      public int getRowCount ()
        return m_vector == null ? 0 : m_vector.size ();
      public int getColumnCount ()
        return    m_columns.length;
      public String getColumnName(int nCol)
        return    m_columns[nCol]. m_tolatLbl;
      public boolean isCellEditable
      (int nRow, int nCol)
        return true;
      public Object getValueAt (int         nRow,         int nCol)
        if (nRow < 0 || nRow >=getRowCount())
          return "";
        TrunkData row = (TrunkData) m_vector.elementAt(nRow);
        switch (nCol)
          case 0:
         return row.m_sysname;
          case 1:
         return row.m_clli;
          case 2:
         return row.m_tg;
          case 3:
         return row.m_member;
          case 4:
         return row.m_trunk_type;
          case 5:
         return row.m_lata;
          case 6:
         return row.m_lata_name;
          case 7:
         return row.m_prospect_server;
          case 8:
         return row.m_tgroupid;
          case 9:
         return row.m_ctg;
          case 10:
         return row.m_augmen;
          case 11:
         return row.m_vendor;
        return "";
      public void setValueAt (Object value, int nRow, int nCol)
        if (nRow < 0
         || nRow >=
         getRowCount
         || value ==
         null)
          return;
        System.out.println("setting nrow=" + nRow + " nCol=" + nCol + " to value=" + (String) value);
        TrunkData row = (TrunkData) m_vector.elementAt (nRow);
        String svalue = value.toString ();
        switch (nCol)
          case 0:
         row.m_sysname = svalue; break;
          case 1:
         row.m_clli = svalue; break;
          case 2:
         row.m_tg = svalue; break;
          case 3:
         if (svalue.trim().equals(""))
           row.m_member=new Integer(0);
         else
             try {
               row.m_member = new Integer(svalue.trim());
             } catch (NumberFormatException e) {
               JOptionPane.showMessageDialog( null,  "Please enter integer valuesonly.",  "Error", JOptionPane.ERROR_MESSAGE);
           break;
          case 4:
         row.m_trunk_type = svalue; break;
          case 5:
         row.m_lata = svalue; break;
          case 6:
         row.m_lata_name = svalue; break;
          case 7:
         row.m_prospect_server = svalue; break;
          case 8:
         row.m_tgroupid = svalue; break;
          case 9:
         row.m_ctg = svalue; break;
          case 10:
              if (svalue.trim().equals("")) {
                   row.m_augmen = new Integer(0);
              } else {
                       try {
                        row.m_augmen = new Integer(svalue.trim());
                       } catch (NumberFormatException e) {
                              JOptionPane.showMessageDialog( null,  "Error", "Please enter only integer values.",  JOptionPane.ERROR_MESSAGE);
              break;
          case 11:
         row.m_vendor = svalue; break;}
        fireTableCellUpdated(nRow,nCol);
      public void insert (int nRow)
        if (nRow < 0)
          nRow = 0;
        if (nRow >     m_vector.size ())
          nRow  =
         m_vector. size ();
        m_vector.insertElementAt
          (new
           TrunkData (),
           nRow);
      public boolean delete (int nRow)
        if (nRow < 0
         || nRow >=
         m_vector.size
         ())return
              false;
        m_vector.remove (nRow);
        return true;
      public String getTitle() {
        return "Verizon Trunk Table";
    } //class trunk report data
    class TrunkComparator implements Comparator {
      protected int            m_sortCol;
      protected boolean m_sortAsc;
      public TrunkComparator(int sortCol, boolean sortAsc) {
        m_sortCol = sortCol;
        m_sortAsc = sortAsc;
      public int compare(Object o1, Object o2)
        if (!(o1 instanceof TrunkData) || !(o2 instanceof TrunkData))
          return 0;
        TrunkData s1=(TrunkData)o1;
        TrunkData s2=(TrunkData)o2;
        int result=0;
        String str1="", str2="";
        int i1=0, i2=0;
        switch(m_sortCol) {
        case 0: //sysname
          str1=(String)s1.m_sysname;
          str2=(String)s2.m_sysname;
          result=str1.compareTo(str2);
          break;
        case 1: // clli
          str1=(String)s1.m_clli;
          str2=(String)s2.m_clli;
          result=str1.compareTo(str2);
          break;
        case 2: //TG
          str1=(String)s1.m_tg;
          str2=(String)s2.m_tg;
          result=str1.compareTo(str2);
          break;
        case 3: //member
          i1 =s1.m_member.intValue();
          i2 =s2.m_member.intValue();
          result = i1 < i2 ? -1 : (i1 > i2 ? 1 : 0);
          break;
        case 4: //trunk type
          str1=(String)s1.m_trunk_type;
          str2=(String)s2.m_trunk_type;
          result=str1.compareTo(str2);
          break;
        case 5: //lata
          str1=(String)s1.m_lata;
          str2=(String)s2.m_lata;
          result=str1.compareTo(str2);
          break;
        case 6: //lata name
          str1=(String)s1.m_lata_name;
          str2=(String)s2.m_lata_name;
          result=str1.compareTo(str2);
          break;
        case 7: //prospect server
          str1=(String)s1.m_prospect_server;
          str2=(String)s2.m_prospect_server;
          result=str1.compareTo(str2);
          break;
        case 8: //tgroup id
          str1=(String)s1.m_tgroupid;
          str2=(String)s2.m_tgroupid;
          result=str1.compareTo(str2);
          break;
        case 9: //ctg
          str1=(String)s1.m_ctg;
          str2=(String)s2.m_ctg;
          result=str1.compareTo(str2);
          break;
        case 10: //augments
          i1 =s1.m_augmen.intValue();
          i2 =s2.m_augmen.intValue();
          result = i1 < i2 ? -1 : (i1 > i2 ? 1 : 0);
          break;
        case 11: //vendor
          str1=(String)s1.m_vendor;
          str2=(String)s2.m_vendor;
          result=str1.compareTo(str2);
          break;
        if (!m_sortAsc) result = -result;
        return result;
      public boolean equals(Object obj) {
        if (obj instanceof TrunkComparator) {
          TrunkComparator compObj=(TrunkComparator) obj;
          return (compObj.m_sortCol == m_sortCol) &&
         (compObj.m_sortAsc==m_sortAsc);
        return false;
    } //class trunk comparator

    Problem resolved by modifying the code to this:
    bt.setToolTipText("Delete Row");   
    bt.setRequestFocusEnabled(false);   
    lst = new ActionListener ()      {     
    public void       actionPerformed       (ActionEvent e)       {       
    int nRow = m_table.getSelectedRow();          
    if (nRow  < 0)           
    JOptionPane.showMessageDialog( null,  "Please select a row to delete",  "Error", JOptionPane.ERROR_MESSAGE);          
    else if (JOptionPane.showConfirmDialog(null, "Do you want to delete the selected row?", "Delete a Row", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
    m_table.getCellEditor().stopCellEditing();   
    if (m_data.delete (nRow))           {          
         m_table.tableChanged            (new TableModelEvent             (m_data, nRow, nRow,              TableModelEvent.ALL_COLUMNS,              TableModelEvent.DELETE));          //m_table.clearSelection();       
       };

  • How I can delete event from calendar (iOS7)??

    How I can delete an event from calendar (iOS7)?? I can't find any icons, any gesture for that!!!

    I've never used the calendar app until I read this, so I created a test event and then spent about 15 minutes trying to figure out how to delete it, but I finally figured it out!  Here's how to do it:
    1) Tap the event to bring up the info panel about it.
    2) Tap "Edit".
    3) A long panel will appear, letting you set all sorts of info about the event, but there doesn't appear to be any way to delete it, but...
    4) Pull up on that long panel, and way down at the bottom is a red "Delete Event" button.  Tap it and confirm the deletion in the message box that appears, and the event it gone!
    Ken

  • [iPhone] How to create a button like "Delete Event"

    When you edit an event in the Calendar app, there's a button that reads "Delete Event" at the bottom of the list.
    Does anyone know how you can create such a button? Is this a footerview for the tableview?
    Any tips are welcome!

    I'm also curious about this... It's the same as when you edit a Contact, too.
    I'm thinking you could maybe create a custom table cell and just use that, but it sounds like a hack to me..

  • Multi-Row Delete from a table via a button without submitting the page

    Hi,
    I have a simple page based on a (temporary) table. There is a submit button that calls a PL/SQL process. However, I would like to have an 'Abort' button that deletes all rows from the table belonging to a specific user.
    I had a look at 'Processes -> Data Manipulation --> Multi Row Delete' but this can only be linked to a page level event such as onSubmit. My onSubmit is linked to another process so this is not an option for me.
    I thought of creating a PL/SQL function for the deletion and calling it from Javascript linked to a button. I have done the PL/SQL and the button but don't know how to call PL/SQL from JS. And is this the correct way of doing something like a deletion? Any documents that show how can this be done will be much appreciated....
    I had a look at the forum and the documentation but could not find anything for multil-row deletion triggered from a button.
    Your help is appreciated as I'm a newbie :-)
    Thanks
    Angela

    Hi,
    I actually found the solution. I created a button (that submits) and a computation that calls the PL/SQL function conditional on that button being pressed. Initially I got confused because I already had another PL/SQL function attached to different button. I didn't think that having two buttons that submit the page and call different functions was possible.
    Thanks
    Angela

  • Deleting Events

    How do I delete an event WITHOUT deleting the picture from the library?

    But photos MUST live in an event. That's how iPhoto is set up. So, if you delete an event, where would the photos go? Who would decide that? Do you want to delete an event, and then all the photos somehow magically spread to other photos? Do you want the iPhoto to make that decision for you? You know you'd never be happy with the choice iPhoto makes for you in that situation.
    What actually is confusing here is the poorly chosen term "event." While it's nice to think about them as events, they are actually just a bucket that you create to hold your photos, and they directly map to an underlying file structure. So, to ask that you can delete an event without deleting the photos in the event is the same as saying "I'd like to delete a folder in finder, but have the files in the folder not be deleted." It just doesn't make sense.
    So, the real issue is the misnamed bucket that iPhoto calls "events." These used to be called "rolls" in iPhoto 6 which, in some ways, made more sense. Apple found a cool interface for viewing photos by mousing over the rolls, and changed the name to "events." But, I think it was not fully thought out, and I am sure the next major release will have more changes still. They really need an album sorter view. With iPhoto 08, Apple led people to think they can do their major organizing of photos in events, but I don't think events are robust enough for sorting photos. Events are just holding buckets for high level organization. You really need folders and albums to do better organization, and we need to quick view of those albums to complete the interface, IMO.

  • How to Display Number of Rows Deleted/Inserted etc... in PL/SQL

    In Oracle 10g PL/SQL, I have a delete statement in a stored procedure. It is not in a cursor. I want to see the number of rows I've deleted. I can use the dbms_output.put_line package. I should know this, but I don't have time to perfect the syntax. How would I get the number of rows that get deleted and display it via dbms_output.put_lline?

    No time to google either I guess.
    http://www.google.co.uk/search?q=number+of+rows+deleted+oracle&rls=com.microsoft:en-gb&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&rlz=&redir_esc=&ei=Qi5qToGyGYqw8QOGzf3nAg
    SQL> create table dt_del_ex(id number);
    Table created.
    SQL> set serveroutput on
    SQL> BEGIN
      2
      3      INSERT INTO dt_del_ex VALUES(1);
      4
      5      DBMS_OUTPUT.put_line(TO_CHAR(SQL%ROWCOUNT)||' rows inserted');
      6
      7      INSERT INTO dt_del_ex select rownum from dual connect by level <=10;
      8
      9      DBMS_OUTPUT.put_line(TO_CHAR(SQL%ROWCOUNT)||' rows inserted');
    10
    11      UPDATE dt_del_ex SET id = id + 3 WHERE id >= 9;
    12
    13      DBMS_OUTPUT.put_line(TO_CHAR(SQL%ROWCOUNT)||' rows updated');
    14
    15      DELETE FROM dt_del_ex WHERE id <= 10;
    16
    17      DBMS_OUTPUT.put_line(TO_CHAR(SQL%ROWCOUNT)||' rows deleted');
    18
    19  END;
    20  /
    1 rows inserted
    10 rows inserted
    2 rows updated
    9 rows deleted
    PL/SQL procedure successfully completed.

  • HT2513 I can't delete events recurring annually...not part of birthday calendar, one's I've added manually.  I've tried delete key, cut event, changing to no recurrence, they just revert to original recurrence and will not be removed from my calendar.  Th

    I can't delete events recurring annually...not part of birthday calendar, these are events I've added manually.  I've tried delete key, cut event, changing to no recurrence, they just revert to original recurrence and will not be removed from my calendar.  Events that occur weekly I'm able to delete, this is only happening with events recurring annually.  Very frustrating.  Thanks for any ideas.

    If you are using a PC, log on to iCloud using Safari (rather than Explorer) to reset the photostream. Then turn iPhone/iPad photostream off and back on. I was getting the same server error as you and this advice from another blog worked for my iPhone and iPad.  But I still can't get photostream deleted from my apple tv. There does not seem to be a photostream on/off control In Apple tv 4.4 software.  I tried switching the screen saver to one of the ones that comes preloaded on the device, then back to photostream but all the old photos are still there.  If anyone can help with this, I would appreciate it.

  • Error while deleting events from the integration event queue

    I am trying to delete all the events from the integration event queue after reading it, like this (this is in Java):
            IntegrationEventWS_DeleteEvents_Input input = new IntegrationEventWS_DeleteEvents_Input();
            input.setDateTime("");
            input.setLastEventId("");
            try {
                 ((Default_Binding_IntegrationEventWS)onDemandStub).deleteEvents(input);
            } catch (Exception e) {
                 log.error("Deleting events from integration queue failed: ", e);
            }Alas, I get the following error message:
    Invalid method parameter(s): 'File Id'(SBL-ODS-50007)What does this mean? What is this mysterious "File Id" it supposedly gets? I don't see it anywhere in the SOAP message I'm sending and it isn't mentioned anywhere in the docs.
    Thanks in advance for any input.

    Dont keep this attributes null
    input.setDateTime(""); //Put a Default Time way in
    the past. Ex:"1/1/2000"
    input.setLastEventId(""); //pass the eventIdThe documentation states that those two are optional (although they are not nillable, for some reason). I tried to set the date to today, but I got the same result. Since setting a date is supposed to delete all events older than that date, I don't think setting it in the past will delete anything.

  • Information about the deleted sales order line item in idoc.

    Hi Experts,
    I am new to IDOC.We have the following idoc requirement,
    When a line item is deleted from the sales order(VA02) ,
    the outbound idoc getting triggered for the sales order has the information about the rest all line items other than the deleted line item.We now want the information about the deleted line item in the Idoc .
    Please help me in proceeding further.

    Hi,
    I am facing the same scenario of capturing the  deleted sales order line item in idoc.
    I am using ORDRSP message type , where in E1EDP01- ACTION contains value  "000" .
    And the Deletion line item is not been captured, is there any configuration setting required to
    capture the deleted line item in Idoc.
    Based on the posting in this thread i understand that there is an  indicator which has to be set .
    Please let me know what is that indicator and how to set it?
    Thanks
    Sathish

  • Instead of delete trigger rows deleted

    Hi All.
    Im using a few instead of triggers over a view. The view selects data from other tables and merges them together. This view essentially forms the parent of a few one2one relationships with other tables.
    However my application doesnt know its a view (im using hibernate orm framework) - so when I delete this object which is mapped to a view, I get an error saying that no records where deleted. Also, if i test in sqlplus, i get "0 rows deleted" in response to a delete - which of course is true, but i want it to say 1 or some number of my choice.
    How can i modify my "instead of delete" trigger so that the number for records deleted count returned to caller is 1, or some number i can define?
    Here is my current trigger...
    create or replace
    trigger product_view_delete_trigger
    instead of delete
    on product_view1
    for each row
    begin
    null;
    end;
    Thanks.

    In regards to why Im using a view - its discussed here...
    Crazy Union across 3 tables
    The view im using is not updatable - it uses a union. I use "instead of triggers" to trick my application into thinking its a real table which is insertable. And this works fine.
    Im having trouble tricking my application into think that the delete was successful, because the "instead of delete" trigger doesnt actually delete anything - which is what i wnat - but i want it to report back to the caller that a delete occurred.
    I want the SQL%ROWCOUNT to be set to 1 or whatever. Perhaps this is not hte variable, but im hoping there is some variable I can set which is used to report back to the client as to how many records were deleted.
    thx.

Maybe you are looking for

  • Back ground jobs scheduling

    Hello Abap Gurus: I have a requirement in which i need to modify come data in a spool and i need to create the spool again. i) How to schedule background jobs if i have say 100 spools which i need to modify in the same way and create spools of all th

  • How to read a .dbf file on 64 bit sql server?

    We are running 64 bit windows server 2003 / sql server 2005.  I need to use openrowset to read a dbf file.  Is there ANY way to do that?

  • Cl_htmlb_tableview= factory for 3 tableviews

    Hello, I´m creating a Tabstrip control with cl_htmlb_tabstrip=>factory and this control has 3 tabstrip items. Each item must display a tableview (with the same structure) with different data, depending on the active item. I do a loop to create this:

  • Hi, i have ipod touch 4g 16gb bought in abroad

    hi, i have ipod touch 4g 16gb bought in abroad..now i have battery issue that my ipod does not charge to 100%..please help

  • Menu Bar/Dock click Crashes-Thermal Problem?

    Greetings All! My 1.25 gHz eMac has lately been experiencing freezes which often occurs if I hit an item on the menu bar, a Dock item, or a requester button during an operation. The screen freezes and often scrambles into gross pixels. I'm now assumi