Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Adding data to table

Adding data to table

Scheduled Pinned Locked Moved Java
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pancakeleh
    wrote on last edited by
    #1

    when i try to add data into the table, when the add button is click, they would say no items found. Screenshot: http://img525.imageshack.us/img525/3897/howcomei.png[^] needing help!

    T 1 Reply Last reply
    0
    • P pancakeleh

      when i try to add data into the table, when the add button is click, they would say no items found. Screenshot: http://img525.imageshack.us/img525/3897/howcomei.png[^] needing help!

      T Offline
      T Offline
      TorstenH
      wrote on last edited by
      #2

      you need to update your object, as the value of the textbox is not magic and will not jump into place by itself. also - as you're asking several questions about it: Essentials, Part 1, Lesson 7: Database Access and Permissions @ Sun Online Training a book is also a good invest. regards, Torsten

      I never finish anyth...

      P 1 Reply Last reply
      0
      • T TorstenH

        you need to update your object, as the value of the textbox is not magic and will not jump into place by itself. also - as you're asking several questions about it: Essentials, Part 1, Lesson 7: Database Access and Permissions @ Sun Online Training a book is also a good invest. regards, Torsten

        I never finish anyth...

        P Offline
        P Offline
        pancakeleh
        wrote on last edited by
        #3

        oh update object meaning? so sorry for asking cos i am very new and still dunno much. This also occurs when the delete button is being clicked. my code as shown below: public String incidentDel_btn_action() { form1.discardSubmittedValues("addIncidentStatus"); try { RowKey rk = tableRowGroup2.getRowKey(); if (rk != null) { incidentstatusDataProvider.removeRow(rk); incidentstatusDataProvider.commitChanges(); incidentstatusDataProvider.refresh(); } } catch (Exception ex) { log("ErrorDescription", ex); error(ex.getMessage()); } return null; }

        modified on Thursday, December 23, 2010 3:26 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups