Problem to update 16 rows, it updates all rows in table

I tried to update 16 rows with AL as divion name with the script as below:
Update wire_center a set a.wg_id='63'
where EXISTS (select b.div_name from wire_center a, division b, district c, ns_workgroups d
where B.DIV_NAME='AL' AND a.dis_id=c.dis_id and b.div_id=c.div_id and d.wg_id=a.wg_id );
When I run it, it updates all the rows in the table.
However when I run the select subquery, it returns 16 rows.
It seems where EXISTS is the problem. if I take exists out, it gave me ora-00936 error.
How to fix it? Please need urgent help. db is 10g.
Thanks in advance.

If I understand correctly what you want, you should not include wire_center again in the second select (in your exists clause).
The second select has no relation to the table you are updating, so because the second select returns 16 rows, the exists will always be true. For every row. So every row will be updated.
Instead of
Update wire_center a set a.wg_id='63'
where EXISTS (select b.div_name from wire_center a, division b, district c, ns_workgroups d
where B.DIV_NAME='AL' AND a.dis_id=c.dis_id and b.div_id=c.div_id and d.wg_id=a.wg_id );try this:
Update wire_center a set a.wg_id='63'
where EXISTS (select b.div_name from division b, district c, ns_workgroups d
where B.DIV_NAME='AL' AND a.dis_id=c.dis_id and b.div_id=c.div_id and d.wg_id=a.wg_id );Edited by: theoa on 29-dec-2010 14:27

