Config

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:02

Description

Return XML configuration data

Parameters (* denotes an optional parameter)

Name

This mandatory string parameter contains the name of a configuration loaded in the GN4 database.

NOTE: Use do.ashx?cmd=objslist&type=config to retrieve a list of all loaded configurations.

Who*

This optional parameter should contain a valid configuration owner: 'global', 'user' (the logged in user) or a user/group id.

X*

This optional string parameter contains the name of an XSL transformation to be applied to the XML. The XSL transformation must be loaded in the database. Note that it is just inserted as an XML instruction and applied by the browser. Example: http://server/gnportal/do.ashx?cmd=help&x=docbook. This call displays the help file using a stylesheet named 'docbook'.

Example

http://demo.teradp.com/Tark4/do.ashx?cmd=config&name=feed_RSS20

The command returns a configuration file similar to the one below:

<?xml version="1.0" encoding="utf-8" ?>

<opt:XmlExportOptions

 xmlns:opt="http://www.teradp.com/schemas/GN4/1/XmlExportOptions.xsd"

 DataAsId="true" AccessStrict="false" MimeType="text/xml">

 <opt:Xslt>

   <xsl:stylesheet

     version="1.0"

     exclude-result-prefixes="xsl lc oc fn nav gn4"

     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

     xmlns:lc="http://www.teradp.com/schemas/GN4/1/LoginContext.xsd"

     xmlns:oc="http://www.teradp.com/schemas/GN4/1/OperationContext.xsd"

     xmlns:fn="http://www.teradp.com/schemas/GN4/1/Xslt"

     xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd"

     xmlns:gn4="urn:schemas-teradp-com:gn4tera">

     <xsl:output cdata-section-elements="description" />