Article View: borland.public.jbuilder.java.swing
Article #1783Bug in JdbTable?
From: cyclocross
Date: Mon, 21 Jul 2003 20:33
Date: Mon, 21 Jul 2003 20:33
35 lines
2400 bytes
2400 bytes
I can't seem to make changes to rows in my JdbTable after I have
changed a row 3 or 4 times, after that the values can't be changed and
there is no exception of any kind. Here is some code that gets
executed after a button push.
tblBattery is a JdbTable declared further up
batteryDataSet is a DataSet
int lSelectedRow = tblBattery.getSelectedRow();
int lSelectedCurrentSeq = batteryDataSet.getInt(3);
batteryDataSet.setInt(3 , (lSelectedCurrentSeq - 1));
batteryDataSet.goToRow(lSelectedRow - 1);
int lCurrentSeq = batteryDataSet.getInt(3);
batteryDataSet.setInt(3 , (lCurrentSeq + 1));
batteryDataSet.goToRow(lSelectedRow - 1);
SortDescriptor sortDescr = new
com.borland.dx.dataset.SortDescriptor( new String[]
{"Admin Order"},
true,
false );
batteryDataSet.setSort(sortDescr);
As you can see, i'm changing the values in my 3rd column then sorting
it every time the button is pushed. Like I said though, it works for
a while then it just plain won't change any of the rows that I had
previously changed. One thing I did do was output the row number and
the internal row number. At the time that the bug appears, the
internal row id becomes the same as the external row value, whereas
previoulsy they were different. Does any one have any ideas?
Eric Zimmerman
Technical Details
Message-ID:
<7b628169.0307211233.34803feb@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,49c409168bbefac,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-07-21 13:33:46 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: cyclocrossing@hotmail.com (cyclocross) Newsgroups: borland.public.jbuilder.java.swing Subject: Bug in JdbTable? Date: 21 Jul 2003 13:33:45 -0700 Organization: http://groups.google.com/ Lines: 35 Message-ID: <7b628169.0307211233.34803feb@posting.google.com> NNTP-Posting-Host: 12.106.111.10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1058819626 10809 127.0.0.1 (21 Jul 2003 20:33:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 Jul 2003 20:33:46 GMT