jimschaubeck at yahoo.com
Thu Mar 12 18:30:21 EDT 2015
Thank you for the response and I wish I would have explained a bit more. I
need to update the database one cell at a time preferably on some sort of
"closeField" type of message. I have multiple users updating the same
payroll grid at the same time. If I save the entire grid at once, I would
erase changes made (at the same time) to other cells in the grid.
Your method is simple to code yes but I need more granularity in what
changes I save and when. I would like to trigger a save to db when I see a
"closeField" type of message. This is what I do when I "roll my own"
datagrid. My home made datagrids never look as good or work as well when
scrolling as the LC Datagrid.
On Thu, Mar 12, 2015 at 5:28 AM, Sri <sritcp at gmail.com> wrote:
> 1. Load data from the database into tArray.
> 2. Set the dgData of the data grid to tArray to display the data.
> Make a back up of the initial data to tBackupArray.
> 3. After the user edits the data in the data grid, say, he clicks a button
> Write the dgData of the data grid to the database.
> 4. If the write is successful, put the dgData of the data grid into
> If the write is unsuccessful, set the dgData of the data grid to
> View this message in context:
> Sent from the Revolution - User mailing list archive at Nabble.com.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
jim schaubeck jschaubeck at gmail.com
<jischaubeck at gmail.com> 714-321-4499
More information about the Use-livecode