Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid and database triggers

$
0
0
I am developing an application that uses a custom datasource that connects to an SQL database. The table I am using has a trigger that changes a few values on update and insert.

I would like the listgrid to show the actual data in the table based on the primary keys, of course, rather than show the row as entered by the user.

To be specific, one column is a 'last_updated' field which is automatically set by the database trigger rather than by the user.

Is there a best practices way of handling this issue?

Can I return the actual row from the database in the DSResponse object returned after a successful insert or update? I can get the primary keys and programmatically execute a fetch after each insert or update, but I am not sure this is the best plan.

I am using SmartGWT version 4.0.

Viewing all articles
Browse latest Browse all 4756

Trending Articles