Connection Parameter Web Extension

Revision as of 13:29, 26 October 2018 by Colin (talk | contribs) (Installation)

The Connection-Parameter mapping XLCubed Web extension allows XLCubed report designers to build Web Parameters into their reports that control certain Connection details.


  • Place the ConnectionParameterExtension.dll file into the Extensions folder of your XLCubed Web installation, usually at C:\inetpub\wwwroot\XLCubedWeb\Extensions.
  • To ask XLCubed Web to load the extension, create the InstalledExtensions.xml file in the same folder, with contents:
   <?xml version="1.0" encoding="utf-8" ?>
       <extension source="RelativeFile" location="ConnectionParameterExtension.dll" />
  • Place the mapping.xml configuration file into the same folder (see below for details).
  • Restart IIS or the Application Pool (also necessary after any configuration changes).


The mapping.xml file contains the details of which Web Parameters should activate a mapping, and which server, database and cube details to apply to connections in the workbook as a result. Any blank details are left unchanged. An IISRESET or Application Pool recycle is necessary in order to reload after any configuration changes.

Example 1: Simple mapping

The simplest example would notice when a workbook was loaded with a Web Parameter (here, connection) set to a value (here, mapped):

     <parameter name="connection">
       <mapping value="mapped" server="AlternativeServer" database="" cube="" />

The workbook would then use the connection details as published when loaded normally, but would connect to AlternativeServer for its cube connections when loaded with a Web Parameter, for example:


Example 2: Multiple mappings

You can configure the mapping.xml file to respond to multiple Web Parameter values. In this example, the role parameter can be set to managers to connect to one cube, and users for another:

     <parameter name="role">
       <mapping value="managers" server="" database="ManagerDatabase" cube="FullCube" />
       <mapping value="users" server="" database="UserDatabase" cube="RestrictedCube" />

See Also