Template: GCXI Metrics DisplayFormat

From Genesys Documentation
Jump to: navigation, search

Alternative formatting template for Template:GCXI_Metrics_DisplayDetails to format the metrics descriptions on Metrics pages. The content is:

Note: Instead of | colspan=2 | Calculation:
section below, we should use: | colspan=2 | Source or Calculation:

{{{!}} 
{{!}} colspan=2 {{!}} {{AnchorDiv|{{{anchor}}}}}<span style="font-size:130%">'''Metric name:''' '''{{#if:{{{displayName|}}}|{{{displayName}}}|{{{metric}}}}}'''</span><br/>
{{#if:{{{introduced|}}}|<br/>'''Introduced:''' {{{introduced}}}|}}
{{#if:{{{modified|}}}|<br/>'''Modified:''' {{{modified}}}|}}
{{#if:{{{discontinued|}}}|<br/>'''Discontinued:''' {{{discontinued}}}|}}
{{!}} style="width: 40%" {{!}}'''Folder:''' <br/>
{{{displayFolder}}}
{{!}}-
{{!}} colspan=3 {{!}} '''Description:''' {{{longDesc}}}
{{!}}-
{{!}} colspan=2 {{!}} '''Source or Calculation:''' {{#if:{{{calculation|}}}|{{{calculation}}}|{{#if:{{{dbTable|}}}|{{{dbTable}}}}}|{{Editgrn_open}}possible default text{{Editgrn_close}}}}
{{!}} rowspan=2 {{!}} '''Used in:''' <br/>
{{#cargo_query:
tables=GCXI_Metric__usedIn
|fields=GCXI_Metric__usedIn._value
|where=GCXI_Metric__usedIn._rowID={{{MetricID}}}
|default=This metric is not used in any reports.
|format=ul
}}
{{!}}-
{{!}} '''Media type:''' {{{mediaType|}}}<br/>
'''Data type:''' {{{dataType|}}}<br/>
'''Metric type:''' {{{type|}}}
{{!}}-
{{!}} colspan=3; style="text-align:right;"{{!}} [[{{FULLPAGENAME}}#MetricsList|>> Back to list]]
{{!}}}


Metric name: {{{metric}}}


Folder:

{{{displayFolder}}}

Description: {{{longDesc}}}
Calculation:
Used in:
A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT `cargo__GCXI_Metric__usedIn`.`_value` AS `_value` FROM `cargo__GCXI_Metric__usedIn` WHERE `cargo__GCXI_Metric__usedIn`.`_rowID`={{{MetricID}}} ORDER BY `cargo__GCXI_Metric__usedIn`.`_value` LIMIT 100 Function: CargoSQLQuery::run Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{{MetricID}}} ORDER BY `cargo__GCXI_Metric__usedIn`.`_value` LIMIT 100' at line 1 (127.0.0.1)

Media type:

Data type:
Metric type:

>> Back to list