Вы находитесь на странице: 1из 7

<report xmlns="http://developer.cognos.com/schemas/report/11.

0/"
useStyleVersion="10" expressionLocale="en-us" interactivePageBreakByFrame="true">

<modelPath>/content/folder[@name='Samples']/folder[@name='Cubes']/package[@name='Sa
les and Marketing (cube)']/model[@name='2008-07-25T15:28:38.072Z']</modelPath>
<drillBehavior modelBasedDrillThru="true"/>
<queries>
<query name="Query1">
<source>
<model/>
</source>
<selection><dataItem name="Month"
aggregate="none" rollupAggregate="none"><expression>[sales_and_marketing].[Time].
[Time].[Month]</expression></dataItem><dataItem name="Product" aggregate="none"
rollupAggregate="none"><expression>[sales_and_marketing].[Products].[Products].
[Product]</expression></dataItem><dataItem
name="Revenue"><expression>[sales_and_marketing].[Measures].
[Revenue]</expression><XMLAttributes><XMLAttribute name="RS_dataType" value="9"
output="no"/></XMLAttributes></dataItem><dataItem name="Year" aggregate="none"
rollupAggregate="none"><expression>[sales_and_marketing].[Time].[Time].
[Year]</expression></dataItem><dataItem name="Product line" aggregate="none"
rollupAggregate="none"><expression>[sales_and_marketing].[Products].[Products].
[Product line]</expression></dataItem><dataItem name="Quarter" aggregate="none"
rollupAggregate="none"><expression>[sales_and_marketing].[Time].[Time].
[Quarter]</expression></dataItem><dataItem name="Product type" aggregate="none"
rollupAggregate="none"><expression>[sales_and_marketing].[Products].[Products].
[Product type]</expression></dataItem></selection>
<detailFilters><detailFilter
use="optional"><filterExpression>[sales_and_marketing].[Time].[Time].[Year] = ?
Year?</filterExpression></detailFilter></detailFilters></query>
<query
name="Years"><source><model/></source><selection><dataItem name="Year"
aggregate="none"><expression>[sales_and_marketing].[Time].[Time].
[Year]</expression></dataItem></selection></query></queries>
<layouts>
<layout>
<reportPages>
<page
name="Page1"><style><defaultStyles><defaultStyle
refStyle="pg"/></defaultStyles></style>

<pageBody><style><defaultStyles><defaultStyle
refStyle="pb"/></defaultStyles></style>
<contents>

<table><style><defaultStyles><defaultStyle
refStyle="tb"/></defaultStyles><CSS value="border-
collapse:collapse;width:100%"/></style><tableRows><tableRow><tableCells><tableCell>
<contents><HTMLItem>
<dataSource>
<staticValue>&lt;script&gt;
var paulScripts = {}
, win=window['oCV'+'_THIS_'];

paulScripts.oCV = win.getRV().getCV();

/* paulScripts.freezeContainer
* Paul Mendelson - 2014-03-25
* in: objectName {string - name of the data container}
* This will find the crosstab or list, based on the object name, and unfreeze the
columns and rows.
*/
paulScripts.freezeContainer = function(objectName){
var pFMngr = paulScripts.oCV.getPinFreezeManager();
pFMngr.freezeContainer(objectName,true,true);
window.onResizeViewerEvent()
};

/* paulScripts.unfreezeContainer
* Paul Mendelson - 2014-03-25
* in: objectName {string - name of the data container}
* This will find the crosstab or list, based on the object name, and unfreeze the
columns and rows.
*/
paulScripts.unfreezeContainer = function(objectName){
var pFMngr = paulScripts.oCV.getPinFreezeManager();
pFMngr.freezeContainer(objectName,false,false);
};

/* paulScripts.freezeAll
* Paul Mendelson - 2014-03-25
* in: type {string - crosstab or list}
* This wil loop through every "type" on the page, freezing columns and rows
*/
paulScripts.freezeAll = function(type){
var xts = win._getContainers(type)
, xtLen = xts.length
, pFMngr = paulScripts.oCV.getPinFreezeManager();
for(var i =0;i&lt;xtLen;++i){
var lid = pFMngr.removeNamespace(xts[i].getAttribute('lid'));
if(pFMngr.hasFrozenColumnHeadings(lid)) continue;
paulScripts.freezeContainer (lid);
}
};

/* paulScripts.unfreezeAll
* Paul Mendelson - 2014-03-25
* in: type {string - crosstab or list}
* This wil loop through every "type" on the page, unfreezing columns and rows
*/
paulScripts.unfreezeAll = function(type){
var xts = win._getContainers(type)
, xtLen = xts.length
, pFMngr = paulScripts.oCV.getPinFreezeManager();
for(var i =0;i&lt;xtLen;++i){
var lid = pFMngr.removeNamespace(xts[i].getAttribute('lid'));
paulScripts.unfreezeContainer (lid);
}
};

/* paulScripts.toggleContainer
* Paul Mendelson - 2014-03-25
* This wil check if a container has frozen headers. If so, it unfreezes it, if
not, it freezes the container.
*/
paulScripts.toggleContainer = function(objectName) {
var pFMngr = paulScripts.oCV.getPinFreezeManager();
if(pFMngr.hasFrozenColumnHeadings(objectName)) {
paulScripts.unfreezeContainer (objectName);
}
else {
paulScripts.freezeContainer (objectName);
window.onResizeViewerEvent()
}
}

/* paulScripts.toggleAll
* Paul Mendelson - 2014-03-25
* in: type {string - crosstab or list}
* This wil loop through every "type" on the page, and freezing or unfreezing,
depending if the column header is frozen.
*/

paulScripts.toggleAll = function(type) {
setTimeout(function(){
var xts = win._getContainers(type)
, xtLen = xts.length
, pFMngr = paulScripts.oCV.getPinFreezeManager();
for(var i =0;i&lt;xtLen;++i){
var lid = pFMngr.removeNamespace(xts[i].getAttribute('lid'));
if(i&lt;xtLen-1 &amp;&amp;
lid==pFMngr.removeNamespace(xts[i+1].getAttribute('lid'))) continue; //when the
panes are frozen the crosstab is split into four elements, all with the same lid.
Without this hack, the xtab would toggle four times!
if(pFMngr.hasFrozenColumnHeadings(lid)) {
paulScripts.unfreezeContainer(lid);
}
else {
paulScripts.freezeContainer(lid);
window.onResizeViewerEvent()
}
}
}
,200);
}
paulScripts.freezeAll('crosstab');
&lt;/script&gt;

&lt;input type="button"
onclick="paulScripts.toggleAll('crosstab');paulScripts.toggleAll('list');"
value="Toggle"/&gt;
</staticValue>
</dataSource>
</HTMLItem><table><style><defaultStyles><defaultStyle
refStyle="tb"/></defaultStyles><CSS value="border-
collapse:collapse"/></style><tableRows><tableRow><tableCells><tableCell><contents><
textItem><dataSource><staticValue>Year</staticValue></dataSource></textItem></conte
nts></tableCell></tableCells></tableRow><tableRow><tableCells><tableCell><contents>
<selectValue parameter="Year" refQuery="Years" multiSelect="false"
selectValueUI="dropdown" required="false" autoSubmit="true"><useItem
refDataItem="Year"/></selectValue></contents></tableCell></tableCells></tableRow></
tableRows></table></contents><style><CSS value="vertical-
align:top"/></style></tableCell></tableCells></tableRow><tableRow><tableCells><tabl
eCell><contents/><style><CSS value="vertical-
align:top"/></style></tableCell></tableCells></tableRow></tableRows></table><crosst
ab refQuery="Query1" name="Crosstab1" repeatEveryPage="true" pageBreakText="false">

<crosstabCorner><style><defaultStyles><defaultStyle
refStyle="xm"/></defaultStyles></style><contents><textItem><dataSource><dataItemLab
el refDataItem="Revenue"/></dataSource></textItem></contents></crosstabCorner>

<noDataHandler>
<contents>

<block>

<contents>

<textItem>

<dataSource>

<staticValue>No Data Available</staticValue>

</dataSource>

<style>

<CSS value="padding:10px 18px;"/>

</style>

</textItem>

</contents>

</block>
</contents>
</noDataHandler>
<style>

<defaultStyles>

<defaultStyle refStyle="xt"/>

</defaultStyles>
<CSS
value="border-collapse:collapse"/>
</style>
<defaultMeasure
refDataItem="Revenue"/><crosstabFactCell><contents><textItem><dataSource><cellValue
/></dataSource></textItem></contents><style><defaultStyles><defaultStyle
refStyle="mv"/></defaultStyles></style></crosstabFactCell><crosstabColumns><crossta
bNode><crosstabNodeMembers><crosstabNodeMember refDataItem="Quarter"
edgeLocation="e1"><style><defaultStyles><defaultStyle
refStyle="ml"/></defaultStyles></style><contents><textItem><dataSource><memberCapti
on/></dataSource></textItem></contents></crosstabNodeMember></crosstabNodeMembers><
/crosstabNode></crosstabColumns><crosstabRows><crosstabNode><crosstabNodeMembers><c
rosstabNodeMember refDataItem="Product type"
edgeLocation="e2"><style><defaultStyles><defaultStyle
refStyle="ml"/></defaultStyles></style><contents><textItem><dataSource><memberCapti
on/></dataSource></textItem></contents></crosstabNodeMember></crosstabNodeMembers><
/crosstabNode></crosstabRows></crosstab></contents>
</pageBody>
<pageHeader>
<contents>

<block><style><defaultStyles><defaultStyle
refStyle="ta"/></defaultStyles></style>
<contents>

<textItem><style><defaultStyles><defaultStyle
refStyle="tt"/></defaultStyles></style>

<dataSource>

<staticValue/>

</dataSource>
</textItem>
</contents>
</block>
</contents>
<style>
<defaultStyles>
<defaultStyle
refStyle="ph"/>
</defaultStyles>
<CSS value="padding-
bottom:10px"/>
</style>
</pageHeader>
<pageFooter>
<contents>
<table>
<tableRows>
<tableRow>

<tableCells>

<tableCell>

<contents>

<date>

<style>

<dataFormat>

<dateFormat/>

</dataFormat>

</style>

</date>

</contents>
<style>

<CSS value="vertical-align:top;text-align:left;width:25%"/>

</style>

</tableCell>

<tableCell>

<contents>

<pageNumber/>

</contents>

<style>

<CSS value="vertical-align:top;text-align:center;width:50%"/>

</style>

</tableCell>

<tableCell>

<contents>

<time>

<style>

<dataFormat>

<timeFormat/>

</dataFormat>

</style>

</time>

</contents>

<style>

<CSS value="vertical-align:top;text-align:right;width:25%"/>

</style>

</tableCell>

</tableCells>
</tableRow>
</tableRows>
<style>

<defaultStyles>
<defaultStyle refStyle="tb"/>

</defaultStyles>
<CSS
value="border-collapse:collapse;width:100%"/>
</style>
</table>
</contents>
<style>
<defaultStyles>
<defaultStyle
refStyle="pf"/>
</defaultStyles>
<CSS value="padding-
top:10px"/>
</style>
</pageFooter>
</page>
</reportPages>
</layout>
</layouts>
<XMLAttributes><XMLAttribute name="RS_CreateExtendedDataItems"
value="false" output="no"/><XMLAttribute name="listSeparator" value=","
output="no"/><XMLAttribute name="RS_modelModificationTime" value="2008-07-
25T15:28:38.133Z" output="no"/></XMLAttributes><reportName>freeze
panes</reportName></report>

Вам также может понравиться