I have several functions nested under a initializePage
function that gets executed once this runs:
ExecuteOrDelayUntilScriptLoaded(initializePage, "sp.js");
Is there a way to set a variable like this:
var dynamicTable = ExecuteOrDelayUntilScriptLoaded(initializePage, "sp.js");
And not have it under some function because I need to keep it in the global scope. Returning it like this brings back a boolean value of false
. The majority of the SharePoint app is under the initializePage
function so I don't want to call it again in case it duplicates what was already on the page from the first time (it essentially makes a CSV file and HTML table from list data). I need this value to pass off to functions that will filter the table. Thanks in advance.