I have some overrides to manage connection string and then dynamically load page. I essentially just want the page to be empty so one can drag and drop relevant dimension attributes and measure values.
For example I have:
var injector = window.angular.element(document.getElementById("@applicationId")).injector(); var api = injector.get('ranetAngularInstance');
api.config({ connection: "@Model.CubeConnectionString", //this works, which is not in documentation connectionString: "@Model.CubeConnectionString", //this property does not seem to work defaultConnection: "@Model.CubeConnectionString", //this property does not seem to work idDefaultPage: "0", toolbar: [{ name: "editConnectionButton", isVisible: false }]
});
api.addNewPage(page); api.setSelectedPage("0");
You can see what is rendered in the attached file.
I'm noticing in all the examples though the control a child of body and is the only control; to get this to render correctly do I need to take the iframe approach?
Vyacheslav SemenkovClient
No, iframe is not the only way to render the control. Moreover using iframe will lead to additional difficulties.
As I can see, something went wrong when setting styles for layout in JS code. Are there any errors in Chrome Console?
Joe GarroClient
There are no errors and I have no additional CSS aside from the the GetAllResources call.
Vyacheslav SemenkovClient
Ok, I got the problem. If you want to put our directive inside body add this styles to your html page: