var tgvUrl = aras.getBaseURL('/Modules/aras.innovator.TreeGridView/Views/MainPage.html?');
var allParams = [tgvdIdParam, startConditionProviderParam, parametersProviderParam];
for (var i = 0; i < allParams.length; i++) {
if (allParams[i]) {
tgvUrl += (i === 0 ? '' : '&') + allParams[i];
}
}
/* This call to a dialog is replaced with the code below
var dialogParameters = {
dialogWidth: 800,
dialogHeight: 600,
title: 'Tree Grid View Sample',
content: tgvUrl
};
topWindow.ArasModules.MaximazableDialog.show('iframe', dialogParameters).promise.then(function() {
delete topWindow.CustomStartConditionProvider;
delete topWindow.CustomParametersProvider;
});
*/
// Use this code instead to insert an iframe directly into the HTML instead of opening it through a dialog
var iframe = document.createElement('iframe');
iframe.id = 'tree_grid_viewer';
iframe.width = '100%';
iframe.height = '100%';
iframe.frameBorder = '0';
iframe.scrolling = 'auto';
iframe.src = tgvUrl;
document.body.insertBefore(iframe, document.body.childNodes[0]);
In regards to the other issue you're seeing with trees being displayed many times, this may be an issue with your query itself or the starting parameters that you're passing in. I'd suggest reviewing the query in the Query Definition editor and use the "Execute Query" action to test that the arguments you're passing in are giving the results you expect.
Chris
../javascript/dojo/../../cbin/../Images/Refresh.svg
becomes ../../../javascript/dojo/../../cbin/../Images/Refresh.svg
)
I haven't yet discovered a way to resolve this programmatically, but hopefully this information helps in your own search.
Chris
Copyright © 2024 Aras. All rights reserved.