Skip to main content

Caché-Supplied Standard Studio Templates

Caché-Supplied Standard Studio Templates

Studio comes with a set of templates. You can see a list of all system-supplied templates in Studio in the %SYS namespace, Workspace window, Namespace tab, under CSP files. To see templates usable in the current document, use Tools > Templates > Templates. These templates are described below.

Note:

By default, Studio templates use a session timeout of 90 seconds. If you are entering data into a Studio template, the session ends after 90 seconds of no user input. For more information, see the section “Default Timeout” below.

Templates

This section contains three tables defining the templates available in Studio for use with CSP or Zen:

CSP Templates
Template Description
HTML Color Select to insert an HTML color value string (such as #F0F0F0) at the cursor point.
HTML Input Select to insert an HTML input control at the cursor point.
HTML Script Select to insert a <SCRIPT> tag at the cursor point, with the specified language and content.
HTML Table Select to insert an HTML table at the cursor point with the specified characteristics. Select Preview to display a preview window.
HTML Tag Select to insert an HTML tag at the cursor point, selected from a list with specified attributes. Or if you highlight an existing HTML tag and then invoke the template, you can edit the displayed attribute values.

Example of an Interactive Template, the HTML Color Table
generated description: htmlcolorwizard

Class Definition Templates

Many of the CSP templates are available for use in class definitions (they can be useful in &html<> blocks). In addition, the following templates are available:

Class Definition Templates
Template Description
SQL Statement Select to insert code for a specified SQL Statement at the cursor point. Select Preview to see test results of the table (using data in the database) in a popup preview window. You can specify whether the template returns only the SQL text, an embedded SQL cursor based on the SQL text, or a %ResultSetOpens in a new tab object based on the SQL text.
Web Form Wizard Select to open a Wizard with which you can create a CSP form, specifying class members and a table style for the form to use.

Zen Templates

You can use the following wizards (also called templates) in Zen classes. For detailed information on using these wizards, see Zen Wizards in Using Zen and the chapters referenced in the table below for select templates.

Zen Templates
Template Description
Zen Chart Template Select to insert a Zen chart definition within an Xdata block of a ZenPage class, selecting type, style, and attributes. For more information see the chapter “Zen Charts” of Using Zen Components.
Zen Element Template Select to insert a Zen element within an Xdata block of a ZenPage class. You can insert and edit built-in, custom, or composite Zen components or create a new Zen component. For more information, see the chapter “Zen Layout” in Using Zen.
Zen Method Template Select to insert a method. The wizard lets you select a scope, either instance or class, a location where the method will execute, a name, and whether to add a try/catch error processing template. You can further edit it in the Studio editor.
Zen Style Template Select to insert a CSS style declaration within an Xdata Style block of a Zen class. A table displays the CSS style declarations defined by Zen components. You can select one and override it within your page by editing details. For more information, see the chapter “Zen Style” in Using Zen.
Zen TablePane Template Select to insert a new Zen tablePane definition within an Xdata block of a ZenPage class. Select the source of the query or table for this tablePane and then adjust properties as desired. For more information, see the chapter “Zen Style” in Using Zen.

Add-In Templates

The Tools > Add-Ins menu contains a list of wizards with which you can add items to your project. The menu contains the following add-ins.

Add-Ins
Add-In Function For More Information
.Net Gateway Wizard Imports a DLL assembly file from .NET and create a set of corresponding classes. Using the Object Gateway for .NET
Activate Wizard Creates Caché classes which provide you with access to COM objects from within Caché. The Caché Activate Wizard in Using the Caché ActiveX Gateway
Java Gateway Wizard Imports a class file or a jar file from Java and creates a set of corresponding classes. Using the Java Gateway in the Ensemble documentation set
SOAP Wizard Reads a WSDL (Web Services Description Language) document and creates one or more Web client classes or Web service classes. Creating Web Services and Web Clients in Caché
XML Schema wizard Reads an XML schema and creates a set of corresponding classes. Using the XML Schema Wizard” in Using XML with Caché.
XSL Translate Wizard Transforms an XML file using a specified XSL stylesheet. Performing XSLT Transformations” in Using XML with Caché
FeedbackOpens in a new tab