Delete Selected Records

Hi Guys,
Im trying to update an old form that lets me delete records
in an access database.
Im using DW CS3 and am looking for some guidance or a
tutorial on doing a delete by deleteing records selected with a
select box..
If anyone can assist me id be very greatfull.
Thanks

Hi Guys,
Ive made some progress with this and i think its down to how
im setting the data types.. I found some info on the help and have
this working on single records now!! but when I choose several
records with the checkbox's I get the error:
" ADODB.Command error '800a0d5d' Application uses a value of
the wrong type for the current operation. "
So I have looked at the var getting passed by the checkbox's
and they seem to be passing all the correct values but if I select
more than 1 at a time to delete it errors out..
This is the line it errors out on.
Command1.Parameters.Append
Command1.CreateParameter("intRecordIDs", 5, 1, -1,
MM_IIF(Request("checkbox1"), Request("checkbox1"),
Command1__intRecordIDs & ""))
I have the DataType set to Double now..
Thoughts are very welcome.
Thanks
W

Similar Messages

  • Deleting selected record in Dynamic Internal table

    Hi Friends,
    I want to delete selected row from a dynamic internal table. The selected entry should be deleted from Adobe and as well as Webdynpro abap.
    Kindly help me how to solve this problem.
    Thanks in advance.
    Regards,
    Phani.

    Hi Matthias,
    Thanks a lot for responding.
    In my adobe i kept a check box to delete the record. It should delete the selected ones. But right now, its deleting one by one.
    I have coded following script for delete button:
    IT_TIME_SHEET --> is my internal table
    G_ROW_STATUS is the field to track the action performed.
    var tlength = xfa.resolveNodes("IT_TIME_SHEET.DATA[*]").length;
    for ( var i=0; i<tlength; i++
    if(xfa.resolveNode("IT_TIME_SHEET.DATA["i"].FLAG").rawValue ==
    1 )
    IT_TIME_SHEET.DATA.instanceManager.removeInstance(i);
    G_ROW_STATUS.rawValue = "DELETE";
    In the Webdynpro abap following code I wrote:
        row_count = 1.
        FIELD-SYMBOLS <wa> TYPE zshr_time_sheet_time.
        LOOP AT it_time_sheet ASSIGNING <wa>.
          <wa>-srl_no = row_count.
          row_count = row_count + 1.
        ENDLOOP.
        last_row = <wa>-srl_no.
          DELETE it_time_sheet WHERE srl_no EQ last_row.
    Suppose if two records checkboxes are selected I can loop at the internal table IT_TIME_SHEET in webdynpro and delete where checkbox is selected.
    But problem is once user deletes records, adobe is deleting only one record and if i delete two records from webdynpro it looks like something wrong for the user.
    Please help me how to solve this problem.
    Regards,
    Phani.

  • How to delete selected records in PSA?

    Hi,
    I want to delete two records from PSA, but in PSA delete option is  disabled, how can i delete two records from PSA,
    is it possible or not,
    Regards,
    Venkat.

    Hi Venkat,
    As already mentioned by Ansel you can use a DTP filter to achieve this.
    In the DTP, on Extraction tab, where it says Filter, click on it in change mode and there it gives you an option to create a routine.
    Write a routine for your logic and execute.
    Regards
    Hemant Khemani

  • Deleting selected record in a multi-record block

    I am using Form 6i.
    I have two multi-record block viz. BLK_A and BLK_B.
    BLK_A has record displayed property set to 4
    BLK_B has record displayed property set to 8
    Each block has checkbox item.
    BLK_A contains records retrieved from table after entering data in selection criteria.
    When checked on anyone checkbox of BLK_A, then it displays related information in BLK_B.
    But when I uncheck the checkbox of BLK_A, then how to delete records in BLK_B.
    Thanks in advance.
    Regards,
    Vikas

    No, absolutely not.
    I cannot use this method.
    Because if two checkbox is check in BLK_A, then records related to both record in BLK_A will display in BLK_B. If I uncheck any one checkbox of BLK_A, then only records related to that checkbox should be deleted.
    If I use your suggestion, then all data will be removed.
    Thanks and regards,
    Vikas

  • How to delete selected records from process form child form

    Hi,
    I have one child table attached to process form which has 6 columns.
    I have added 3 rows to the child form . if i tried to remove any row from the form always the first record is removing even though it is not selected to remove. I have coded according to Re: Removing from Child Process Form
    Please help me
    thanks in advance

    Can you tell us the code you had written?
    Regards,
    A

  • How I will delete on selected records ?

    Hi fiends,
    I have two database table records in a internal table(  with work area) .
    There have multiple records with same material number.
    This records displaying in module pool program.
    Where I can select individual records.
    How I will delete on selected records ?
    Give some idea.
    Thanking you.
    Subash

    Hi Subash,
    After selecting data into internal table you can delete duplicate date.
    Try like this.
    delete adjacent duplicates from itab comparing matnr.
    This will help you maintain unique record.
    Regards,
    vijay

  • Select records without deletion marker?

    I am trying to load data from the datasource 0INSP_CHAR, but I get a number of errors because I see duplicate records. Most of the records has a deletion-marking, but how do I select the records without deletion marker when I can only set a to- and a from-value? The records I want has no entry in the field so I cannot think of any entry that will select the correct records...   Selection A to V and Y to Z does not work...
    An other subset of the records differ only on a 'valid from'-field. So I thought I could put the data in an ODS and then select the record with the most recent 'valid from'-date. But I cannot see how to make sure that the newest record overwrite the older one. Is that because the setup I am planning is impossible...?
    An other strange thing is that the datasource has five characteristics and two other fields that are not mapped to an info object. I can use them for selection, but I cannot load the data to BW...?
    Regards,
    Christian Frier

    Hi Christian,
    normally if you make your attributes time depending in the attribute screen of 0insp_char you should be able to load the data. If you want to get rid of the 'deleted' records, create a start routine in the transfer rules and delete all records from datapak with that flag.
    Your second question should also be solved by having everything time dependent.
    regards
    Siggi

  • Please Help! Deleting multiple record by using checkbox selected

    Hello everybody,
    I am a new to JSP. I really don't know how to delete multiple record by using checkbox selected and pressing submit button.
    For example, deleting webmailbox letters using checkbox selected and delete button. The mail we checked will delete from the inbox.
    I like to use my user account deleting system of my project like above example.
    How can I do in JSP? I will very please you if you share you knowledge and code for me.
    If you have URL address, could you share me for reference?
    Please help me...
    With Thanks and Regards,
    wtdahl

    Take a look at this thread, I thing it answers your question quite good:
    http://forum.java.sun.com/thread.jsp?thread=516658&forum=45&message=2463505

  • How to delete the record in Table

    Hi Guru's,
    i have Table which contain no.of Records.
    i want to deleted one record. if i go to Table maint.Generator....from table itself..
    how to do that... when we deleting the record. can we create new TR for that?
    can anybody tell me.
    Thanks in Advance,
    venkat

    Hi,
    it is answered, here for my table there is no Table Maint.Generator.
    i just explained how i have done it.
    i just simply gone into Debug mode. there
    code = Dele.
    i have given. then i came out from debug mode to Table. there i just got Delete button on application tool bar.
    i selected the record then icliked on Delete button.
    it is got deleted.
    But it is not asking for any new Transport Request.
    Regards,
    Venkat

  • Error while updating or deleting a record

    Hi to all...
    i have created atable group_master with 2 fields Group_id and Group_name
    the user will specify a group_name in a text box and press save. Before commiting a seq number will be generated
    inside the form procedure and it will be inserted.
    The insert is working fine.
    But when i select a record i.e a group_name and change it contents and commit it, it is not commiting.
    when i checked the display error it showed Ora-01400 cannot insert null values into the table.
    Iam not inserting a value here iam updating the group name only.
    even when i delete a record it shows same error....
    can any one help to solve this....
    thanx in advance........

    I have when button pressed trigger whick helps to show the lov which contains the group_id and group_name;
    a := show_lov('lov27');
    if a then
    go_block('group_master');
    execute_query;
    end if;
    it is correctly fetching the delected data. but propmpts a message box asking Do u want to save the record?
    if i ignore it n modify the group_name and save it,still it shows unable to insert null value.
    i jus want a simple way to solve this....
    i want to fetch that particular record and modify or delete it.
    group_id n group_name cannot be null.
    i will be using Buttons for add,delete,update and save record. i will be using lov to fetch records for modification or deletion.
    how to avoid the message box which prompts when i call lov with execute_query.....
    * I tried Key-listval...but i didnt get any solution. i will try again....
    thanx for ur replies....

  • Trying to delete a record from an entity-based VO in ADF

    We are using J-Developer 9.0.5.2
    This is a web app using struts and ADF BC
    Click the link below to view part of the struts diagram that relates to this question
    http://home.earthlink.net/~katie1les/images/delete.gif
    1. We have a DataPage that displays a list of items (catalogItemLIsting.jsp). This is a view of all items in a particular category based on the ItemsVO. Each item has a delete icon beside it.
    2. The user clicks the delete icon which forwards to the bindDeleteItem DataAction that will bind that item number (through custom method in the AM) to an entity-based DeleteItemVO (the only record that will be in the DeleteItemVO is the item they selected to delete). This step corresponds to the deleteItem Data Page as seen in the image link above).
    We do this step (step 2) because we want to show the user a confirmation page with additional item information before they actually delete the item. Otherwise, we could just perform the delete from the original page.
    3. On the deleteItem data page there is a Delete (">Select</a>) link beside the single item in the view that when clicked should set the current row (the only row in the view object) and forward to the setDeleteItemDA Data Action.
    4. I dragged the setCurrentRowWithKey method from the DeleteItemVO onto the setDeleteItemDA data action.
    5. I forwarded that data action to the deleteItemDA data action where I dragged the Delete method from the DeleteItemVO.
    6. This action forwards to a deleteItemDP data page where I dropped a Commit action from the AM which owns the DeleteItemVO.
    The result of executing these steps brings it back to itself (deleteItem.do) and tries to rebind the single record view object producing a ORA-01008: not all variables bound error and not forwarding to the setDeleteItemDA data action.
    Are we using the right approach here?
    I tried following the example located at: http://otn.oracle.com/products/jdev/collateral/tutorials/9050/bizcomp_jsp_tut.html#delete, but there are some differences between the two. We are using data pages and a single view object, while the example is using regular jsp pages and a master detail view relationship.

    Thanks Steve for the reply. We dowloaded the following example (http://otn.oracle.com/products/jdev/tips/muench/DeleteEmpWithConfirm.zip) and tried to make it work for us. We set everything exactly the same (as far as we could tell). There is one difference though between what you have in this example and ours and that is that the VO that is dropped on the first data page is first bound by a custom method through a preceeding data action. When the page is rendered we see the item we choose (and that was bound in the data action) correctly on the page.
    The problem comes in when we click on the delete link on that page, it does not seem to be posting back properly - it appears to be ignoring the "confirmDelete" event, which is part of the url (and it's corresponding forward named the same) and instead ends up trying to rebind the VO on the same page which produces a "not all variables bound" error. Error listed below.
    Why is the Datapage seeking to rebind the VO again, when it was already bound previously? Shouldn't the setCurrentRowKey method simply set the current row on the VO without having to requery the VO again?
    *** error page ***
    You must correct the following error(s) before proceeding:
    JBO-29000: Unexpected exception caught: oracle.jbo.SQLStmtException, msg=JBO-27122: SQL error during statement preparation. Statement: SELECT DeleteItemInfoEntityObject.RETAILER_NUMBER, DeleteItemInfoEntityObject.AUTH_ITEM_CODE, DeleteItemInfoEntityObject.UPC, DeleteItemInfoEntityObject.ITEM_DESCRIPTION, DeleteItemInfoEntityObject.PACK, DeleteItemInfoEntityObject.RETAIL_SIZE, DeleteItemInfoEntityObject.UNIT_COST, DeleteItemInfoEntityObject.AWI_DEPT_NAME, DeleteItemInfoEntityObject.RETAILER_CATALOG_NAME, DeleteItemInfoEntityObject.RETAILER_CATEGORY_NAME, DeleteItemInfoEntityObject.RETAIL_PRICE, DeleteItemInfoEntityObject.QUANTITY_AT FROM DELETEITEMINFOVIEW DeleteItemInfoEntityObject WHERE AUTH_ITEM_CODE = :1 AND RETAILER_NUMBER = :2
    JBO-27122: SQL error during statement preparation. Statement: SELECT DeleteItemInfoEntityObject.RETAILER_NUMBER, DeleteItemInfoEntityObject.AUTH_ITEM_CODE, DeleteItemInfoEntityObject.UPC, DeleteItemInfoEntityObject.ITEM_DESCRIPTION, DeleteItemInfoEntityObject.PACK, DeleteItemInfoEntityObject.RETAIL_SIZE, DeleteItemInfoEntityObject.UNIT_COST, DeleteItemInfoEntityObject.AWI_DEPT_NAME, DeleteItemInfoEntityObject.RETAILER_CATALOG_NAME, DeleteItemInfoEntityObject.RETAILER_CATEGORY_NAME, DeleteItemInfoEntityObject.RETAIL_PRICE, DeleteItemInfoEntityObject.QUANTITY_AT FROM DELETEITEMINFOVIEW DeleteItemInfoEntityObject WHERE AUTH_ITEM_CODE = :1 AND RETAILER_NUMBER = :2
    ORA-01008: not all variables bound
    *** error ***
    Les, here's a minimal working sample:
    http://otn.oracle.com/products/jdev/tips/muench/Delete
    mpWithConfirm.zip
    It uses just two data pages and leverages the
    built-in event-handling features of ADF described in
    the ADF Data Binding Primer and ADF/Struts Overview.
    The pages use the post-back pattern to handle their
    own events before forwarding.
    http://otn.oracle.com/products/jdev/collateral/papers/
    0g/ADFBindingPrimer/index.html

  • How to delete translations / records in table omlt and mlt1

    The customer has added some records to the translations, using DTW.
    Unfortunately, the customer has made a mistake and wants these records to be deleted.
    It is not possible to delete these records in DTW.
    It is concerning 297 rows, I can select those rows by using a query that joins omlt and mlt1
    If i use / in DTW, I can't delete the records
    Is there an other way to fix this problem?
    I have posted this question to SAP Support, but it's outside their scope.
    Therefor I try to post this question on the forum

    You may try a tool called B1TCH: /people/community.user/blog/2007/08/19/get-your-kicks-with-di-commander
    Thanks,
    Gordon

  • How to Delete Multiple Records using selectbox in jsf

    Hi!
    My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
    rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
    <h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
    </h:selectBooleanCheckbox>
    But other functionality is not wokring.
    Can any one plz tell how to select the multiple records and how to send the id to the serverside.
    I want code code for jsp and as well as backingBean how to accaess .
    Any Reply shuld be apreciated

    You may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
    Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable.

  • How to delete duplicate records in 10 G.

    how to delete duplicate records in 10 G.

    --Here is one way to do it using a second table 
    create table temp1
    (col1 char(1));
    --Table created.
    insert into temp1 (col1) values('A');
    insert into temp1 (col1) values('B');
    insert into temp1 (col1) values('B');
    --1 row created.
    --1 row created.
    --1 row created.
    create table temp2 as select distinct * from temp1;
    --Table created.
    --now you have a second table with no duplicates
    --truncate your old table
    truncate table temp1;
    --Table truncated.
    --and reload it with data from the new table
    insert into temp1 select * from temp2;
    --2 rows created.
    --then drop the temp2 table
    drop table temp2

  • Error in deleting a record

    I am using Oracle Driver and try to delete a record in the database, fail
    error occurs, saying "Invalid operation on read only resultset". But I have
    already set the resultset as updatable, what am I missing?
    Please give me some hints?
    statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    resultSet = statement.executeQuery("Select * from emp");
    ... // move to a record position
    resultSet.deleteRow(); // Error occurs when I perform this operation

    No, closing has nothing to do with committing!
    If you have done nothing like
    "connection.setAutoCommit( false)", then you are in
    AutoCommit mode, means each stattement is handled by
    JDBC as a 1-step-transaction and automatically and
    immediately commited.By default, new connections are in auto-commit mode. The commit occurs when the statement completes or the next execute occurs, whichever comes first. In the case of statements returning a ResultSet, the statement completes when the last row of the ResultSet has been retrieved or the ResultSet has been closed.
    So, closing has an effect. Please look at the thread
    http://forum.java.sun.com/thread.jsp?forum=48&thread=189922
    Am I wrong in my observation?

Maybe you are looking for

  • Ipod Classic Connecting- Blue Screen of Death!!

    I downloaded iTunes 8.0 when it came out and ever since I downloaded it, I get the blue screen of death when I connect my ipod in. I am running on vista if that helps, any ideas on what to do?

  • Navigation Toolbar reset - doesnt

    When I installed Firefox 4 B 12 the default toolbar was missing a few icons, so I added them (forward/back, Home, etc.). However I also found that somehow the suggestion button disappeared. So I right clicked on the menu bar and entered customize. Th

  • Problem for Header text of Contracts

    Hi guys, a suggest:I have created in customizing a new header text and I want display and manage it on header of contract but when I create the contract see always the standard header texts 'release order text', 'header text','header note' 'pricing t

  • Sort in Only One Column

    How can I sort selected cells in one column without affecting data in other columns? Thanks

  • ITunes doesn't accurately display what's on my iPhone

    Hello, all - I have always manually managed my music.  In the old days (pre iOS 6?) if I deleted a song off my phone it would no longer appear through iTunes when it was connected.  Nowadays, however, nothing matches - manually deleted items on my ph