URL Path Length Restrictions
This applies to: Managed Dashboards, Managed Reports
If a URL query generates more than 2,083 characters (for example through the use of view parameters), an error will occur. To work around these browser limitations, create a short link, and then load the Symphony application.
The following example uses two logon tokens to create a short link and load the embedded application:
var dundasBIUrl = 'https://placeholder.dundas-bi-url.com/';
document.addEventListener("DOMContentLoaded", function (event) {
// *****************************************************************************
// It is a best practice to get the logon token at the server.
// Credentials should not be specified directly in script unless they should be
// freely available to users.
// *****************************************************************************
var logOnTokenOptions = { "accountName": "viewer", "password": "1234", "isWindowsLogOn": false };
// Gets two logon tokens: one to generate the shortlink, and one that then
// loads using the shortlink.
dundas.embed.logon.getLogonToken(
dundasBIUrl,
logOnTokenOptions,
function (logonTokenResultData1) {
dundas.embed.logon.getLogonToken(
dundasBIUrl,
logOnTokenOptions,
function (logonTokenResultData2) {
var dundasApp = dundas.embed.create(document.getElementById('dundasBI2'));
dundasApp.logonTokenId = logonTokenResultData1.logOnToken;
dundasApp.dundasBIUrl = dundasBIUrl;
dundasApp.controllerType = dundas.embed.ControllerType.DASHBOARD;
dundasApp.fileSystemId = '460ebfa5-116a-489b-9440-87e1c18ef957';
dundasApp.parameterValues = [
new dundas.embed.ParameterValue(
"viewParameter2",
"!" + 25000 + "~" + dundas.embed.tokens.basic.OPEN_RANGE
)
];
var logOnOptions = {
'logOnTokenId': logonTokenResultData2.logOnToken,
'deleteOtherSessions': true
};
dundasApp.loadAndCreateShortLink(logOnOptions);
}
);
}
);
});