Click Select. To show the entire list of predefined templates, select Show All. Click OK.

6-12 Oracle Fusion Middleware System Administrators Guide for Oracle Content Server

5. Click Next.

The Add Template Table Information Screen is displayed. 6. Enter a name for the template table. ■ It is a good idea to leave the name of the component as a prefix. ■ Each template table in a component must have a unique name, even if the tables are in different resource files. 7. Select which standard table to merge the new template table into: ■ IntradocTemplates ■ SearchResultTemplates

8. Click Next.

The AddEdit Intradoc Template Screen is displayed. 9. To start with an existing template definition:

a. Click Select.

A list of commonly used templates is displayed.

b. To show the entire list of predefined templates, select Show All.

c. Select a template from the list.

d. Click OK.

The template parameters are filled in. 10. Edit the template parameters as necessary.

11. Click Finish.

A dialog box asks if you want to launch the text editor to continue editing.

12. Click Yes to open the resource file in the text editor. Click No to return to the

Component Wizard. The file now appears in the Custom Resource Definition list, and the template table appears in the Table Name list in the right pane. Note: Unless you have a particular reason for the resource file to be loaded after other resources, you should leave the load order set to 1. Note: You can also use an existing custom template file as a starting point. Select Copy From, and navigate to and select the template file. The template parameters will not be filled in automatically, but you could select a standard template to fill in the fields before selecting the template file. Note: If you do not change the name of the template and this component is loaded last, the custom template will override the standard template and any other custom templates with the same name. Managing Components 6-13

6.3.2.3 Creating a Query Resource

A query resource defines SQL queries, which are used to manage information in the database. Queries are used with services to perform tasks such as adding, deleting, or retrieving data from the database. Follow these steps to add a query:

1. On the

Component Wizard Main Screen , click Add in the Resource Definition pane . The Add Resource Screen is displayed.

2. Select the Query option.

3. Enter the file name for the resource file. The default file name is

resourcescomponentname_query.htm. ■ If a query resource file has been created with the default file name, the new default file name will have a number 1, 2, and so on appended to it. You cannot append a query table to the existing default file unless you edit the resource file manually. ■ If a query resource file has been created with a file name other than the default, you can append a new query table to the existing file. ■ To create a new resource file with a different file name, enter the file name.

4. If you want the new resource file to be loaded in a particular order, enter the

number in the Load Order field.

5. Click Next.

The Add Query Table Information Screen is displayed.

6. Enter a name for the query table. It is a good idea to leave the name of the

component as a prefix. ■ If you are appending to an existing query resource file, you must enter a new table name. You cannot append a query definition to the existing table unless you edit the resource file manually.

7. Click Next.

The AddEdit Query Screen is displayed.

8. To start with an existing query definition:

a. Click Select.