/content/folder[@name='Samples']/folder[@name='Cubes']/package[@name='Sales and Marketing (cube)']/model[@name='2008-07-25T15:28:38.072Z']
<style type="text/css">
input.updatebutton
{
font-size:11px;
font-weight:bold;
width:140px;
height:27px;
color:#000000;
background-color:#cdc9c9;
border-style:solid;
border-color:#003377;
border-width:3px;
}
input.matchbutton
{
font-size:11px;
font-weight:bold;
width:140px;
height:27px;
color:#EEFFFF;
background-color:#0088DD;
border-style:solid;
border-color:#003377;
border-width:3px;
}
input.selectbutton
{
font-size:9px;
font-weight:bold;
width:60px;
height:20px;
color:#000000;
background-color:#FFFFFF;
border-style:solid;
border-color:#FFFFFF;
border-width:3px;
}
</style>
<script language="javascript">
function goLite(FRM,BTN)
{
window.document.forms[FRM].elements[BTN].style.color = "#FFFF99";
window.document.forms[FRM].elements[BTN].style.backgroundColor = "#11AAEE";
}
function goDim(FRM,BTN)
{
window.document.forms[FRM].elements[BTN].style.color = "#EEFFFF";
window.document.forms[FRM].elements[BTN].style.backgroundColor = "#0088DD";
}
</script>
<script>
function selectInCheckbox(cbGroup,id)
{
var inputs= document.getElementById(cbGroup).getElementsByTagName('input');
for (var i=0;i<inputs.length;i++)
{
if (inputs[i].value == id)
{
inputs[i].click();
}
}
}
function selectInCheckboxRow(cbGroup,id)
{
var inputs= document.getElementById(cbGroup).getElementsByTagName('input');
inputs[id].click();
}
function checkAll(list){
var inputs=document.getElementById(list).getElementsByTagName('input')
for (var i=0;i<inputs.length;i++){
if (inputs[i].type == 'checkbox') {
if (inputs[i].checked == true)
{}
else {inputs[i].click();}
}
}
}
function unCheckAll(list){
var inputs=document.getElementById(list).getElementsByTagName('input')
for (var i=0;i<inputs.length;i++){
if (inputs[i].type == 'checkbox') {
if (inputs[i].checked == true)
{inputs[i].click();}
else {}
}
}
}
function getSource (){
var targ;
if (!e) var e = window.event;
if(!e) return false;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // defeat Safari bug
targ = targ.parentNode;
return targ;
}
function checkNested(){
var
elm = getSource().parentNode
, tbody = elm.parentNode.parentNode.parentNode
, rowsLength = tbody.rows.length
, rowSpanLength = elm.rowSpan
, rowIndex = elm.parentNode.rowIndex
, isChecked = getSource().checked;
for(var i=rowIndex;i<rowIndex+rowSpanLength;i++)
{
var e = i == rowIndex?elm.cellIndex + 1 : 0;
if(tbody.rows[i].cells[e].getElementsByTagName('INPUT')[0].checked == isChecked) {continue;}
else{ tbody.rows[i].cells[e].getElementsByTagName('INPUT')[0].click()}
i = i+elm.nextSibling.rowSpan - 1;
}
}
</script>
<div id="checkbox1" >
</div>
<div id="checkbox2" >
</div>
<div id="list1">
HTML Item
<input title="Faster but if the sorting is off then this won't work" type="checkbox"
case when (ParamValue('code') +', ') contains ([Product line code] +', ') then (' checked ') else ('') end
onClick="selectInCheckboxRow('checkbox1','
RowNumber ()
');
">
By Code
<input title="Slower but less prone to error" type="checkbox"
case when (ParamValue('code') +', ') contains ([Product line code] +', ') then (' checked ') else ('') end
onClick="selectInCheckbox('checkbox1','
');
">
</div>
<input type="button" value="Select All" class="selectbutton" onmouseover = "this.style.cursor='hand'" onclick="checkAll('list1');">
<input type="button" value="Clear All" class="selectbutton" onmouseover = "this.style.cursor='hand'" onclick="unCheckAll('list1');">
<div id="list2">
No Data Available
<input type="checkbox" onclick="
checkNested()">
<input type="checkbox" onclick="
checkNested()">
<input title="Slower but less prone to error" type="checkbox"
case when (ParamValue('Quarter') +', ') contains ([Quarter - Category Code] +', ') then (' checked ') else ('') end
onClick="selectInCheckbox('checkbox2',unescape('
URLEncode ([Prompt].[Quarter - Category Code])
'));
">
</div>
<input type="button" value="Select All" class="selectbutton" onmouseover = "this.style.cursor='hand'" onclick="checkAll('list2');">
<input type="button" value="Clear All" class="selectbutton" onmouseover = "this.style.cursor='hand'" onclick="unCheckAll('list2');">
<div id="list3">
<input title="Slower but less prone to error" type="checkbox"
case when (ParamValue('code') +', ') contains ([Product line code] +', ') then (' checked ') else ('') end
onClick="selectInCheckbox('checkbox1','
');
">
<input title="Slower but less prone to error" type="checkbox"
case when (ParamValue('Quarter') +', ') contains ([Quarter - Category Code] +', ') then (' checked ') else ('') end
onClick="selectInCheckbox('checkbox2',unescape('
URLEncode ([Prompt].[Quarter - Category Code])
'));
">
</div>
<input type="button" value="Select All" class="selectbutton" onmouseover = "this.style.cursor='hand'" onclick="checkAll('list3');">
<input type="button" value="Clear All" class="selectbutton" onmouseover = "this.style.cursor='hand'" onclick="unCheckAll('list3');">
<style type="text/css">
input.updatebutton
{
font-size:11px;
font-weight:bold;
width:140px;
height:27px;
color:#000000;
background-color:#cdc9c9;
border-style:solid;
border-color:#003377;
border-width:3px;
}
input.matchbutton
{
font-size:11px;
font-weight:bold;
width:140px;
height:27px;
color:#EEFFFF;
background-color:#0088DD;
border-style:solid;
border-color:#003377;
border-width:3px;
}
input.selectbutton
{
font-size:9px;
font-weight:bold;
width:60px;
height:20px;
color:#000000;
background-color:#FFFFFF;
border-style:solid;
border-color:#FFFFFF;
border-width:3px;
}
</style>
<script language="javascript">
function goLite(FRM,BTN)
{
window.document.forms[FRM].elements[BTN].style.color = "#FFFF99";
window.document.forms[FRM].elements[BTN].style.backgroundColor = "#11AAEE";
}
function goDim(FRM,BTN)
{
window.document.forms[FRM].elements[BTN].style.color = "#EEFFFF";
window.document.forms[FRM].elements[BTN].style.backgroundColor = "#0088DD";
}
</script>
<script>
function selectInCheckbox(cbGroup,id)
{
var inputs= document.getElementById(cbGroup).getElementsByTagName('input');
for (var i=0;i<inputs.length;i++)
{
if (inputs[i].value == id)
{
inputs[i].click();
}
}
}
function selectInCheckboxRow(cbGroup,id)
{
var inputs= document.getElementById(cbGroup).getElementsByTagName('input');
inputs[id].click();
}
function checkAll(list){
var inputs=document.getElementById(list).getElementsByTagName('input')
for (var i=0;i<inputs.length;i++){
if (inputs[i].type == 'checkbox') {
if (inputs[i].checked == true)
{}
else {inputs[i].click();}
}
}
}
function unCheckAll(list){
var inputs=document.getElementById(list).getElementsByTagName('input')
for (var i=0;i<inputs.length;i++){
if (inputs[i].type == 'checkbox') {
if (inputs[i].checked == true)
{inputs[i].click();}
else {}
}
}
}
</script>
<div id="checkbox1" >
</div>
<div id="checkbox2" >
</div>
[sales_and_marketing].[Products].[Products].[Product line].[Product line - Category Code][sales_and_marketing].[Products].[Products].[Product line][sales_and_marketing].[Measures].[Quantity][sales_and_marketing].[Measures].[Revenue][sales_and_marketing].[Measures].[Gross profit][sales_and_marketing].[Time].[Time].[Year].[Year - Category Code][sales_and_marketing].[Time].[Time].[Year][sales_and_marketing].[Time].[Time].[Quarter][sales_and_marketing].[Time].[Time].[Quarter].[Quarter - Category Code][sales_and_marketing].[Time].[Time].[Time]->:[PC].[@MEMBER].[Time]
[sales_and_marketing].[Measures].[Revenue][sales_and_marketing].[Products].[Products].[Product type][sales_and_marketing].[Products].[Products].[Product line].[Product line - Category Code] in (?code?)[sales_and_marketing].[Time].[Time].[Quarter].[Quarter - Category Code] in (?Quarter?)[sales_and_marketing].[Time].[Time].[Quarter].[Quarter - Category Code][sales_and_marketing].[Time].[Time].[Quarter]
ParamValue('code') is not null
checkbox 2