Hi,
I have multiple report suites I need to send multiple web links to. For some reason this code only works in the code for the library management section. I want to move this down to the customize page code section, but it wont work. I even tried selecting the "After UI settings (custom code takes precedence)" option.
function setSAccount(href) { var prod = /(^(prod[0-9]w[0-9])$)|(^(origination[0-9]w[0-9])$)|(^(servicing[0-9]w[0-9])$)/, href = window.location.href, beta = /(^(beta[0-9]w[0-9])$)|(^(originationbeta[0-9]w[0-9])$)|(^(servicingbeta[0-9]w[0-9])$)/, test = /(^(test[0-9]w[0-9])$)|(^(originationtest[0-9]w[0-9])$)|(^(servicingtest[0-9]w[0-9])$)/, a = href.split("//"), b = a[1].split("."), if(b[0].indexOf("www") == 0) { s_account = 'reportsuiteprod,reportsuiteglobalprod'; }else if (b[0].indexOf("beta") == 0 ) { s_account = 'reportsuitebeta'; }else if (b[0].indexOf("test") == 0 ) { s_account = 'reportsuitetest,reportsuiteglobaltest'; } return s_account; };