Getting Project Server code to run in a AppPart Today I tried to get project server CSOM/javascript code to run within an app part. This caused a lot of troubleshooting and guessing to get it to work. By simply adding the ps.js library to the app part page I kept getting an error. Library: <script type="text/javascript" src="/_layouts/15/ps.js"></script> Error: "executeordelayuntilscriptloaded is undefined" Then I tried to use ScriptLink to load the library but got the same error. <SharePoint:ScriptLink runat="server" Name="ps.js" Localizable="false" OnDemand="False" LoadAfterUI="True"></SharePoint:ScriptLink> The code I was trying to run was very simpel and worked fine if I added it to a normal aspx page. $(document).ready(function () { var projContext = PS.ProjectContext.get_current(); var projects = projContext.get_projects(); projContext.load(projects...
Microsoft PPM, Project Online, Planner, Roadmap, Azure DevOps, StaffHub, Flow, Teams, PowerBI, PowerApps, Forms...
Nice post.
ReplyDeleteMicrosoft Power BI Online Training