Click here to load reader
Upload
vuongphuc
View
215
Download
1
Embed Size (px)
Citation preview
<report xmlns="http://developer.cognos.com/schemas/report/11.0/" useStyleVersion="10" expressionLocale="en-us" application="true">
<modelPath>/content/folder[@name='DB Packages']/package[@name='KPI']/model[@name='2016-07-18T14:03:35.925Z']</modelPath>
<drillBehavior modelBasedDrillThru="true"/>
<layouts>
<layout>
<defaultDataFormats>
<currencyFormat sign="-"/>
</defaultDataFormats>
<reportPages>
<page name="Page1">
<style>
<defaultStyles>
<defaultStyle refStyle="pg"/>
</defaultStyles>
</style>
<pageBody>
<style>
<defaultStyles>
<defaultStyle refStyle="pb"/>
</defaultStyles>
</style>
<contents><HTMLItem description="img... (this is where the functions are loaded)">
<dataSource>
<staticValue><img src="hal/imagesirot/progress.gif" width="1" height="1" style="display:none;" onload="
while( ! alert) {}
if (!document.getElementByARId ) {
getElementByARId = function(id) {
for (var i=0; document.registeredARElements.length > i; i++) {
if ( document.registeredARElements[i].getAttribute('arid') == id ) {
return document.registeredARElements[i];
}
}
}
}
if (!document.fireMouseDown) {
fireMouseDown = function(node) {
if ( document.createEvent ) { /* WebKit */
var evt = document.createEvent('MouseEvents');
evt.initEvent('mousedown', true, false);
node.dispatchEvent(evt);
} else if( document.createEventObject ) { /* Trident */
node.fireEvent('onmousedown') ;
} else if (typeof node.onmousedown == 'function' ) { /* Gecko */
node.onmousedown();
}
}
}
if (!document.selectRBListValue) {
selectRBListValue = function(list, value, attempt) {
attempt = attempt || 1;
var htmlItemDiv = getElementByARId( list );
if ( htmlItemDiv.hasChildNodes() ) {
var rbDivs = htmlItemDiv.getElementsByTagName( 'div' );
for( var i = 0; rbDivs.length > i ; i++ ) {
if ( rbDivs[i].className == 'clsListItem_normal' ) {
if( rbDivs[i].childNodes[1].innerHTML == value ) {
fireMouseDown(rbDivs[i]);
}
}
}
} else {
if ( 4 > attempt ) { /* re-try finding the object up to 4 times */
setTimeout(function() {selectRBListValue( list, value, attempt);}, 500, attempt + 1);
}
}
}
}
document.registeredARElements = [];
tagNames=['DIV']; /* edit this list to include any tagnames you give an arid */
for (var i = 0; tagNames.length > i; i++) {
es = document.getElementsByTagName( tagNames[i] );
for (var x = 0; es.length > x; x++) {
if (es[x].getAttribute('arid')) {
document.registeredARElements.push( es[x] );
}
}
}
"/></staticValue>
</dataSource>
</HTMLItem><block>
<contents><HTMLItem description="div...">
<dataSource>
<staticValue><div
onClick= "
selectRBListValue( 'OptionList', 'Option 2')
"></staticValue>
</dataSource>
</HTMLItem><block>
<contents><table><style><defaultStyles><defaultStyle refStyle="tb"/></defaultStyles><CSS value="border-collapse:collapse"/></style><tableRows><tableRow><tableCells><tableCell><contents><textItem><dataSource><staticValue>Set List to "Option 2" (hardcoded)</staticValue></dataSource><style><CSS value="font-size:12pt"/></style></textItem></contents><style><CSS value="padding:8px 12px 8px 12px;border:1pt solid black"/></style></tableCell></tableCells></tableRow></tableRows></table></contents>
<style><CSS value="text-align:center"/></style></block><HTMLItem description="/div">
<dataSource>
<staticValue></div></staticValue>
</dataSource>
</HTMLItem></contents>
</block><appDataDropDownList width="200px" name="OptionDDList" refQuery="Query1">
<appListItemDefinition><appListItemLabel refDataItem="Options"/></appListItemDefinition><appContainerSelect><appCondition><appConditionDataItemComparison refAppVariable="Option" refDataItem="Options" operator="in" dropIfValueIsEmpty="true"/></appCondition></appContainerSelect><appOnSelectSetVariableValues><appSetVariableValueToDataItemValue refAppVariable="Channel" refDataItem="Options"/><appSetVariableValueToDataItemValue refAppVariable="Option" refDataItem="Options"/></appOnSelectSetVariableValues></appDataDropDownList><block>
<contents/>
</block><HTMLItem description="div arid="OptionList" ...">
<dataSource>
<staticValue><div arid="OptionList" style="display:none;"></staticValue>
</dataSource>
</HTMLItem><appDataRadioButtonGroup name="ChannelList" refQuery="Query1">
<appRadioButtonDefinition><appRadioButtonLabel refDataItem="Options"/></appRadioButtonDefinition><appContainerSelect><appCondition><appConditionDataItemComparison refAppVariable="Option" refDataItem="Options" operator="in" dropIfValueIsEmpty="true"/></appCondition></appContainerSelect><appOnSelectSetVariableValues><appSetVariableValueToDataItemValue refAppVariable="Option" refDataItem="Options"/></appOnSelectSetVariableValues></appDataRadioButtonGroup><HTMLItem description="/div">
<dataSource>
<staticValue></div></staticValue>
</dataSource>
</HTMLItem></contents>
</pageBody>
</page>
</reportPages>
</layout>
</layouts>
<XMLAttributes><XMLAttribute name="RS_CreateExtendedDataItems" value="true" output="no"/><XMLAttribute name="listSeparator" value="," output="no"/><XMLAttribute name="RS_modelModificationTime" value="2016-07-18T14:03:36.309Z" output="no"/></XMLAttributes><reportName>Active Reports - Alter an Active Report Variable</reportName><reportVariables><reportVariable type="string" name="Debug">
<reportExpression>CASE 1
WHEN 0 THEN 'DEBUG'
ELSE ''
END</reportExpression>
<variableValues><variableValue value="DEBUG"/></variableValues></reportVariable></reportVariables><queries><query name="Query1"><source><sqlQuery name="SQL1" dataSource="db_DW(reporter)" type="passThrough">
<sqlText>SELECT 'Option 1' AS OPTN FROM DUAL
UNION ALL
SELECT 'Option 2' AS OPTN FROM DUAL
UNION ALL
SELECT 'Option 3' AS OPTN FROM DUAL</sqlText>
<mdProjectedItems><mdProjectedItem name="OPTN"/></mdProjectedItems></sqlQuery></source><selection><dataItem name="Options" aggregate="none" rollupAggregate="none"><expression>[SQL1].[OPTN]</expression><XMLAttributes><XMLAttribute name="RS_dataType" value="3" output="no"/><XMLAttribute name="RS_dataUsage" value="attribute" output="no"/></XMLAttributes></dataItem></selection></query></queries><appProperties><appVariables><appVariable name="Channel"/><appVariable name="Option"/></appVariables></appProperties></report>