You can add your own code templates to Iron Speed Designer.
Code templates are found in the Code Customizations folder where you installed Iron Speed Designer, e.g.:
C:\Program Files\Iron Speed\Designer\Code Customizations\vb
There is a “cs” folder for C# code templates and a “vb” folder for Visual Basic .NET code templates.
The sub-folder organization is displayed directly in the Code Customization Wizard. It’s a useful mechanism for organizing related code templates.
Code templates themselves usually have two related files:
An XML file containing the actual code plus a set of substitution parameters and their permitted values.
An HTML file containing the description of the code customization.
For example:
Conditional Table Column Display.html
Conditional Table Column Display.xml
The best way to create a new code template is to copy the files from an existing code template and rename them. This preserves the XML structure of the code template file and makes it easier to edit. Once copied, modify the code template files to suit your needs.
A variety of customization types are supported. Select the type appropriate for your customization.
Note: These customization types require a single "TableName" substitution variable so the Code Customization Wizard can determine which customizable class files to modify. This is true even when the code customization itself does not need to perform any substitutions with it:
RecordClass
CSharpRecordClassConstructor
DataAccessClass
NewDataAccessClass
SQLAccessClass
Substitution Variable Type |
Description |
Button |
Lets the user select any bound GEN:Button in the page and use its name as the value of a substitution variable. |
ColumnType |
Lets the user select any defined column type defined in Iron Speed Base and use its name as the value of a substitution variable. |
Control |
Lets the user select any bound GEN: tag defined in and application and use its name as the value of a substitution variable. |
CrystalReportsClass |
Offers a list of all the Crystal Reports classes that are included in the app's project file, i.e. those that correspond to files with .RPT or .rpt extensions. The class name – the file name without the extension or relative directory path – is substituted for this variable. |
DropDownList |
Lets the user select any bound FieldValue control that has a control type of DropDownList in the page and use its name as the value of a substitution variable. |
FieldLabel |
Lets the user select any bound FieldLabel in the page and use its name as the value of a substitution variable. |
FieldName |
Lets the user select the name of any column defined in any table and use its name as the value of a substitution variable. |
FieldValue |
Lets the user select any bound Field Value in the page and use its name as the value of a substitution variable. |
Filter |
Lets the user select any bound Filter in the page and use its name as the value of a substitution variable. |
RecordControl |
Lets the user select any bound GEN: tag defined in the chosen Record Control Class and use its name as the value of a substitution variable. |
RecordControlClass |
Lets the user chose the record control class where the customization will be added. |
Table |
Lets the user select any bound GEN:Table in the page and use its name as the value of a substitution variable. |
TableControl |
Lets the user select any bound GEN: tag defined in the chosen Table Control Class and use its name as the value of a substitution variable. |
TableControlClass |
Lets the user chose the table control class where the customization will be added |
TableName |
Lets the user select the name of any table in the application and use its name as the value of a substitution variable. |
Extending Applications with the Code Customization Wizard
Selecting a Customization to Apply
Substituting Parameters into a Code Template
Applying the Code Customization to your Application
Adding Your Own Code Templates