This involves the following steps:
Use any database tool or the CA DLP RunScript function.
If using RunScript, you must modify the SQL file to conform to RunScript requirements. Specifically, if supporting both Oracle and MSSQL you must prefix the code with the appropriate database identifier, <ORACLE> or <MSSQL>, and terminate it with a semicolon.
For Oracle, line terminators in PL/SQL must be escaped using a backslash unless the SQL is included using the RunScript EXEC_NATIVESCRIPT command. For example:
RETURN MyCursor; would become RETURN MyCursor\;
The syntax for the RunScript function is:
wgninfra -localexec wigan/schema/Schema RunScript MyEmailSearch.sql
Alternatively, use the installsql.bat script for the standard searches as a model for installing search SPs into the CMS database; edit it to reference your own SQL files. Find this script in the \Web\Searches folder on your CA DLP distribution media.
In the iConsole:
.
Note: During installation, the search definition XML is validated against an XML Schema document 'SearchDefinition.xsd' located in the Web\schemas folder in the CA DLP installation folder. In addition to validating that the correct elements and attributes are specified, the schema also applies constraints to some of the attributes (for example, the length of the search label attribute is limited to 64 chars). Search definitions failing validation are not installed.
Note: The embedded JavaScript in a search definition can be error prone; as an interpreted language any errors only manifest themselves at runtime. To reduce the possibility of errors in script it is possible to configure the iConsole to validate it when the search definition is installed. This feature is normally turned off as it imposes an unnecessary overhead when installing production search definitions, but it is useful during development of new searches. To enable JavaScript validation set the ValidateSearchJavascript registry setting in the WebService hive to 'true'. Advanced users may want to alter the JavaScript compiler options using the SearchJavascriptValidationOptions registry setting (default is '/warn:3 /fast-'), details of settings are beyond the scope of this document.
If required, copy the .html and .gif help files into the location specified by the help and help_icon attributes in the XML search definition file. Typically, you have separate help pages for the search screen and search results screen.
Script files should be copied to the Web\scripts folder
Do this on each front-end Web server.
In the iConsole:
to test the parameters in the search definition.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |