Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82694

Can I read an entire table in the postEdit event that updates a row?

$
0
0

I have an application that needs to write out a flat file of data from a table whenever a row in the table has been edited. The purpose of this app is to manage a groupfile for use with the HTTP AUTH protocol. The datable has a row for each user that defines which group(s) a given user belongs to. A groupfile is constructed from the contents of this table.

The datatable in the app is populated with only the record to be edited, which is loaded by a link provided when a row is selected in a related table, so only the row to be edited is presented to the user of the app. This one-row table has a bubble editor defined for every field, to make a compact, lightweight editor that suits its purpose very well. Editing a row redefines the group(s) the edited user belongs to, at which point the update groupfile needs to be constructed and written.

The place to do this is in a postEdit event handler ( perhaps more correctly in a submitSuccess handler ) on the server. However, I don't see how I can read back the contents of the entire table to construct the new group file at that point. Can someone provide a suggestion for doing that?

Thanks,
Tom


Viewing all articles
Browse latest Browse all 82694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>