Custom report suite configuration | Community
Skip to main content
June 30, 2016
Solved

Custom report suite configuration

  • June 30, 2016
  • 1 reply
  • 681 views

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; };
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParitMittal

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

1 reply

ParitMittal
ParitMittalAccepted solution
Level 10
July 15, 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