Similar Messages

  • In updating iPhoto 7.1.5 to 9.4.3. I have four different Libraries.  Is there a problem in updating all four Libraries from 7.1.5?

    In updating iPhoto 7.1.5 to 9.4.3 I have four different Libraries.  Is there a problem in updating all four Libraries from 7.1.5?

    No.  Once you have upgraded iPhoto to 9.4.3 launch it with the Option key held down and select each library in order.  iPhoto will convert the  library to the new version.
    As always, be sure you have a backup copy of each library before proceeding.
    OT

  • Problem to update all folders

    Hi!
    I have a problem with my mailbox.
    I have created several different folders in my mail to streamline all incoming e-mails.
    and now i can't update all my folder in one time.
    if I will update incoming folder my iphone will updated ONLY general incoming folder, but it wouldn't update subfolders.
    so i have to update incoming folder at first and after that all subfolders one by one.
    Could you  advise me what should i change in the settings to update all my folders in one time?
    thanks in advance,
    Sevastyan Kitaev

    I have had no such problem. You can also ways backup up your iTunes library in case you have a problem so yu can just restore the library.
    iTunes: Back up your iTunes library by copying to an external hard drive

  • How can i update all column of table without know it's structure

    hi to all
    i want to make update to all columns of table with record type of this table
    ex- consider the emp table and contain any number of columns
    and you make record is row type of this table (emp) as emp_rec
    and fech in it any record by select * from emp
    and i want to update another record this the return record from data base as
    update emp by using the emp_rec
    i want to know how this will be acheive

    It is all written in the docs:
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#i20479
    Although updating all columns for a table is VERY, VERY BAD practice.
    Gints Plivna
    http://www.gplivna.eu

  • Lock Objects Problem while updating entries in custom table

    Hi Friends,
    Iam updating a custom table ztable from internal table entries.
    ie : Modify ZTABLE from table ITAB.
    Now the entries are updating and inserting perfectly..
    But my problem is i need to use lock objects before doing this..
    I have created a lock obect EZTABLE with all th ekey fields of the table.. ie : it has 2 key fields
    item & matnr .
    Now how to use lock objects here.. do i need to loop the internal table and use enque & deque function module each and every time in loop or use it out side the loop..
    Can any one explain me this..
    Regards,
    Kumar

    hi kumar,
    **check if the equipment is already locked by user, if yes, trigger a mail
                CALL FUNCTION 'ENQUEUE_EIEQUI'
                 EXPORTING
                MODE_EQUI            = 'E'
                MANDT                = SY-MANDT
                   equnr                = lv_equi_temp
                X_EQUNR              = ' '
                _SCOPE               = '2'
                _WAIT                = ' '
                _COLLECT             = ' '
                 EXCEPTIONS
                   foreign_lock         = 1
                   system_failure       = 2
                   OTHERS               = 3.
                IF sy-subrc <> 0.
                  lv_subrc1 =  sy-subrc.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                ELSE.
                  CALL FUNCTION 'DEQUEUE_EIEQUI'
                   EXPORTING
                MODE_EQUI       = 'E'
                MANDT           = SY-MANDT
                     equnr           =  lv_equi_temp
                X_EQUNR         = ' '
                _SCOPE          = '3'
                _SYNCHRON       = ' '
                _COLLECT        = ' '
                ENDIF.
    try like this to check if the object is locked....
    u can also use
    call function 'ENQUEUE,.
    do the needful changes update the database then commit work
    then call function 'DEQUEUE'
    hope this helps,
    tanmaya

  • Problem with Updation of entires in table T030

    Hi,
       We have written a program to update some entires in the standard table T030.We tried writing INSERT as well as modify statemnt for updating these entirs in internal table.All these entires are new and they donot exist in the table.
    However there are in total 1347 entires to be updated in the table.However my final updation count is only 1299.
    Can anybody suggest what must be going wrong with respect to this.
    I tried making a 'Z' table which copy of existing table T030 and then update this 'Z' table.However still the number of entires are still 1299.
    Request you suggestions on the same.
    Regh

    If u observe T030 table key combination will be (KTOPL, KTOSL, BWMOD, KOMOK, BKLAS)Check your entries, i guess you might have had the same key of the entries which is not updating into the table.
    Also try to put a break point and check sy-subrc while the records are inserting.
    Regards
    VEnk@
    Edited by: Venkat Reddy on Feb 11, 2011 12:45 PM

  • Problem in updating of standard database tables( S011, S012, S013).

    Hi Gurus,
    Here i am having the probelm with these transactions MCE1, MCE3, MCE5, MCE7.
    In these t-codes we are not able to get Purchase Order Values... Please help me out from this ... To get the PO Value what should i do .... there PO values are showing '0.00' (Zero)..
    These t-codes  are using S011, S012, S013 tables, in those tables also PO value is not updating ( in these tables field NETWR is showing Zeros only)
    this is urgent for my client... 
    Rewards in advance....
    Regards,
    Naveen Myneni

    This is not ABAP but configuration issue. I'd suggest to contact your MM consultant or move this question to MM area.

  • Problem regarding Update-Statement on se11 table

    Hello I tried to update a dataset in a se11 table using UPDATE Statement.
    It doesn't work and I get a sy-subrc = 4.
    That is my code:
    TABLES ZTDM_SAPOUTPUT.
    * Arbeitsbereich definieren
    DATA:
    wa_ZTDM_SAPOUTPUT LIKE ZTDM_SAPOUTPUT.
    wa_ZTDM_SAPOUTPUT-PK = '1'.
    wa_ZTDM_SAPOUTPUT-FNCODE = '3'.
    wa_ZTDM_SAPOUTPUT-MATNR = '3'.
    wa_ZTDM_SAPOUTPUT-MAKTX = '3'.
    wa_ZTDM_SAPOUTPUT-ZEINR = '3'.
    wa_ZTDM_SAPOUTPUT-MATKL = '3'.
    wa_ZTDM_SAPOUTPUT-STATE = '1'.
    UPDATE ZTDM_SAPOUTPUT FROM wa_ZTDM_SAPOUTPUT.
    Write: 'UPDATE returned' , sy-subrc.
    SKIP.
    The given Dataset having PK=1 doesn't get updated.
    Maybe my understanding is wrong:
    Is it correct that the updated dataset ist defined by the primary key in this workingarea?
    My Primary Key is PK.
    Can you see the error?

    UPDATE  dbtab      FROM wa. or
    UPDATE (dbtabname) FROM wa.
    Changes one single line in a database table, using a primary key to identify the line and taking the values to be changed from the specified work area, wa. The data is read out of wa from left to right, matching the line structure of the database table dbtab. The structure of wa remains unchanged. This means that wa must be at least as wide (see DATA) as the line structure of dbtab, and have the same alignment. Otherwise, a runtime error occurs.
    If either the database table, dbtab, or the work area, wa, contain Strings, wa must be compatible with the line structure of dbtab.
    Example
    Changing the telephone number of the customer with customer number '12400177' in the current client:
    DATA   wa TYPE scustom.
    SELECT SINGLE * FROM scustom INTO wa
      WHERE id = '12400177'.
    wa-telephone = '06201/44889'.
    UPDATE scustom FROM wa.
    When the command has been executed, the system field SY-DBCNT contains the number of updated lines (0 or 1).
    Examples
    Update discount for the customer with the customer number '00017777' to 3 percent (in the current client):
    DATA: wa TYPE scustom.
    SELECT SINGLE * FROM scustom INTO wa
      WHERE id = '00017777'.
    wa-discount = '003'.
    UPDATE scustom FROM wa.
    The Return Code is set as follows:
    SY-SUBRC = 0:
    The specified line has been updated.
    SY-SUBRC = 4:
    The system could not update any line in the table, since there is no line with the specified primary key.
    rwrd if helpful
    bhupal

  • Problem with select many rows in table

    1. I have af:table
    2. In my bean I get the selected rows with
    DCIteratorBinding countriesIterator =
    ADFUtils.findIterator("FigureTypesViewIterator");
    RowKeySet rowSet = this.getRichTable().getSelectedRowKeys();
    Iterator rowSetIterator = rowSet.iterator();
    But I get only the last selected row. Any suggestions ?
    <af:table value="#{bindings.FigureTypesView.collectionModel}" var="row"
    rows="#{bindings.FigureTypesView.rangeSize}"
    first="#{bindings.FigureTypesView.rangeStart}"
    emptyText="#{bindings.FigureTypesView.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.FigureTypesView.rangeSize}"
    selectedRowKeys="#{bindings.FigureTypesView.collectionModel.selectedRow}"
    selectionListener="#{bindings.FigureTypesView.collectionModel.makeCurrent}"
    rowSelection="multiple"
    binding="#{PeopleSelectManyLOVBean.richTable}">

    Zaro,
    To get a table to work correctly for multiple selection following changes need to be made
    1. Set property 'rowSelection' to multiple.
    2. Remove property 'selectedRowKeys'.
    3. Remove property 'selectedListener'.
    4. Remove property 'selectedState'.
    Only then does the multi select work correctly.
    HTH,
    --AJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • No Update FMIOI and KBLP tables with purchase order

    Hello,
    We have un serious problem : No Update FMIOI and KBLP tables with purchase order
    System :  SAP ERP 6.0 /7.0 - EHP 4
    Note 965633 was read.
    1) First case: The purchase order 4510000673 does not reduce the funds reservation.
    Purchase order 4510000673 should consume the funds reservation 1200000193 because all post of the PO charge the funds reservation 1200000193.But the consumption history of the funds reservation 1200000193 donu2019t show this consumption.
    In table FMIOI, we do not have lines with amount type 0200 (reduction) but whe have the lines with the post of PO with amount type (0100).  The Purchase order 4510000673 should consume the funds reservation 1200000193.
    In table KBLP, the fields are :
    Total amount (LC) - HWGES  = 53.409,40
    Amount used u2013 WTABB = 0,00
    Reduction amount u2013 HWABB = 0,00
    Open amount u2013 CWTFREE =    53.409,40
    Reduced amount u2013 WTABG = 0,00
    Reduced amount u2013HWABG = 0,00
    To solve the problem, we executed the transactions : FM4N et FMN5 and the program RFFMRC20 but no result.
    2) Second case : Delete a item of a purchase order does not release the budget
    The single item of the purchase order 4510000597 is deleted but in the display of consumption History of the funds reservation 1200000137, the amount of the purchase order is not to zero.
    To solve the problem, we executed the transactions : FM4N et FMN5 and the program RFFMRC20 but no result.
    Somebody already had a similar problem ?
    Thank you
    Fabian

    Hello Fabian
    There are two known notes dealing with missing update on reference Earmarked Funds, I am listing them for future references:
    1376800  Earmarked funds: Incorrect open amount         
    1438487  RFFMRC20: Missing KBLE records are ignored     
    These notes correct some errors within the Standard.
    However, in your scenario, problem has to do with an incorrect execution of a Commit work inside a customer user-exit. After elimination of this commit work, new Po's are working correctly.
    Remaining task is the correction of old PO's. Manual correction via small changes with ME22N (for instance, adding a '.' to the line item text/s) will force the correct update and fix your database
    If you agree, we can close this thread (?)
    Kind regards
    Mar

  • Problem of deletion of rows in jtable, table refreshing too

    Hi,
    I have a table with empty rows in the beginning with some custom properties( columns have fixed width...), later user would be adding to the rows to this table and can delete, I've a problem while deleting the rows from table,
    When a selected row is deleted the model is also deleting the data but the table(view) is not refreshed.
    Actually i'm selecting a cell of a row, then hitting the delete button.
    So the model is deleting the information, but i'm not able to c the fresh data in table( especially when the last cell of last row is selectd and hit the delete button, i am getting lots of exception)
    Kindly copy the below code and execute it, and let me know,
    * AuditPanel.java
    * Created on August 30, 2002, 3:05 AM
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.Vector;
    * @author yaman
    public class AuditPanel extends javax.swing.JPanel {
    // These are the combobox values
    private String[] acceptenceOptions;
    private Vector colNames;
    private Color rowSelectionBackground = Color.yellow;
    private int rowHeight = 20;
    private int column0Width =70;
    private int column1Width =96;
    private int column2Width =327;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    /** Creates new form AuditPanel */
    public AuditPanel() {
    public void renderPanel(){
    initComponents();
    public String[] getAcceptenceOptions(){
    return acceptenceOptions;
    public void setAcceptenceOptions(String[] acceptenceOptions){
    this.acceptenceOptions = acceptenceOptions;
    public Vector getColumnNames(){
    return colNames;
    public void setColumnNames(Vector colNames){
    this.colNames = colNames;
    public Vector getData(){
    Vector dataVector = new Vector();
    /*dataVector.add(null);
    dataVector.add(null);
    dataVector.add(null);
    return dataVector;
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    jPanel2 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jTable1 = new javax.swing.JTable();
    setLayout(new java.awt.GridBagLayout());
    setBorder(new javax.swing.border.EmptyBorder(0,0,0,0));
    jPanel2.setLayout(new java.awt.GridBagLayout());
    jPanel2.setBorder(new javax.swing.border.EmptyBorder(0,0,0,0));
    jButton1.setText("Add");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.ipadx = 8;
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 5, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    jPanel2.add(jButton1, gridBagConstraints);
    jButton2.setText("Delete");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    jPanel2.add(jButton2, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    add(jPanel2, gridBagConstraints);
    jPanel1.setLayout(new java.awt.GridBagLayout());
    jPanel1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED, Color.black, Color.gray) );
    jTable1.setModel(new javax.swing.table.DefaultTableModel(getData(), getColumnNames()));
    // get all the columns and set the column required properties
    java.util.Enumeration enum = jTable1.getColumnModel().getColumns();
    while (enum.hasMoreElements()) {
    TableColumn column = (TableColumn)enum.nextElement();
    if( column.getModelIndex() == 0 ) {
    column.setPreferredWidth(column0Width);
    column.setCellEditor( new ValidateCellDataEditor(true) );
    if( column.getModelIndex() == 1) {
    column.setPreferredWidth(column1Width);
    column.setCellEditor(new AcceptenceComboBoxEditor(getAcceptenceOptions()));
    // If the cell should appear like a combobox in its
    // non-editing state, also set the combobox renderer
    //column.setCellRenderer(new AcceptenceComboBoxRenderer(getAcceptenceOptions()));
    if( column.getModelIndex() == 2 ) {
    column.setPreferredWidth(column2Width); // width of column
    column.setCellEditor( new ValidateCellDataEditor(false) );
    jScrollPane1 = new javax.swing.JScrollPane(jTable1);
    jScrollPane1.setPreferredSize(new java.awt.Dimension(480, 280));
    jTable1.setMinimumSize(new java.awt.Dimension(60, 70));
    //jTable1.setPreferredSize(new java.awt.Dimension(300, 70));
    //jScrollPane1.setViewportView(jTable1);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    jPanel1.add(jScrollPane1, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    add(jPanel1, gridBagConstraints);
    // set the row height
    jTable1.setRowHeight(rowHeight);
    // set selection color
    jTable1.setSelectionBackground(rowSelectionBackground);
    // set the single selection
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    // avoid table header to resize/ rearrange
    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.getTableHeader().setResizingAllowed(false);
    // Table header font
    jTable1.getTableHeader().setFont( new Font( jTable1.getFont().getName(),Font.BOLD,jTable1.getFont().getSize() ) );
    jButton1.setMnemonic(KeyEvent.VK_A);
    // action of add button
    jButton1.addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent actionEvent){
    // If a button press is the trigger to leave a JTable cell and save the data in model
    if(jTable1.isEditing() ){
    //System.out.println("table is edition ");
    String text=((javax.swing.text.JTextComponent)jTable1.getEditorComponent()).getText();
    jTable1.setValueAt(text,jTable1.getSelectedRow(),jTable1.getSelectedColumn()) ;
    jTable1.getCellEditor().cancelCellEditing();
    // find out total available rows
    int totalRows = jTable1.getRowCount();
    int cols = jTable1.getModel().getColumnCount();
    if( jTable1.getModel() instanceof DefaultTableModel ) {
    ((DefaultTableModel)jTable1.getModel()).addRow(new Object[cols]);
    int newRowCount = jTable1.getRowCount();
    // select the first row
    jTable1.getSelectionModel().setSelectionInterval(newRowCount-1,newRowCount-1);
    jButton2.setMnemonic(KeyEvent.VK_D);
    // action of Delete button
    jButton2.addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent actionEvent){
    int totalRows = jTable1.getRowCount();
    // If there are more than one row in table then delete it
    if( totalRows > 0){
    int selectedOption = JOptionPane.showConfirmDialog(null,"Are you sure you want to delete this audit row?","Coeus", JOptionPane.YES_NO_OPTION);
    // if Yes then selectedOption is 0
    // if No then selectedOption is 1
    if(0 == selectedOption ){
    // get the selected row
    int selectedRow = jTable1.getSelectedRow();
    System.out.println("Selected Row "+selectedRow);
    if( selectedRow != -1 ){
    DefaultTableModel dm= (DefaultTableModel)jTable1.getModel();
    java.util.Vector v1=dm.getDataVector();
    System.out.println("BEFOE "+v1);
    v1.remove(selectedRow);
    jTable1.removeRowSelectionInterval(selectedRow,selectedRow);
    System.out.println("After "+v1);
    }else{
    // show the error message
    JOptionPane.showMessageDialog(null, "Please Select an audit Row", "Coeus", JOptionPane.ERROR_MESSAGE);
    } // end of initcomponents
    class AcceptenceComboBoxRenderer extends JComboBox implements TableCellRenderer {
    public AcceptenceComboBoxRenderer(String[] items) {
    super(items);
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column) {
    if (isSelected) {
    setForeground(table.getSelectionForeground());
    super.setBackground(rowSelectionBackground);
    } else {
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    // Select the current value
    setSelectedItem(value);
    return this;
    class AcceptenceComboBoxEditor extends DefaultCellEditor {
    public AcceptenceComboBoxEditor(String[] items) {
    super(new JComboBox(items));
    } // end editor class
    public class ValidateCellDataEditor extends AbstractCellEditor implements TableCellEditor {
    // This is the component that will handle the editing of the
    // cell value
    JComponent component = new JTextField();
    boolean validate;
    public ValidateCellDataEditor(boolean validate){
    this.validate = validate;
    // This method is called when a cell value is edited by the user.
    public Component getTableCellEditorComponent(JTable table, Object value,
    boolean isSelected, int rowIndex, int vColIndex) {
    if (isSelected) {
    component.setBackground(rowSelectionBackground);
    // Configure the component with the specified value
    JTextField tfield =(JTextField)component;
    // if any vaidations to be done for this cell
    if(validate){
    //tfield.setDocument(new JTextFieldFilter(JTextFieldFilter.NUMERIC,4));
    tfield.setText( ((String)value));
    // Return the configured component
    return component;
    // This method is called when editing is completed.
    // It must return the new value to be stored in the cell.
    public Object getCellEditorValue() {
    return ((JTextField)component).getText();
    // This method is called just before the cell value
    // is saved. If the value is not valid, false should be returned.
    public boolean stopCellEditing() {
    String s = (String)getCellEditorValue();
    return super.stopCellEditing();
    public void itemStateChanged(ItemEvent e) {
    super.fireEditingStopped();
    }//end of ValidateCellDataEditor class
    public static void main(String args[]){
    JFrame frame = new JFrame();
    AuditPanel auditPanel = new AuditPanel();
    frame.getContentPane().add(auditPanel);
    auditPanel.setAcceptenceOptions(new String[]{"Accepted", "Rejected", "Requested"} );
    java.util.Vector colVector = new java.util.Vector();
    colVector.add("Fiscal Year");
    colVector.add("Audit Accepted");
    colVector.add("Comment" );
    auditPanel.setColumnNames( colVector);
    auditPanel.renderPanel();
    frame.pack();
    frame.show();

    Hi,
    I've got the solution for it. As when the cursor is in cell of
    a row and hit the delete button, the data in that cell is not saved,
    So i'm trying to save the data first into the model then firing the action event by doing this ..
    jButton2.addActionListener( new ActionListener(){       
    public void actionPerformed(ActionEvent actionEvent){           
    // If a button press is the trigger to leave a JTable cell and save the data in model
    if(jTable1.isEditing() ){                   
    String text=((javax.swing.text.JTextComponent)jTable1.getEditorComponent()).getText();
    jTable1.setValueAt(text,jTable1.getSelectedRow(),jTable1.getSelectedColumn()) ;
    jTable1.getCellEditor().cancelCellEditing();
    // HERE DO THE DELETE ROW OPERATION
    <yaman/>

  • Update Behavior using Multiple tables

    I'm trying to use the Update behavior from Dreamweaver MX2004
    to update fields from diferent joined tables. The search form works
    OK as I joined the tables and I get great results (see SQL Query
    below). When I try to create link to a detail page from the master
    page and I use the same recordset as below and I use the update
    behavior, I can only choose a table at the time to update fields
    using only one key. If I choose only one table and pass one key
    field is OK but I need to update all three joined tables. Is there
    a way to do something like this in the Link field in the master
    page calling the detail page? Is there is a correct way to pass the
    three keys from the master page to the detail page? I'm using ASP
    and standard SQL. The environment is Windows for testing and SQL
    server.
    Detail Page Parameters (not sure if this could be done):
    details_Admin_Skill_Resource.asp?resourceSkillMapID=
    <%=(Recordset1.Fields.Item("resourceSkillMapID").Value)%>?<%=(Recordset1.Fields.Item("skil lID").Value)%>?<%=(Recordset1.Fields.Item("resourceId").Value)%>
    I'm also inserting hidden fileds in the detail form. Any
    Ideas how to update several tables in DW MX2004 with the update
    behavior?
    This is the query in the recordset and it is working OK as it
    produces results from the search page. What modifications I need to
    do to this recordset in the update page?
    Thank you for your help!!!
    Carlos Melendez
    [email protected]
    This is what I typed in the advanced SQL box in the
    recordset.
    SELECT
    ResourceSkillMapping.resourceSkillMapID,ResourceSkillMapping.skillID,ResourceSkillMapping .competenceLevel,skill.skillname,resource.resourceName,resource.resourceLoginId,resource.r esourceId,resource.profileId,resource.resourceGroupID,resource.resourceType,resource.activ e,resource.autoAvail,resource.extension,resource.orderInRG,resource.dateInactive,resource. assignedTeamID,resource.resourceFirstName,resource.resourceLastName
    FROM ResourceSkillMapping INNER JOIN Skill ON
    ResourceSkillMapping.skillID = Skill.skillID INNER JOIN Resource ON
    ResourceSkillMapping.resourceSkillMapID =
    Resource.resourceSkillMapID
    WHERE (Resource.resourceLoginID LIKE '%Agent_asp%') AND
    (Resource.active = 1)
    Variables
    Skill_asp for skillName
    Agent_asp for resourceLoginID
    Default value of variables is 1 to display all records
    Runtime
    Request.QueryString("skillname")
    Request.QueryString("resourceLoginID")

    ITCoreTeam wrote:
    > I'm trying to use the Update behavior from Dreamweaver
    MX2004 to
    update fields
    > from diferent joined tables. The search form works OK
    as I joined the
    tables
    > and I get great results (see SQL Query below). When I
    try to create
    link to a
    > detail page from the master page and I use the same
    recordset as
    below and I
    > use the update behavior, I can only choose a table at
    the time to
    update fields
    > using only one key. If I choose only one table and pass
    one key field
    is OK but
    > I need to update all three joined tables. Is there a
    way to do
    something like
    > this in the Link field in the master page calling the
    detail page? Is
    there is
    > a correct way to pass the three keys from the master
    page to the
    detail page?
    > I'm using ASP and standard SQL. The environment is
    Windows for
    testing and SQL
    > server.
    > Detail Page Parameters:
    > details_Admin_Skill_Resource.asp?resourceSkillMapID=
    >
    >
    <%=(Recordset1.Fields.Item("resourceSkillMapID").Value)%>?<%=(Recordset1.Fields.
    >
    Item("skillID").Value)%>?<%=(Recordset1.Fields.Item("resourceId").Value)%>
    >
    > I'm also inserting hidden fileds in the detail form.
    Any Ideas how
    to update
    > several tables in DW MX2004 with the update behavior?
    >
    >
    > This is the query in the recordset and it is working OK
    as it
    produces results
    > from the search page. What modifications I need to do
    to this
    recordset in the
    > update page?
    >
    >
    > Thank you for your help!!!
    > Carlos Melendez
    > [email protected]
    >
    > This is what I typed in the advanced SQL box in the
    recordset.
    > SELECT
    >
    >
    >
    ResourceSkillMapping.resourceSkillMapID,ResourceSkillMapping.skillID,ResourceSki
    >
    llMapping.competenceLevel,skill.skillname,resource.resourceName,resource.reso
    >
    >
    >
    urceLoginId,resource.resourceId,resource.profileId,resource.resourceGroupID,reso
    >
    urce.resourceType,resource.active,resource.autoAvail,resource.extension,resou
    >
    >
    >
    rce.orderInRG,resource.dateInactive,resource.assignedTeamID,resource.resourceFir
    > stName,resource.resourceLastName
    > FROM ResourceSkillMapping INNER JOIN Skill ON
    ResourceSkillMapping.skillID =
    > Skill.skillID INNER JOIN Resource ON
    ResourceSkillMapping.resourceSkillMapID =
    >
    > Resource.resourceSkillMapID
    > WHERE (Resource.resourceLoginID LIKE '%Agent_asp%') AND
    (Resource.active = 1)
    > OR (Skill.skillName LIKE '%Skill_asp%')
    >
    > Variables
    > Skill_asp for skillName
    > Agent_asp for resourceLoginID
    >
    > Default value of variables is 1 to display all records
    >
    > Runtime
    > Request.QueryString("skillname")
    > Request.QueryString("resourceLoginID")
    >
    One solution is to create a view in SQL, that is exactly the
    same as
    your SELECT above. You then use the view name instead of the
    table name
    in your UPDATE statement. I know in the SQL world that this
    is possible,
    but I don't know if the Dreamweaver update behaviour will see
    the views
    stored on your SQL server.
    Steve

  • Data Load Wizard not Inserting/Updating all rows

    Hello,
    I am able to run through the whole Data Load Wizard without any problems. It reports that it successfully inserted/updated all the rows, but when I look in the table, I find a few rows that were not updated correctly. Of the entries I've identified that don't get inserted/updated properly, I've noticed they are the same rows that I was having issues with earlier. The issue was a number format error, which I solved by providing an explicit number format.
    Is it possible that the false inserts/updates might still be tied to the number format, or are there other reasons why the data load is failing on only some rows.
    Thanks,
    Brian
    Edited by: 881159 on Mar 14, 2012 5:05 PM

    Hi Brian,
    I am not aware of the situation where you get false results. However, there were some issues with number/date formats that sometime were not properly parsed, and this has been fixed in 4.1.1 patch. would your case be different from the one described in bug 13656397, I will be happy to get more details so that I can take a look at what is going on.
    Regards,
    Patrick

  • I just updated my iPhone 4 to iOS6.  In the process, I ran into a problem and had to restore factory settings.  After syncing the phone, I see that 218 apps need to be updated. When selecting "update all," it says "manage local device storage usage." How?

    I just updated my iPhone 4 to iOS6.  In the process, I ran into a problem and had to restore factory settings.  After syncing the phone, I see that 218 apps need to be updated. When selecting "update all," it says "Cannot Download.  There is not enough available local storage to download these items.  You can manage your local device storage usage in Settings."
    How can this be the case when I haven't changed any apps from before updrading to iOS6, and I don't have any music yet on the phone?  Why is it telling me there is not enough local space?

    Hi RileyAvaCadenRiver,
    If you recently updated your iPhone to iOS7, you will need to update iTunes on your computer to iTunes 11.1 or newer for it to correctly recognize the iPhone. You may find the following link helpful:
    Apple: iTunes 11.1.1
    http://support.apple.com/kb/DL1614
    Regards,
    - Brenden

  • Following the most recent IOS IPhone update our Iphone calendars, contacts and messages have all merged. This problem has never happened before. We all use the same Itunes account as a family and one AppleID. Does anyone know the cause of this problem?

    We have 4 Iphones. As a family we have happily shared the same ITunes account and one AppleID. After the most recent iPhone IOS update all our contacts and calendars have merged and we randomly receive some messages that one of us has sent to another contact.
    This is causing chaos.
    Can anyone help me with:
    1. Has anyone experienced a similar problem recently?
    2. The records to the individual phones have not been saved been saved separately. After this merging of all the data into one composite record, is there anyway to reverse the change and restore the phones to just their individual records?
    3. I guess that the cause may be the common AppleID. I have tried to create my own AppleID but my personal email address is already linked to the existing AppleID so I am blocked from setting up a separate AppleID in my own name. Does anyone know how I can get around this block?
    4. Would it be better to create a separate Apple ICloud address for each of us as well? How do I do this?
    Many thanks in anticipation,
    Peter

    This is exactly what happens when sharing a single Apple ID for iCloud and iMessage.  Why would you expect any different?

Maybe you are looking for

  • Message no. M8657, The list of blocked invoices is incomplete

    Hi Experts, The MRBR report is processed to list all invoices in Release block, however it is in-complete and SAP displays an information message to alert this. This means that there are blocked invoices in SAP that users are unaware of and this coul

  • Creating a table with a variable number of columns

    Hi, I am working on a form and I want to allow the user to add tables to the form. If I give them a base table (for instance, a table with two rows and columns) is there any way to allow the user to add columns to the table. I can add new instances o

  • Link for 11.1.0.7 patch set 6890831

    Hi Experts, Could you please provide me the download link for 11.1.0.7 patch set 6890831. I require trhis to upgrade from 11.1.0.6 to 11.1.0.7 in order to work on AWM (Analytic Worklspace Manager) regards, Ravi Remje

  • DashBoard Reporting?

    Hi I need to prepare dash board reports using BI 7.0. In my BI 7.0 Bex Analyzer we can use design mode tool bar to include desing items. The client want to publish the reports. So do i need to use only Web Application Designer to build dash board rep

  • Podcast not showing up in seach

    Hi there, My podcast (Random Stuff Radio) was recently added to iTunes and is not showing up when I search for it. Do I have to do anything extra for it appear in searches? Thanks.