Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i know the record number of the selected row for booking purposes

 
Theo van Loon
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
When i book a record i first select it and then press the book button, but how do i know the corresponding record number of the row i selected?
Thanx a lot!!
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Theo,
Originally posted by Theo van Loon:
When i book a record i first select it and then press the book button, but how do i know the corresponding record number of the row i selected?

There are at least two ways to do this:
1) If you have stored the record number in the JTable, you can just reference the row's column that contains the record number.
2) You can use your find method to search the database and return the record number of the record matching the criteria parameter corresponding to the values of the row's columns.
 
Theo van Loon
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx George off course i could use the find method pfff sometimes you just don't see it anymore ;-) But i'm going in fast pace now!! Thanx for your help!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic