[fxruby-users] Updating rows in a table

Lyle Johnson lyle at lylejohnson.name
Thu Aug 20 13:35:20 EDT 2009

On Aug 20, 2009, at 10:34 AM, Martin Hawkins wrote:

> It's about keeping the SQL table and the FX table in sync.


Oh, OK. Yes, you'll need to do something to keep track of which table  
row is associated with which database record. Instead of storing the  
sql_id in an invisible column, you could maybe store the sql_id in the  
table item's "data" field, e.g.

	table.setItemData(r, c, author.sql_id)

and then later:

	sql_id = table.getItemData(table_range.fm.row, table_range.fm.col)

Hope this helps,


More information about the fxruby-users mailing list