Error in deleting the row

Dear i want to add or delete the rows from table... i am providing u the code but i m unable to delete the row.... can u find the bug
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dTD">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Setting test Case</title>
<SCRIPT TYPE="text/javascript">
var count = "1";
function addRow(in_tbl_name)
var tbody = document.getElementById(in_tbl_name).getElementsByTagName("TBODY")[0];
// create row
var row = document.createElement("TR");
// create table cell 1
var td1 = document.createElement("TD")
var strHtml1 = "<FONT SIZE=\"+1\">count</FONT>";
td1.innerHTML = strHtml1.replace(/count/g,count);
// create table cell 2
var td2 = document.createElement("TD");
var strHtml2 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td2.innerHTML = strHtml2.replace(/count/g,count);
// create table cell 3
var td3 = document.createElement("TD");
var strHtml3 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td3.innerHTML = strHtml3.replace(/count/g,count);
// create table cell 4
var td4 = document.createElement("TD");
var strHtml4 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td4.innerHTML = strHtml4.replace(/count/g,count);
// create table cell 5
var td5 = document.createElement("TD");
var strHtml5 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td5.innerHTML = strHtml5.replace(/count/g,count);
// create table cell 6
var td6 = document.createElement("TD");
var strHtml6 = "<INPUT TYPE=\"text\" NAME=\"in_name\" SIZE=\"6\" MAXLENGTH=\"6\" STYLE=\"height:24;border: 1 solid;margin:0;\">";
td6.innerHTML = strHtml6.replace(/count/g,count);
// create table cell 7
var td7 = document.createElement("TD");
var strHtml7 = "<INPUT TYPE=\"Button\" CLASS=\"Button\" onClick=\"delRow()\" VALUE=\"Delete\">";
td7.innerHTML = strHtml7.replace(/count/g,count);
// append data to row
row.appendChild(td1);
row.appendChild(td2);
row.appendChild(td3);
row.appendChild(td4);
row.appendChild(td5);
row.appendChild(td6);
row.appendChild(td7);
// append row to table
tbody.appendChild(row);
// add to count variable
count = parseInt(count) + 1;
function delRow()
var current = window.event.srcElement;
//here we will delete the line
while ((current = current.parentElement) && current.tagName !="TR")
current.parentElement.removeChild(current);
</script>
</head>
<body>
<center>
<h3>Setting Test Case</h1>
<TABLE ID="tbltest" border="1"STYLE="border width:1 orange dashed;background color:#F0E68C;table-row width:2;">
<TR><TH>Rownum</TH><TH>On Time</TH><TH>Off Time</TH><TH>StartUp Voltage</TH>
<TH>Deep Voltage</TH> <TH>No. of Pulses</TH><TD align="center">
<INPUT TYPE="Button" onClick="addRow('tbltest')" VALUE="Add Row"></TD></TR>
</TABLE>
</center>
</body>
</html>

I ended up rebuilding the server.  Deployed a new OVA, installed PI 2.2 and patched the Critical Fixes ( PI2.2.1 POODLE fix and PI 2.2.1 Maintenance Release).  The I applied the device pack 2.2.  Finally I restored the backup.  The application has been running stable.  Goodluck.
Phil.

Similar Messages

  • Error while deleting a row from the Entity Object

    Hi OAF Guys,
    i am unable to delete the newly created row from the entity object.
    let me explain my scenario.
    1. i have a table of which some of the columns are mandatory.
    2. I am writing the code in the validateEntity to check wether the user really enter anything into the fields.
    3. My problem is, when the user creates row and wanted to delete the row without entering any details, the validate entity of the EO gets fired which will not allows to delete the row.
    Is there any workaround for this problem.
    Regards,
    Nagesh Manda.

    Hi Tapash,
    I am very sorry for not providing you the complete details of my scenario. Here i am explaining
    1. what code you have placed while creating the row and in validation method on EOImpl.
    while creating a new row i am initializing the primary key of the EO with the sequence value.
    2.When you say, you are unable to delete the row, are you getting a error message ? if yes, custom message or fwk error ?
    its not the fwk error, its the custom message which wrote in my validateEntity method of EO to check whether the user had entered all the necesary columns or not.
    3.How are you trying to delete the row ?
    while the user clicks on the delete switcher i am getting the primary key of the row and searching for the row in the vo and finally deleting it.
    The problem arises when the user creates a row, and later doesnt want to enter the details and delete it. Here while deleting the row the validateEntity method of the EO gets fired and doesnt allow me to do so :(.
    Any way appreciate your help tapash.
    Regards,
    Nagesh Manda.

  • "Error: An error occured deleting the import map"

    Hello,
    When trying to delete imported data, I get the following message :
    Error: An error occured deleting the import map
    Detail: Data access error
    And the imported data aren't deleted.
    The loaded file has around 350000 rows for 12 dimensions.
    I never succeeded to load it in one time, only in 3 times with 3 files. It was a first issue.
    And I want now to delete the import to do it again and I can't, due to the error.
    Thanks
    Patrick
    PS : FDM version 11.1.1.3.01
    Log :
    ** Begin FDM Runtime Error Log Entry [2013-04-03-08:49:22] **
    ERROR:
    Code............................................. -2147217900
    Description...................................... ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'
    DELETE FROM tDataSeg3 WHERE ((PartitionKey) = 749) AND (TO_CHAR(PeriodKey,N'YYYYMMDD') Between N'20111231' And N'20111231') AND ((CatKey) = 12)
    Procedure........................................ clsDataManipulation.fExecuteDML
    Component........................................ upsWDataWindowDM
    Version.......................................... 1111
    Thread........................................... 4956
    IDENTIFICATION:
    User............................................. ollivierp
    Computer Name.................................... EPM05
    App Name......................................... FDM_MCHII
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... poh1
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... HPMCHII
    Location ID...................................... 749
    Location Seg..................................... 3
    Category......................................... COMPTE
    Category ID...................................... 12
    Period........................................... Dec - 2011
    Period ID........................................ 31/12/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... False
    Is Auditor....................................... False
    ** Begin FDM Runtime Error Log Entry [2013-04-03-08:49:22] **
    ERROR:
    Code............................................. -2147217900
    Description...................................... Data access error.
    Procedure........................................ clsImpProcessMgr.fClearData
    Component........................................ upsWObjectsDM
    Version.......................................... 1111
    Thread........................................... 4956
    IDENTIFICATION:
    User............................................. ollivierp
    Computer Name.................................... EPM05
    App Name......................................... FDM_MCHII
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... poh1
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... HPMCHII
    Location ID...................................... 749
    Location Seg..................................... 3
    Category......................................... COMPTE
    Category ID...................................... 12
    Period........................................... Dec - 2011
    Period ID........................................ 31/12/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... False
    Is Auditor....................................... False
    Edited by: user1104274 on 3 avr. 2013 00:10

    The quota on the tablespace 'UNDOTBS1' needs to be extended to allow for the tablespace to grow. Right now it has met it's maximum quota.

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • Error While deleting the Profit Center

    Hi I am getting the below error while  deleting the Profit center. Please help me how to fix this issue...
    Profit center Scenario was activated in New GL Accounting
    what configurations do i need to change to fix this error? Kindly advise me..
    Thanks
    Kishore

    Dear,
    while deleting  the profit center we have to requrie follow the steps
    1) OBR1 - Reset Transaction data
    2)OBR2 - Reset the master data
    3)OKKS - Set Controlling Area
    4)OKC3 - Delete Transcation Data
    5) KL14 - Delete Activity Types
    6)OKE5 - Profit center De - Active
    7)OKE1 - Profit center Transcation data delete
    8)OKE2 - profit center delete
    if if you follow above steps easily we can make the delete the profitcenter and we donot have to activate profitcenter
    i hope solve you r problem
    With regards /G chandu

  • Error while deleting the agreement

    Hi,
    I am facing the following error while deleting the agreement.
    There was an error deleting agreement.
    Error -: AIP-16015: Delete of Internal Delivery Channel Usage failed with error: Cannot delete Internal Delivery Channel Usage which is referenced by Participant Delivery Channel
    Error -: AIP-16011: Cannot delete Internal Delivery Channel Usage which is referenced by Participant Delivery Channel
    We are getting the same error while deleting the individual TP participants from the agreement.
    I don't have any agreements deployed on the B2B.
    Can you please let me know the reason for this error?
    Regard,
    Ravi Shah

    Please refer B2B Error:- AIP-16015 and AIP-16016 when deleting a TP Agreement

  • Error while deleting the Master data

    Hi Friends,
    i am getting the below error while deleting the data from a master data:-
    The system is unable to delete all of the specified master data,because some of it is still in use. (See log:Object RSDMD, sub-object MD_DEL )
    Do you want to delete the data records that are no longer in use?
    Could you guide how should i proceed to delete the data.
    Regards,
    Hirdesh

    Hi Hirdesh,
        If you are using master data in someother data targets u cant delete master data.So first you have to delete the data in data targets where this particual master data object is used, then remove the data in master data object.
    Regards
    Prasad

  • How to delete the row created by AddAnotherRow Button

    Hi Every one,
    We have a seeded page in Oracle Sales Opportunity Update.
    Here we have an activities region where we can add activities by clicking on AddAnotherRow Button.
    But there are no restriction of the row created in activities
    The issue we are facing is the end users are clicking the AddAnotherRow Button but not able to clear the row from the table.
    Is there any functionality where the user can delete the row created by AddAnotherRow
    Regards,
    Krishna

    Hi Krishna,
    If the delete functionality is not available on the page then there is no other way, you need to implement it.
    Regards,
    Reetesh Sharma

  • HOW TO DELETE THE ROW FROM DATABASE

    hI,
    Iam pasting my code below.My problem isi retrieve rows from database and display them in jsp page in rows.For each row there is delete hyperlink.Now when i click that link i should only delete the row corresponding to that delete link temporarily but it should not delete the row from database now.It should only delete the row from database when i click the save button.How can i do this can any one give some code.
    thanks
    naveen
    [email protected]
    <%@ page language="java" import="Utils.*,java.sql.*,SQLCon.ConnectionPool,java.util.Vector,java.util.StringTokenizer" %>
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>Item Details</title>
    <script>
    function submitPage()
    document.details.action = "itemdetails.jsp" ;
    document.details.submit();
    </script>
    </head>
    <body>
    <form name="details" action="itemdetails.jsp" method="post">
    <%
    ConnectionPool pool;
    Connection con = null;
    Statement st;
    ResultSet rs =null;
    %>
    <table border="0" cellpadding="0" cellspacing="0" width="328">
    <tr>
    <td width="323" colspan="4"><b>Reference No :</b> <input type="text" name="txt_refno" size="14">
    <input type="submit" value="search" name="search" ></td>
    </tr>
    <tr>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item Code</b></font></td>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item No</b></font></td>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Amount </b></font></td>
    <td width="80" bgcolor="#000099"> </td>
    </tr>
    <%
    pool= new ConnectionPool();
    Utils utils = new Utils();
    double total =0.00;
    String search =utils.returnString(request.getParameter("search"));
    if(search.equals("search"))
    try
    String ref_no =utils.returnString(request.getParameter("txt_refno"));
    String strSQL="select * from ref_table where refno='" + ref_no + "' ";
    con = pool.getConnection();
    st=con.createStatement();
    rs = st.executeQuery(strSQL);
    while(rs.next())
    String itemcode=rs.getString(2);
    int item_no=rs.getInt(3);
    double amount= rs.getDouble(4);
    total= total + amount;
    %>
    <tr>
    <td width="81"><input type=hidden name=hitem value=<%=itemcode%>><%=itemcode%></td>
    <td width="81"><input type=hidden name=hitemno value=<%=item_no%>><%=item_no%></td>
    <td width="81"><input type=hidden name=hamount value=<%=amount%>><%=amount%></td>
    <td width="80"><a href="delete</td>
    </tr>
    <%
    }catch(Exception e){}
    finally {
    if (con != null) pool.returnConnection(con);
    %>
    <tr>
    <td width="323" colspan="4">
    <p align="right"><b>Total:</b><input type="text" name="txt_total" size="10" value="<%=total%>"></td>
    </tr>
    <tr>
    <td width="323" colspan="4">                   
    <input type="button" value="save" name="save"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    You mean when you click on the hyperlink you want that row to disappear from the page, but not delete the row from the database until a commit/submit button is pressed?
    Personally, I think I'd prefer that you have a delete checkbox next to every row and NOT remove them from the display if I was a user. You give your users a chance to change their mind about their choice, and when they're done they can see exactly which rows will be deleted before they commit.
    You know your problem, of course, so you might have a good reason for designing it this way. But I'd prefer not removing them from the display. JMO - MOD

  • How to delete the row from the ADF table using popup box

    Hi,
    I have one requirement like need to delete a record from the table, but that time need to show one popup window for confirmation of the deletion. I am using Delete buttom from the vo operations. I am able to delete the row with out popup but when i used the popup that time deletion is not happening.
    Can any one help me in this.
    Regards,

    Issue was resolved.

  • I want a user to only be able to update/delete the rows they inserted

    hi guys,
    I have a table 2 users are inserting into. They can also update/delete the rows in the table. However, I do not want them to be able to update/delete the others users row. I only want them to have update/delete at the row level.
    how can this be achieved?
    thanks

    Another idea if you really have just two (or a fixed set of N) users.
    Does your table have a generic primary key (PK)?
    You could use two (N) sequences having two (N) distinct sets of numbers as e.g user a is using sequences less than 1000000000, the other one values larger or equal to 1000000000.
    create sequence <user_a>.pk_seq start with 0;
    create sequence <user_b>.pk_seq start with 1000000000;An insert trigger uses <user_a>.pk_seq or <user_b>.pk_seq for generating the PK depending upon the current user for new records.
    An update trigger allows updates only, if the PK of the record to be updated is in the range of sequences belonging to the current user.

  • Delete the rows if the check box is selected.

    Dear all,
    i have a block (not database block). i added a check box to the same block. now i want to delete the row against which the check box is selected.
    i wrote the following code in when-button-pressed trigger.
    IF Checkbox_Checked('CHK_DEL') THEN
         delete from fa_01_11
         where as_id = :as_id;
    END IF;
    commit;
    but when i select only one check box it delete the all rows from the table if the condition is satisfied.
    here is the data in my table
    as_id year month
    63     2006     4     0     -1183.92     1
    63     2006     5     0     -1183.92     1
    63     2006     6     0     -1183.92     1
    63     2006     7     0     -1183.92     1
    63     2006     8     0     -1183.92     1
    63     2006     9     0     -1183.92     1
    63     2006     10     0     -1183.92     1
    63     2006     11     0     -1183.92     1
    63     2006     12     0     -1183.92     1
    what's the proble?
    Regards:
    Muhammad Nadeem
    Message was edited by:
    Muhammad Nadeem

    You need to run the code for each record and you need to find something which is unique. as_id is not unique.
    untested:
    declare
      last_rec boolean := false;
      deleted boolean := false;
    begin
      first_record;
      loop
        deleted := false;
        last_rec := :system.last_record = 'TRUE';
        IF Checkbox_Checked('CHK_DEL') THEN
          delete from fa_01_11
            where as_id = :as_id
            and year = :year
            and month = :month;
          clear_record;
          deleted := true;
        END IF;
        exit when last_rec;
        if not deleted then
          next_record;
        end if;
      end loop;
      commit;
    end;

  • To delete the row for the corresponding checked rows in alv

    hi,
    i have a alv report with check boxes,
    can any one say how to delete the row for the corresponding checked rows.

    hi
    give In REUSE_ALV_LIST_DISPLAY
    I_CALLBACK_USER_COMMAND  = P_USER_COMMAND
    FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                              RS_SELFIELD TYPE SLIS_SELFIELD.
    IF R_UCOMM = C_DELETE. where CONSTANTS : C_DELETE(6) TYPE C VALUE 'DELETE',
      READ TABLE IT_ITAB WITH KEY REC_SEL = C_X.
    LOOP AT IT_MARA WHERE REC_SEL = 'X'.
            MOVE-CORRESPONDING IT_ITAB TO IT_TEMP.
            APPEND IT_TEMP.
            CLEAR IT_TEMP.
          ENDLOOP.
    where it_temp IT_TEMP TYPE STANDARD TABLE OF itab WITH HEADER LINE,
    DELETE ITAB FROM TABLE IT_TEMP.
    HOPE THIS HELPS
    PRIYA

  • To add/delete the rows in ALV report outpout

    Hi,
    Is there any way by which we can  add/delete the rows in ALV report output.
    Thanks
    Ankul

    Hi,
    Try out this way:
    data: i_modified TYPE STANDARD TABLE OF mara,"For getting modified rows
            w_modified TYPE mara.
    CASE e_ucomm.
          WHEN 'EDIT'.
          perform save_database.
          CALL METHOD ref_GRID->REFRESH_TABLE_DISPLAY.
        ENDCASE.
    FORM SAVE_DATABASE .
    data: i_selected_rows TYPE lvc_t_row,                "Selected Rows
          w_selected_rows TYPE lvc_s_row.
    * Getting the selected rows index
        CALL METHOD ref_grid->get_selected_rows
                    IMPORTING  et_index_rows = i_selected_rows.
    * Through the index capturing the values of selected rows
        LOOP AT i_selected_rows INTO w_selected_rows.
        READ TABLE it_tab INTO wa_it_tab INDEX w_selected_rows-index.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING wa_it_tab TO w_modified.
          APPEND w_modified TO i_modified.
        ENDIF.
      ENDLOOP.
      MODIFY mara FROM TABLE i_modified.
    Thanks,
    Krishna

  • Attribute change run fails - "Error when deleting the data record /B05/X.."

    Hello,
    I get the error message "Error when deleting the data record /B05/X.." on doing the change run.
    I have already done RSRV on this objects and found no errors, but still the activation fails.
    please give your suggestions ASAP to fix the issue as it is on production system.
    Thanks.

    Attribute change run could fails due to 2 reasons-
    (1) attribute xchange run is already runnnig for any toher object(monitor lock) (check by thi prog-RSDDS_CHANGERUN_MONITOR)
    (2) data is loading deleting from the object on which attribut changerun is running.(go in a manage tab and check)
    check this two conditions and rerun the attribute changrun again from program - RSDDS_AGGREGATES_MAINTAIN and give the master data name in the selection.
    Hope it helps you.

Maybe you are looking for

  • Reading Health XML files

    I was able to export info from the Health app and got 2 files - export.xml and export_ca.xml. Unfortunately, any app that I can get to open the XML file is just a list of delimited information. I can read in a text editor but can not import into Numb

  • MBP w/Intel HD 3000 - ProEngineer?

    Has anyone run BootCamp using the Intel HD3000 graphics card? It doesn't show as a supported card and wanted to find out if it will run on it. Thanks!

  • Is there a substitute for windows flash software?

    Is there an Apple Substitute for flash software?

  • Default 'from' email address

    Hi, I use (and prefer) my +dot mac+ email address over the later +dot me+ one. My default email address from my computers when using Apple Mail app or Mobile Me via a web browser is set to my +dot mac+ address. But from my iPhone, the default +sent f

  • Installing ram upgrade on Slimline s5150t quad core

    I have a quad core s5150. I recently tried to add two additional RAM modules. I verified that I had purchased the correct RAM on curcial.com and by speaking with their reps. The computer would not take the RAM in any configuration. We tried seating t