7

Click here to load reader

bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

Embed Size (px)

Citation preview

Page 1: bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

<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>&lt;img src="hal/imagesirot/progress.gif" width="1" height="1" style="display:none;" onload="

while( ! alert) {}

Page 2: bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

if (!document.getElementByARId ) {

getElementByARId = function(id) {

for (var i=0; document.registeredARElements.length &gt; 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 &gt; i ; i++ ) {

Page 3: bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

if ( rbDivs[i].className == 'clsListItem_normal' ) {

if( rbDivs[i].childNodes[1].innerHTML == value ) {

fireMouseDown(rbDivs[i]);

}

}

}

} else {

if ( 4 &gt; 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 &gt; i; i++) {

es = document.getElementsByTagName( tagNames[i] );

for (var x = 0; es.length &gt; x; x++) {

if (es[x].getAttribute('arid')) {

document.registeredARElements.push( es[x] );

}

}

}

"/&gt;</staticValue>

</dataSource>

</HTMLItem><block>

Page 4: bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

<contents><HTMLItem description="div...">

<dataSource>

<staticValue>&lt;div

onClick= "

selectRBListValue( 'OptionList', 'Option 2')

"&gt;</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>&lt;/div&gt;</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=&quot;OptionList&quot; ...">

<dataSource>

Page 5: bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

<staticValue>&lt;div arid="OptionList" style="display:none;"&gt;</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>&lt;/div&gt;</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

Page 6: bobsbiblog.files.wordpress.com …  · Web viewtagNames=['DIV']; /* edit this list to include any tagnames you give an arid *

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>