6.7.3 Template
Default=No template selected.
Specify the name of the application template to be used to create the RDML in the function.
Note: You must open the function in the editor to allow the template to execute. Refer to Create Functions.
Tips & Techniques
Following are tips for using LANSA templates:
- Make extensive use of the HELP function key and take your time. When using a template for the first time, read all the HELP panels associated with the template, especially the examples. Get a good idea of what the template will do and what the template won't do before you use it.
- Most templates work by using a "question and answer" session. So after selecting a template to be used, a question will most likely appear in the pop up window area.
- If no question appears, and the source is re-displayed, you can assume that the template has generated your RDML program without having to ask you any questions at all. Some very simple templates work this way (e.g.: the one that generates a basic program layout).
- When a question appears, read the question very carefully. Next, read any additional prompting information very carefully. And finally, if you still have any doubts, use the HELP function key.
- Follow instructions exactly. The concept of an application template is to generate RDML programs for you in a very quick and very consistent matter. The generalized nature of the Application Template facility and its ability to be site definable, mean that absolutely precise validation of your answers is often not practicable. Incorrect answers will cause no real problems, other than to cause RDML code that will either not compile, or not execute correctly, to be generated. This is not a real problem, but it means that you will most probably have to then fix it by manual editing of the RDML code.
- Most templates allow you to "back up" to a previously answered question and change your answer. To do this use the Cancel function key. Do not do this if the prompt indicates you should not do it.
Also See
Getting Started with Function Development in the Developer's Guide.
Using Application Templates in the Developer's Guide.
Create Functions in the User Guide.