Ignore:
Timestamp:
04/07/17 00:32:11 (3 years ago)
Author:
Garth Braithwaite
Message:

db, java, xslt - cleaned up the dims to iv sql. Based inserts on actual IVV records because had duplicates. Also based on active records which does not quite line up with production NM data but it appears to check out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ibisph-view/src/main/webapp/xslt/html/Kendo.xslt

    r13513 r13530  
    276276                        ibis:doc="Data record's Kendo data source DIMENSIONS/DIMENSIONs"
    277277                />
    278                 <xsl:param name="measures"              ibis:doc="actual measures."/>
    279                 <xsl:param name="gridMeasures"  ibis:doc="grid's measure column struct - titles."/>
     278<xsl:param name="measures"              ibis:doc="actual measures."/>
     279<xsl:param name="gridMeasures"  ibis:doc="grid's measure column struct - titles."/>
    280280                <xsl:param name="sortOrderFieldName"/>
    281281                <xsl:param name="showFooterRow" select="count($gridMeasures/GRID_MEASURE/COLUMNS/COLUMN[string-length(TOTAL_VALUE) != 0]) != 0"/>
     
    283283                <xsl:param name="seriesDimension" select="$recordArrayDimensions/DIMENSION[USAGE='series']"/>
    284284
     285<!--
    285286<xsl:message select="$recordArrayDimensions/DIMENSION"/>
    286 <!--
    287287<xsl:message select="$recordArrayDimensions/DIMENSION[not(USAGE = 'series')]"/>
    288288<xsl:message select="$recordArrayDimensions"/>
     
    297297        ,columns:
    298298        [
    299                 <xsl:if test="boolean($seriesDimension/NAME)">
    300                 {
    301                         field: "<xsl:value-of select="$seriesDimension/NAME"/>SortOrder"
    302                         ,title: "<xsl:value-of select="$seriesDimension/TITLE"/> Series Value" 
    303                         ,groupHeaderTemplate: "#=getGridDataSourceViewItems(value)[0].<xsl:value-of select="$seriesDimension/NAME"/>Title#"
    304                         ,hidden: true
    305                 }
    306                 ,{
    307                         field: "<xsl:value-of select="$seriesDimension/NAME"/>Title"
    308                         ,title: "<xsl:value-of select="$seriesDimension/TITLE"/>"       
    309                         ,attributes: {"class": "SeriesColumn Dimension"}               
    310                         ,sortable: false
    311                         <xsl:if test="$showFooterRow = true()">
    312                         ,footerTemplate: "<div><xsl:value-of select="$Kendo.gridFooterRowTitle"/></div>"
    313                         </xsl:if>
    314                 }
    315                 ,
     299<xsl:if test="boolean($seriesDimension/NAME)">
     300{
     301        field: "<xsl:value-of select="$seriesDimension/NAME"/>SortOrder"
     302        ,title: "<xsl:value-of select="$seriesDimension/TITLE"/> Series Value" 
     303        ,groupHeaderTemplate: "#=getGridDataSourceViewItems(value)[0].<xsl:value-of select="$seriesDimension/NAME"/>Title#"
     304        ,hidden: true
     305}
     306,{
     307        field: "<xsl:value-of select="$seriesDimension/NAME"/>Title"
     308        ,title: "<xsl:value-of select="$seriesDimension/TITLE"/>"       
     309        ,attributes: {"class": "SeriesColumn Dimension"}               
     310        ,sortable: false
     311        <xsl:if test="$showFooterRow = true()">
     312        ,footerTemplate: "<div><xsl:value-of select="$Kendo.gridFooterRowTitle"/></div>"
     313        </xsl:if>
     314}
     315,
    316316                </xsl:if>
    317317                <xsl:for-each select="$recordArrayDimensions/DIMENSION[not(USAGE = 'series')]">
     
    327327                </xsl:for-each>
    328328
    329                 <xsl:for-each select="$measures">
     329<xsl:for-each select="$measures">
    330330                        <xsl:variable name="measure" select="."/>
    331331                        <xsl:for-each select="$gridMeasures/GRID_MEASURE[MEASURE_NAME = $measure/NAME]/COLUMNS/COLUMN[not(INFO_FIELD_FLAG)]">
Note: See TracChangeset for help on using the changeset viewer.