How to Work with Templates |
If you want to re-use GUI classes from a template, first make the template, and then develop the application based on it. You can go back and change the template, too, but before you change or delete classes you should make sure this is not harmful to the application(s) based on it. To make a template and base a GUI application on it:
•Modify the style guide. •Add dialog boxes. •Make generic adjustments to standard windows. •Define extra windows (but do not change them yet).
You now have 2 levels of development. You could even create 3 or more levels. On each of these levels, the work of the other levels does not have to be fetched from the RDBMS. Work of higher levels is not needed, while work of lower levels is presented to you on file. At the same time, changes to the core level can quickly be checked for impact by combining the files that each level produces. ESI template files interrelate like DLLs (they dynamically load each other when required), so you distribute them together and can replace them separately. Of course this only works if you respect the object-oriented principle of unchanged interfaces between these files. When re-using ESI files in this way, you can change the properties of a class, but you should not delete or rename a class that is reused in another application. The other application refers to it by name and will no longer be able to find it. However, if all these applications are in the same repository as the conceptual schema, you can change the names in the conceptual schema. This type of change will cascade to all applications in that repository in the same way it does for a single application. See Also: |