/content/folder[@name='Samples']/folder[@name='Cubes']/package[@name='Sales and Marketing (cube)']/model[@name='2008-07-25T15:28:38.072Z'][sales_and_marketing].[Retailers].[Retailers].[Retailers]->:[PC].[@MEMBER].[Retailers]<script>
/*
* Function: addEvent
* Author: Dan Fruendel
* Attachs an event or adds an event listener depending on the browser.
*/
var addEvent = function(element, event, func){
if(element.addEventListener){
addEvent = function(element, event, func) {
element.addEventListener(event, func, false);
return true;
};
}
else if(element.attachEvent) {
addEvent = function(element, event, func) {
return element.attachEvent("on" + event, func);
};
}
else {
addEvent = function(element, event, func) {
var oldEventHandler = element['on' + event];
element['on' + event] = function() {
//using .apply to pass on anything this function gets.
if(typeof(oldEventHandler) === "function") {
oldEventHandler.apply(element, arguments);
}
func.apply(element, arguments);
}
return true;
};
}
addEvent(element, event, func);
}
// Cognos form and namespace identifier. Don't touch.
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined) {
fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );
}
var preFix = "";
if (fW.elements["cv.id"]) { preFix = fW.elements["cv.id"].value; }
var nameSpace = "oCV" + preFix;
function attacher(elm,prompt,clicked){
var func = function() {
//if all is selected, zero out everything else.
if(clicked==0) {prompt[0].selected=true;prompt[0].checked=true;prompt[0].className="dijitInline dijitCheckBox dijitCheckBoxChecked";for(var i=1;i<prompt.length;++i){prompt[i].selected=false;prompt[i].checked=false;prompt[i].className="dijitInline dijitCheckBox"}}
//if individual, count number of selected
if(clicked>0) {var c=0;
for(var i=1;i<prompt.length;++i){
if(prompt[i].checked){++c}
}
//if the count of checked is 0, then set the all to checked
if(c==0) {setter=false;prompt[0].selected=true;prompt[0].checked=true;prompt[0].className="dijitInline dijitCheckBox dijitCheckBoxChecked"}
//if the count of checked is equal to the length of the prompt, then set the all to checked and uncheck everything else
else if(c==prompt.length-1) {setter=false;prompt[0].selected=true;prompt[0].checked=true;prompt[0].className="dijitInline dijitCheckBox dijitCheckBoxChecked"; for(var i=1;i<prompt.length;++i){prompt[i].selected=false;prompt[i].checked=false;prompt[i].className="dijitInline dijitCheckBox"}}
//if the count is one and less than the length of the prompt then just set all to unchecked;
else if(c>0&&c<prompt.length-1){prompt[0].checked=false;prompt[0].selected=false;prompt[0].className="dijitInline dijitCheckBox"}
}
canSubmitPrompt();
}
addEvent(elm,'click',func)
}
var prompt=fW._oLstChoicesCountries;
for (var i=0;i<prompt.length;++i){
attacher(prompt[i],prompt,i);
}
</script>No Data Availablecheckbox onclick[sales_and_marketing].[Measures].[Revenue][sales_and_marketing].[Measures].[Planned revenue][sales_and_marketing].[Measures].[Quantity][sales_and_marketing].[Measures].[Returns][sales_and_marketing].[Measures].[Gross profit][sales_and_marketing].[Measures].[Profit margin]descendants(set(#promptMany('Regions','mun')#),[sales_and_marketing].[Retailers].[Retailers].[Retailer country])descendants([sales_and_marketing].[Retailers].[Retailers].[Retailers]->:[PC].[@MEMBER].[Retailers],1, beforewithmember self)