![dtujo2022](/community/data/avatars/m/62/62645.jpg?1715010298)
dtujo2022
Member
I am in the process of refactoring a bunch of applications/NERS/batch applications for an upcoming enhancement release for our users and I came across an application that was developed a long time ago by some contractors. In this application they use a work table to store a lot of data that is processed in many NERS before it is displayed in a grid which is pretty common. However, I noticed that there are over 2 million files sitting in the work table, leading me to believe that the application was either not attempting to clear out the work table, or it was failing to do so due to incorrect logic or unhandled edge cases. After inspection, I saw that they did have calls in Form Control buttons (Save and Close) and (Close) to clear the work table. This led me to believe that when users where "X"ing out of the application without clicking either of those two buttons, the work table files were not being cleared. Now I have looked into End Dialog as an answer to delete the work files from there, but I couldn't find much documentation or discussion that wasn't 15 years+ old. Some of what I read said that it is inconsistent in if it works depending on the action. Finally, to the question, how does End Dialog work or how is it trigger. Can it be relied upon to call logic to clear a work table when a user exits out of an application without saving or clicking any FC buttons?
Last edited: