Automation in code generation: Lesson 7 – Events for script execution.

After you have finished the script, all you need to do is to decide in which event it will be executed.

Since this is an auxiliary code, which will only run once (considering it has already been tested, and is working properly), the script can be executed from a button on any screen. After this process is done, the button can be deleted.

Fig. 7.1: Temporary button for script execution.

Another possibility is to leave this and other auxiliary scripts on a specific screen that can only be accessed by the Administrator.

It is also possible to execute scripts at run time (in Studio), via CustomConfig method. You can create an auxiliary XControl or XObject specifically for running the script in this event. Likewise, the object can be deleted by the end of the process.

To learn more about CustomConfig event, we recommend reading the following article: 

ElipseX’s CustomConfig.

NOTE: The demo application below demonstrates all the concepts shown in this series of articles. The commands are created via scripts, and they are set up from a
“.csv” file.

Related articles


Attachments:

App_KB_CreateCommand

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *