Results 1 to 2 of 2
  1. #1
    steel is offline Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0

    Default actions for buttons

    Please help to implement actions for buttons,
    in attachment - you can see JPEG file you can see table 3 buttons (Insert, Update, Delete)

    I want to implement following:
    1) when no checked at all - Update, Delete inactive, Insert - active
    2) when checked any cell 2 buttons - Update, Delete active (update and delete depend on checking), Insert - inactive
    3) only checking of one row is possible

    May be somebody was acrossed the same problem.

    DB: MySQL

    Scripts for table creation and insertion:
    1)
    CREATE TABLE attendance5 (
    'bool_val' boolean,
    'student_number' char(10) NOT NULL,
    'unit_number' char(6) NOT NULL,
    'attendance_date' date NOT NULL,
    'attended' char(1) NOT NULL)
    ENGINE=InnoDB DEFAULT CHARSET=latin1;


    2)
    INSERT INTO attendance VALUES
    (0,'L0001145','U00313','2004-05-04','A'),
    (0,'L0001145','U00333','2004-05-03','A'),
    (0,'L0001234','U00313','2004-05-04','P'),
    (0,'L0001234','U00333','2004-05-03','A'),
    (0,'L0002113','U00413','2004-05-03','P'),
    (0,'L0002113','U00443','2004-05-03','A'),
    (0,'L0002243','U00213','2004-05-03','P'),
    (0,'L0002243','U00223','2004-05-05','P'),
    (0,'L0002243','U00233','2004-05-04','A'),
    (0,'L0002323','U00313','2004-05-03','A'),
    (0,'L0002323','U00333','2004-05-04','A'),
    (0,'L0003322','U00121','2004-05-03','A');
    Attached Thumbnails Attached Thumbnails actions for buttons-table.jpg  

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

Similar Threads

  1. JSP standard actions
    By subhashis_mohanty in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 11-27-2010, 08:35 AM
  2. How to Use Actions
    By AJArmstron@aol.com in forum New To Java
    Replies: 4
    Last Post: 04-18-2010, 10:03 PM
  3. JMenuItems and actions
    By Kligham in forum New To Java
    Replies: 5
    Last Post: 01-05-2010, 06:00 PM
  4. Help using Buttons/Actions with Drawings
    By Deathmonger in forum New To Java
    Replies: 0
    Last Post: 04-08-2008, 04:11 PM
  5. Actions
    By alley in forum AWT / Swing
    Replies: 2
    Last Post: 01-16-2008, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •