This involves the following steps:
Use any database tool or the CA DataMinder RunScript function.
If using RunScript, 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 with 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
In the iConsole:
Note: During installation, the search definition XML is validated against an XML schema document 'SearchDefinition.xsd'. The XML schema document is in the \Web\schemas subfolder in the CA DataMinder installation folder. In addition to validating that the correct elements and attributes are specified, the schema also applies constraints to some attributes. For example, the length of the search label attribute is limited to 64 chararacters. Search definitions that fail validation are not installed.
Note: The embedded JavaScript in a search definition can be error-prone. Because JavaScript is an interpreted language, errors only manifest themselves at runtime. To reduce the possibility of errors in script, you can configure the iConsole to validate the script when the search definition is installed. This feature is normally turned off because it imposes an unnecessary overhead when installing production search definitions, but it is useful when developing new searches. To enable JavaScript validation, set the ValidateSearchJavascript registry value in the WebService hive to 'true'. Advanced users may want to alter the JavaScript compiler options using the SearchJavascriptValidationOptions registry value (the default is '/warn:3 /fast-'). Details about these registry values are outside the scope of this guide.
If required, copy the .html and .gif help files to 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.
Copy the script files to the \Web\scripts folder
Do this on each front-end Web server.
In the iConsole:
Copyright © 2014 CA.
All rights reserved.
|
|