Custom report suite configuration

olivia518

30-06-2016

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; };

Accepted Solutions (1)

Accepted Solutions (1)

ParitMittal

15-07-2016

Hi Olivia,

We tried doing the similar thing to my own DTM Implemenation and the code was working even when placed in the "Customize Page Code " Section. Please find below the code which we placed on our site :

function setSAccount() { var href = window.location.href; var a = href.split("//"); var b = a[1].split(":"); if(b[0].indexOf("localhost") == 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; } s.account= setSAccount();

Can you please share DTM account login credentials in a private message so that we can debug the same from our end.

Thanks & Regards

Parit Mittal

Answers (0)