Development > Utilities > Folders > Reset folder to zero > Reset Folder to Zero - Implementation 

Prerequisite

Miscellaneous prerequisite

Resetting a folder to zero is performed considering information from the data dictionary (see the table management):

  • When the tick box Reset to zero located in the first tab in the table is ticked, all the lines in the table are deleted
  • If the tick box Reset to zero is not ticked, check to see if at least one of the fields in the table possess the associated RTZ tick box set to Yes. If this the case, all the lines in the table are browsed deleting the fields concerned (reset to zero, to the empty string, or to the null date).

It is very important to verify beforehand that the RTZ indications actually correspond to the expected result before running this function.

In addition, this function is run in single-user mode; it cannot be run on the current folder.

Tables used

This processing is likely to update all the tables in the database, according to the dictionary RTZ information.