In Project Online, I have a web part that will render a report on a 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 web 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?
I'm quite new to this, so I won't be surprise if I'm making a major mistake, so apologies in advance. :)