Edit Screen Template |
De screens in Invantive Estate consist of a combination of data and a division into a ‘template’. A template is an html file containing specific text to ensure that the information appears. You can customize the format with the help of your own templates.
It is also possible to customize the screens dynamically with JavaScript keeping the template. See Customize Screens with JavaScript.
Your own template is normally based on an existing template, for example, such as bubs_tak_all.html. The template can then be adjusted according to the capabilities of CodeCharge (see www.codecharge.com). These adjustments can be made with an HTML editor that does not change the existing comments.
To use your own template in a menu item, you need to add the URL parameter TEMPLATE_PATH. This URL should point to the path of your own template, for example, ‘local/xxacme_tak_all_simple.html’.
Moreover, you need to add a URL parameter TEMPLATE_ORIG_PATH. This parameter contains the original name of the template that you want to replace. This additional URL is required to prevent that the URL parameter TEMPLATE_PATH, by mistake, will be applied to a different screen, for example, when opening a hyperlink.
The URL parameters TEMPLATE_PATH and TEMPLATE_ORIG_PATH can be added to menu item, see Menu Items.
Hint: use the Firefox extension URLParams to easily change the parameters.
Having the original template the next customizations are possible:
•Omit fields.
•Provide fields with a default value or a different design.
•Change locations of fields.
•Add pictures or work instructions.
•Add links to other websites.
You cannot remove completely one set of data (search, search results, create or change), but you can make this set invisible.
Customizing a template is relatively labor intensive and requires an inspection with each upgrade. It is often possible to achieve the required functionality with local HTML using the screen Settings.