I have a web part that will render an existing report on Report Server. The way I found to do this, is to render the report in a App Part using <iframe/>
and then reference the App Part in a web part using <Content Type="html" Src="~appWebUrl/Pages/Default.aspx" />
. However I will need to access the web part properties from the javascript. I'm trying to see if this is possible by using this function with a breakpoint on the 3rd line just to check if we were able to pull the properties:
function getWebPartProperties() {
var object = $('#gordoWebPart');
var properties = object.get_properties();
var properties2 = object.get_properties();
}
And I'm referencing this script in my App Part using <script type="text/javascript" src="../Scripts/App.js"></script>
. The problem is that even though I can see the App.js loaded in my App Part (using IE developer tools), I can't see the script loaded on my web part.
Am I registering the script in the wrong way? How should I approach this?