Skip to main content
Skip table of contents

Reports (Sql Reports)

How to setup a new report or edit an existing

NOTICE! From Link 2.8 the administration of Reports is moved to the Link Web Site: Reports - Administration

Technical documentation for Reports are here.

The schema for the Xml is:

Report Query Schema

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="">
  <xs:element name="ReportQuery">
        <xs:element name="Parameters">
              <xs:element maxOccurs="unbounded" name="Parameter">
                    <xs:element name="ParameterName" type="xs:string" />
                    <xs:element name="ParameterType" type="xs:string" />
                    <xs:element name="ParameterValue" type="xs:string" />
                    <xs:element name="ParameterDisplayName" type="xs:string" />
        <xs:element name="Query" type="xs:string" />

From Link version 2.7, it is possible to use parameters in your Sql Report. That is why it is wrapped in Xml.

You might need to wrap the value of the Query element in CDATA if you use special characters like <, >, or other Xml reserved characters.

An example of how the Xml can look like:

Example of Sql Report

      <ParameterDisplayName>Partner Name</ParameterDisplayName>
                             SELECT p.PartnersId, p.PartnerName
                             FROM [partner].[tPartners] p
                             WHERE p.PartnerName = @iPartnerName;

All given parameters will be shown in the Link UI like this:

All parameters will always be required. Optional parameters are not support in this version.

Supported data types

  • Bit
  • Datetime
  • Int
  • (N)Varchar

If other types are provided they will be treaten as Varchars/Strings.

Content on this page:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.