DELETING USING CHECKBOX

hi,
i want to delete the data which r fetched into the table from the database table.my backend is sql server 2000.i hav checkbox in front of each row.and i want to delete the data of that row when the user clicks on that checkbox.i hav delete button on that page.when i click the delete button another jsp page is called which is fdelete.jsp.delete procedure is written in fdelete.jsp.i am not able to delete the data which r checked.
out.println("<input type='checkbox' name=? value=?>" unchecked);
i dont know what to write in the checkbox name to get the unique identity.
plz help it urgent.

hi,
i want to delete the data which r fetched into the
table from the database table.my backend is sql
server 2000.i hav checkbox in front of each row.and i
want to delete the data of that row when the user
clicks on that checkbox.i hav delete button on that
page.when i click the delete button another jsp page
is called which is fdelete.jsp.delete procedure is
written in fdelete.jsp.i am not able to delete the
data which r checked.
out.println("<input type='checkbox' name=? value=?>"
unchecked);
i dont know what to write in the checkbox name to get
the unique identity.
plz help it urgent.Hi,
my openion abt your problem is that, write a js function which will extract all that checked boxes or get such values in servlet. and retrives the unique id let me say the row whic you are going to delete is having a uniquely identified key someting like primary key. get such type of values... and the write the querty something like DELETE FROM tablename WHERE id="checked value"; try to use MVC pattern. which is easy to understand and to implement/modify the problem without effecting other code.

