CAST Engineering Dashboard - Information - Get list of reports defined on central site and their parameters

Purpose

This page explains how to get the list of reports defined on central site and their parameters

Applicable in CAST Version

ReleaseYes/No
8.0.x
7.3.x
7.2.x
7.0.x

Details

Run this query on your central site to get list of reports defined on the central site and the used parameters

SELECT   vr.name          AS "Report Name"          ,
         vrs.section_name AS "Section Name"         ,
         vrs.section_id   AS "Section Internal Type",
         (SELECT vpt.value
         FROM    viewer_parameters vpt,
                 viewer_parameters vp
         WHERE   vpt.component_id = 'ENGLISH'
         AND     vpt.id        LIKE vp.value
         AND     vp.id            = 'PANEL_REPORTING_CART'
         AND     vp.component_id  = vrs.section_id
         )      AS "Section External Type",
         vrp.id AS "Parameter ID"         ,
         CASE vrp.id
                  WHEN 'object'
                  THEN
                           (SELECT ob.object_name
                           FROM    dss_objects ob
                           WHERE   TO_CHAR(ob.object_id) = vrp.value
                           )
                  WHEN 'system'
                  THEN
                           (SELECT ob.object_name
                           FROM    dss_objects ob
                           WHERE   TO_CHAR(ob.object_id) = vrp.value
                           )
                  WHEN 'bcrit'
                  THEN
                           (SELECT dmt.metric_name
                           FROM    dss_metric_types dmt
                           WHERE   TO_CHAR(dmt.metric_id) = vrp.value
                           )
                  WHEN 'tcrit'
                  THEN
                           (SELECT dmt.metric_name
                           FROM    dss_metric_types dmt
                           WHERE   TO_CHAR(dmt.metric_id) = vrp.value
                           )
                  WHEN 'metric'
                  THEN
                           (SELECT dmt.metric_name
                           FROM    dss_metric_types dmt
                           WHERE   TO_CHAR(dmt.metric_id) = vrp.value
                           )
                  ELSE vrp.value
         END       AS "Parameter Translated Value",
         vrp.value AS "Parameter Raw Value"
FROM     viewer_report_parameters vrp,
         viewer_report_sections vrs  ,
         viewer_reports vr
WHERE    vrp.report_section_id = vrs.id
AND      vrs.report_id         = vr.id
ORDER BY vr.name,
         vrs.section_offset

Here a sample of query result

Report NameSection NameSection Internal TypeSection External TypeParameter IDParameter Translated ValueParameter Raw Value
TEST_EGASECTION1REPORTING_PORTFOLIO_2_1Business MapobjectNULL-1
TEST_EGASECTION2REPORTING_PORTFOLIO_2_1Business MapobjectE2E_CM2
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemsweight-1-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemsapp-1-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - ItemsmetricNULL-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - ItemsbcritNULL-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemsdateinit2.01009E+112.01009E+11
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - ItemstcritNULL-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemscost-1-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - ItemssystemE2E_CM2
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemsdateend2.01009E+112.01009E+11
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemscritical-1-1
TEST_FLEXITEMS-1REPORTING_AUTO_ITEMSFlexReport - Itemsstatus11

This table shows that:

  • The central contains 2 reports TEST_EGA and TEST_FLEX
  • The TEST_EGA report contains 2 sections SECTION1 and SECTION2
  • The TEST_FLEX EGA report contains on only one section ITEMS-1
  • Each section of the report TEST_EGA is based on only one parameter called object
  • The parameter of the report TEST_FLEX are weight, app, metric, bcrit, dateinit, tcrit, cost system, dateend, critical and status

Example of incoherent parameters

You can see also, for SECTION1 on the TEST_EGA report, the object parameter is set to NULL where it’s set the E2E_CM in SECTION2: So the SECTION1 will be empty (No result reported) since no parameter value is defined.

Notes / Comments

Related Pages