|
| [WB18] Save Table Rows when modified ? |
| Iniciado por guest, 07,abr. 2014 22:06 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 07,abril 2014 - 22:06 |
Hello,
I am using Classes to load and save the data (records and array of record structures). In a page I fill a table and let the user modify the field data, no problem with that. But when I want to save the data I only want to save what the user has modified
I have currently created a hidden table column where I put True in on the Exit Row event of the table.
Under my save button I use this code to check this flag and save the record.
// Transfer the data PageToSource(PAGE_Users) // Scan for modifications FOR i = 1 TO TABLE_Login..Occurrence IF TABLE_Login[].COL_Modified THEN // Save Modifications gclUsers.ClassArray[].RecSave(gclErrorlist,True) END END // Refresh the table TableDisplay(TABLE_Login) !! [[]] = [] because else they don't display on this forum
The code works, but is there a better way to save only the modified data from a table ? And would it be possible to save the data when leaving the changed row, like an auto save so the user does not have to press the save button.
Also how to make the code more generic with indirections, so I would have 1 Save button template I can use on all my pages ?
Thanks Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,diciembre 2018 - 14:12 |
| |
| |
| | | |
|
| | | | |
| | |
|