Similar Messages

  • Multiple deletes using checkbox - how to?

    I'm trying to figure out how to setup a master display list page with a check box that will allow the user to select multiple records for deletion.  Currently I have a Delete and Edit URL on each of the repeating region rows which takes the user to an Edit or Delete confirmation page for updating or deleting.  This all works fine but I'm having trouble grasping how to make this happend with checkbox on the Delete only, understanding that you cannot or would not want to update multiple records at once .
    Thanks,
    Steve

    Have your form pass the db ID's of the selected items to your form script. The script would then loop through the items and build the values used in the where clause. Then call the delete statement:
    Delete from MyTable where ItemID in ($mylist)

  • 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 use checkboxes in jtable ?

    I am trying to use checkboxes in
    JTable,I set the property in the jtable column to boolean.The proplem is that i do no know how to use this property in java program.My intension is that,I will have a java form and a java button on it,by clicking the button, i will have to write a code,for example a code that fetches records from a table and displays them on the jtable(on the user interface),when I select the check box corresponding to any row,It should let me either delete or edit that row and this modification has to be reflected to the table in the database. At this time,i can fetch and display but i can not delete or modify any row because I do no know how to use the check box inside the jtable.
    Thank you for your help!

    Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • "Enable Disk Use" checkbox is grayed out, can't untick.

    Hi,
    I just got my new iPod 30 GB video today! I've been reading these discussions, but haven't found an answer for this tiny problem of mine.
    "Do Not Disconnect" constantly shows on the iPod screen when it's connected on the computer. Many have suggested ticking off "Enable Disk Use", but here's the problem: it's grayed out, and I can't change it, no matter what. I've gone through iTunes prefs, by right-clicking on the iPod in iTunes and selecting "iPod Options". My system seems to show iPod as a movable disk, but iTunes recognises it and I can easily put music into it, so I guess that isn't a problem (or is it?).
    But how could I get my hands on the "Enable Disk Use" checkbox? It just isn't "tickable" now.
    Thanks!
      Windows XP  

    If you have your iPod set to manual update, the "Enable Disk Use" box will be greyed out and ticked by default, in that case use Safely remove Hardware icon or check this link: "Disconnecting iPod from your computer
    " http://docs.info.apple.com/article.html?artnum=61135
    For Info:
    The iPod offers three ways to transfer music from your computer. You can select one of the following update modes from the iPod Preferences menu in iTunes (Edit=>Preferences=>'iPod' tab):
    1) Automatically update all songs and playlists. This is the default mode, in which your entire music library, including playlists, is automatically synced to your iPod. If the music library on your computer exceeds the iPod storage capacity, you are prompted to select a different update method.
    2) Automatically update selected playlists only. With this option, iTunes automatically copies the playlists you have selected to the iPod when you connect it to the computer.
    3) Manually manage songs and playlists. You can also choose to transfer music to the iPod manually. This allows you to drag and drop individual songs and playlists from iTunes to the iPod.

  • Using checkbox at selection screen

    I used checkbox at selection screen and i want output as per selected checkbox. How to do that??

    hiii
    use following code
    AT SELECTION-SCREEN.
      IF p_char EQ 'X'.
        w_check = 'X'.
        WRITE: w_check.
      ELSE.
        w_check = ' '.
        WRITE: w_check.
      ENDIF.
    SELECT b~carrid                      "Carrier Id
             b~connid                      "Connection id
             b~fldate                      "Flight date
             b~price                       "Price
             b~currency                    "Currency
             b~seatsmax                    "Maximum Seats
    INTO TABLE t_flight
    FROM spfli AS a
           INNER JOIN sflight AS b ON a~carrid = b~carrid
          INNER JOIN sbook AS c ON c~carrid = b~carrid AND
                                           c~connid = b~connid AND
                                           c~fldate = b~fldate
              WHERE b~carrid IN s_carrid AND
                              c~cancelled EQ w_check.
    regards
    twinkal

  • Using checkboxes as datasource of TileList - how do I then receive selected checkboxes?

    I've been googling and searching for this and it should be simple I'd imagine... (I'm new to Flex so that probably doesn't help:)...
    I have an array that I create using CheckBox components. I then use this array as the dataprovider for a TileList and then also create a CheckBox itemrenderer.
    The issue I'm having is that, I thought if I went over the underlying checkbox array at a later point (say a button click) - that I'd be able to see some selected items yet none of them show up selected as I iterate over them (even though I've checked some of the checkboxes.)
    I have an event on the checkbox rendererer itself and when it fires I do see the selected property set - It's just going over the whole array that I'm not seeing them set. It's as if the underlying dataset is not being modified. What do I need to do so that I can capture the selected checkbox items?  (Is the issue something to do with the renderer being reused?)  I'm thinking getting a handle to checkbox items from from a TileList would be somewhat common so any help/examples appreciated.
    Below is the pertinent code:
    [CODE]
    dataArray is an array of type [B]CheckBox[/B]
    <mx:TileList id="reportMetricsBox"
            borderStyle="solid" height="100%" width="100%" maxColumns="3"
            columnWidth="110" paddingLeft="0" textAlign="left" borderThickness="0"
            dataProvider="{dataArray}">
       <mx:itemRenderer>
           <mx:Component>
               <mx:CheckBox click="handleClick(event)">
                   <mx:Script>
                       <![CDATA[
                           import com.foo.event.CheckBoxEvent;
                           private function handleClick(event:Event):void {
                               dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CLICKED, CheckBox(this)));
                       ]]>
                   </mx:Script>
               </mx:CheckBox>
           </mx:Component>
       </mx:itemRenderer>
    </mx:TileList>
    [/CODE]

    Here's what I did to fix it...
    in my item renderer click handler I set the data selected item:
    private function onChange(event:Event):void {
         dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CLICKED, CheckBox(this)));
        data.selected = !data.selected;
    I'm assuming that's what I should be doing?

  • Hi Experts, Crystal report mutiple value selection using checkbox in 8.81

    Hi,
    I am using Crystal report multiple value selection option using checkbox in 8.81 sap b1 pl 05.but i want default all check box value should be selected.
    How do we achieve same.
    Thanks
    Rajkumar Gupta
    Edited by: Rajkumar Gupta on Jul 11, 2011 5:45 AM

    Dear Raj,
    As per me, this can't be done in current version of SAP 8.81.
    Alternate way is use SDK
    Thanks
    Kevin

  • I am going to make a ADG with around 7 columns 6 of which I am going to use checkboxes as Item renderer

    I am going to make a ADG with around 7 columns 6 of which I am going to use checkboxes as Item renderers. Each of these 6 checkboxes renderers will be define in separate actionscript files as they will be updating different parts of the ADG data provider. Does this sound like the best option?

    Well the only difference is that each checkbox effects a different attribute of the  dataprovider of the ADG:
    for example this renderer effects the isSelected attribute. I may want to set a different one , hope this explains it better
    package
    import flash.display.DisplayObject;
    import flash.events.KeyboardEvent;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import mx.controls.CheckBox;
    import mx.controls.advancedDataGridClasses.AdvancedDataGridListData;
    import mx.controls.listClasses.ListBase;
    *  The Renderer.
    public class CheckBoxRenderer extends CheckBox
        public function CheckBoxRenderer()
            focusEnabled = false;
         override public function set data(value:Object):void
            super.data = value;
            if(super.data.isSelected == null){
                data.isSelected = false;
            data.isSelected = this.selected;
            invalidateProperties();
        override protected function commitProperties():void
            super.commitProperties();
            if (owner is ListBase)
                selected = ListBase(owner).isItemSelected(data);
        override protected function keyDownHandler(event:KeyboardEvent):void
        override protected function keyUpHandler(event:KeyboardEvent):void
        override protected function clickHandler(event:MouseEvent):void
              super.clickHandler(event);
            if(!data.isSelected){
                data.isSelected = true;
            }else{
                data.isSelected = false;
        override protected function updateDisplayList(w:Number, h:Number):void
            super.updateDisplayList(w, h);
            if (listData is AdvancedDataGridListData)
                var n:int = numChildren;
                for (var i:int = 0; i < n; i++)
                    var c:DisplayObject = getChildAt(i);
                    if (!(c is TextField))
                        c.x = (w - c.width) / 2;
                        c.y = 0;

  • Alv  :  how can i delete the checkbox on  handle_data_changed ?

    hello
    Due to field checsk  (like field empty) in "HANDLE_DATA_CHANGED" ,
    (  CALL METHOD ER_DATA_CHANGED->DISPLAY_PROTOCOL.)
    i notice the user "field empty"   , but also i want to delete his mark in the checkbox  ,.
    all of my tests to delete the checkbox failed .
    i tried  :
             CALL METHOD ER_DATA_CHANGED->modify_cell
                 EXPORTING i_row_id    = LS_GOOD-ROW_ID
                           i_fieldname = LS_GOOD-fieldname   " 'CHECKBOX'
                           i_value     = '' .
      or 
           READ TABLE IT_BSIK INDEX LS_GOOD-ROW_ID INTO WA_BSIK.
           WA_BSIK-checkbox = ' '.
          Modify IT_BSIK from WA_BSIK index 1 .
    What is the right way to erase the checkbox  ?

    You are reading with index "LS_GOOD-ROW_ID" and modifying index 1 ? Check the below corrected code...
    READ TABLE IT_BSIK INDEX LS_GOOD-ROW_ID INTO WA_BSIK.
    IF sy-subrc eq 0.
      WA_BSIK-checkbox = ' '.
      Modify IT_BSIK from WA_BSIK index LS_GOOD-ROW_ID transporting checkbox .
    Endif.

  • Using checkboxes with JOption Pane

    Hi, I having abit of trouble trying to implement a search utility into my swing based program. What I want is something also the lines of the "Find" feature available in MS Word and IE. Hence I want a message, input dialog box but also a checkbox to check does the user what to search for case sensitive material. So far I've been using JOptionPane and my code is as follows...
    String userInput = (String) JOptionPane.showInputDialog(null,"Enter Search Criteria:\n",     "Search Dialog",JOptionPane.QUESTION_MESSAGE,null,null,"");
    However it seems I cannot use checkboxes with this. Any idea how I could go about doing this using JOptionPane or if not would someone care to shed some light on how I might accomplish it?
    Thanks in advance,
    Simon

    JOptionPanes can be extended, but you would rather want to make a JDialog.
    Because you might also offer regular expression search (free in java 1.4),
    or search-and-replace.
    A google search will give examples like at the koders site.
    In general it pays to have all those little dialogs really user-friendly, say saving the last N sought terms + whether case-sensitive or not.
    Joop

  • Deleting used emails?

    Does anyone know how to delete used emails addresses? Say for instance I emailed someone but don't want the email address to show up when I begin to type another email much like the other, or if someone changed their email and I type there name both names appear....is there a reset or way to delete the old ones? And is there a way to delete all messages simultaneously in your inbox and deleted folders without manually pressing delete to each one?

    I do all of my major Mail maintenance on my Mac computer. I can sort email by date or topic or sender and then delete blocks of email. Next time I get mail on the iPhone, the mail boxes reflect the changes I made on the laptop.

  • Using checkbox as ItemEditor fails

    I am trying to use a CheckBox as an itemEditor inside a
    DataGrid so i am doing this:
    <mx:DataGridColumn dataField="idDoctoEnvio" headerText=" "
    itemEditor="mx.controls.CheckBox" editorDataField="selected"
    editable = "true"/>
    I read in the developer's guide that this is the way to do
    it, so i tried it and to my surprise, it doesn't work, i menan
    there is no CheckBox control inside the datagrid, instead there is
    a normal text value (true or false).
    Any ideas on how to do this? I need the checkbox to be able
    to change that property from true to false and viceversa

    I reported this problem to Adobe
    last year. From your other post, I assume you already got
    the upgrade and so I further assume they didn't fix it. Nice to see
    they are listening.
    Long story short, you can't use CheckBox as an
    itemRenderer/itemEditor. It just doesn't work as promised. What I
    did was I developed my own CheckBox item renderer class (I put the
    CheckBox component inside an HBox so that I could also center it in
    the cell). With the appropriate logic, it works fine. I made this
    component a long time ago and the source is not on this computer,
    but I think the problem was related to the CheckBox not updating
    its selected property in accordance with the background data. In my
    component, I set the CheckBox's selected value to update according
    to the "dataChange" event and on the CheckBox's "change" event, I
    called a method to update the data["columnName"] value so that it
    matches the CheckBox's selected value. I think this will do the
    trick. The code is probably still archived in this forum
    somewhere.

Maybe you are looking for

  • Some questions regarding BPEL 10g to 11g migration.

    Hi All I have the following queries, 1.Is it mandatory to load xsd's , wsdl's , XREF , DVM into MDS ? or is it allright to keep them in file system ? currently we have a number of xsd's and wsdl's inside each of our 10g project > bpel subfolder. If t

  • AFS-QM Error in stock posting performed by taking Usage decision

    Hi all, during stock posting with 105 mov type performed by taking Usage Decision (QA11), I faced with a strange system behavior, described beneath. Previuos steps: Purchase order creation Partial Good receipt performed by MIGO, mov type 103 (Blocked

  • Slice Exports as table instead of Div

    Using FW CS5, when I export a sliced image to .htm file, the contents are all in a <table> format instead of as <div> tags, for example; <table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="1024">   <tr>    <td cols

  • Stop changing things that made itunes revolutionary

    why on God's earth do I now have to go through **** and high water just to view the size of my Itunes library???? it used to be conveniently placed at the bottom and as much as your products cost, convenience is a must. STOP MAKING THINGS THAT WERE E

  • I can't scan after upgrading my iMac to OS X Yosemite

    Hi, I have an iMac and I  upgraded to Yosemite yesterday. Ever since the upgrade my printer won't scan. I can still print, but when I go to the HP Scan logo in my applications and try to scan, I get this error: The scan cannot be performed because an