Templates
The Template objects inside ADISRA SmartView are designed to provide to the user the power to use their creativity to create reusable and portable visible objects.
Let’s think of the Templates as Web Components. If you are a FrontEnd developer and are constantly working in different projects, it is safe to say that you might want to create a standard interface in all of these projects. For example, you may want all the Labels to have the same font, all the TextBoxes border are gray and a little rounded, all the grid tables are striped and the selected row color is light blue and so on. In the past, you would need to duplicate all these styles across your projects and they would be challenging to maintain. If in the future you decided to change the TextBox borders, you would need to change it manually in all your projects and if you haven’t designed properly, possibly in different project pages. Today, it is possible to create Web Components that can be shared by different projects. So the Labels, TextBoxes and Tables can be created as a new Component and whenever you need any change, you just need to change it in one central location and it can be applied everywhere.
Templates will work similarly to Web Components. You can create as many templates as you wish and use them in different applications. It could be simply a Label next to a TextBox but it could also be a representation of a Tank or maybe a Gauge Chart representing any process variable. The templates must be a generic object since the gauge can be used to display a temperature value or maybe a pressure value.
Before we move to some examples, let’s list a few features of the Templates:
Features
- Encapsulation
It enables encapsulating in the Templates their own scripts and variables which gives the user the power to test them independent of the application in which they are inserted, reuse them in different projects and rely on them as they are easy to be testeed and validated. - Extensibility
It is very easy to reuse a Template and slightly modify it to create a new Template. - Open Source
A Template can be shared with everyone. - Security
The Templates can be protected to prevent them from being reused by a competitor. - Maintainability
It reduces the Application size because the object is centralized. Any changes needed will be done in the Template and all the pages using it will receive the changes automatically. - Productivity
Templates increase productivity because they can be reused. Everyone can have their own Template library and also download ready to use Templates. - Web Ready
The Templates are full compatible with HTML5. As soon as the user finishes the template, it can be used on the web pages.