craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > Non-Database mode - Dataobjects/EJB/Hibernate/File/Array/Vector Post New Topic   Post A Reply
insert rows not displayed in grid printer friendly version
next oldest post
Author Messages
dax13
Private

Gender: Male
Location: montreal
Registered: Nov 2007
Status: Offline
Posts: 1

Click here to see the profile for dax13 Send email to dax13 Send private message to dax13 Find more posts by dax13 Edit or delete this message Reply w/Quote
Posted Monday, June 29, 2009 @ 11:46:19  

Here is what I am trying to do.

The Grid has a connection to a database.
I have setup the "SelectSQL" Statament.
I refresh the grid.
If the grid row count equals 0 then I am using the insert(Vector) function to add new rows.
My problem is that I do not see the newly added row in the grid.

Why am I doing this?
If there is records returned by the "SelectSql" statement, then I allow the user to update the records , and I do a bulk update once the user click on a save button.
If there is no records returned by the "SelectSql" statement, then I insert new rows based on default setting that are not stored in the database, and when the user clicks on the save button I do a bulk insert.

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 287

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Wednesday, July 8, 2009 @ 10:51:08  

Please enable debug and see whether there are any warnings printed in the log when you try to insert the row.

Also make sure the table is editable. if the table is not editable, it may not allow to add rows.

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios