CentraSite Documentation : Working with the CentraSite Business UI : Administering the Business UI : Managing the Catalog : Writing Your Own Reporting Search : Uploading Required Search Files from the Command Line
Uploading Required Search Files from the Command Line
After you create the required XQuery search module and the XML file, you must upload them to the CentraSite repository.
You can upload the XQuery search module and the XML file by executing the add Search command in the command line interface.
The syntax of the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh add Search [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -savedSearch <SAVED-SEARCH> [-module <XQUERY-MODULE>] [-overwrite <CONFIRM-OVERWRITE> [-scope <SCOPE>]
Important:  
CentraSite relies on file extensions to determine a file's type. When you upload a saved search XML file or an XQuery module from your local machine using the command line, be sure you specify the name of the file along with its extension (.xml or .xquery) so that CentraSite can determine the file's type and mark it correctly in the repository.
Example:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd|sh add Search -url http://localhost:53307/CentraSite/CentraSite -user AdminUser -password AdminPass -savedSearch TopXAPIsByAPIKeys.xml -module apiusage.xquery -overwrite true -scope user
The above example assumes that there is a user AdminUser who has the CentraSite Administrator role, and this user has the password AdminPass.
The response to this command could be:
Executing the command : add Search
Successfully executed the command : add Search
For more information about the usage of add Search command, see Adding a Custom Reporting Search from the Command Line.
After the command executes successfully, scroll through the Data Feed selection list of Add New Portlet dialog to find the new reporting search, TopXAPIsByAPIKeys.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback