// Get the App configuration data
appConfigStruct = application.npsStory.appConfig;
configType = "story";
// Set the UI theme from the Configuration Element
uiTheme = 'redmond';
if ( structKeyExists(appConfigStruct,"uiTheme") AND LEN(TRIM(appConfigStruct['uiTheme'])) )
uiTheme = appConfigStruct['uiTheme'];
// Set the Edit Form Page defaults
editFormPageID = 0;
editFormPageURL = '';
// Set the Manager Page defaults
managerPageID = 0;
managerPageURL = '';
// Get the editFormPageID from the Configuration Element
if ( StructKeyExists(appConfigStruct,configType) AND StructKeyExists(appConfigStruct[configType],"editorPageID") AND IsNumeric(appConfigStruct[configType]['editorPageID']) )
editFormPageID = appConfigStruct[configType]['editorPageID'];
// Get the managerPageID from the Configuration Element
if ( StructKeyExists(appConfigStruct,configType) AND StructKeyExists(appConfigStruct[configType],"managerPageID") AND IsNumeric(appConfigStruct[configType]['managerPageID']) )
managerPageID = appConfigStruct[configType]['managerPageID'];
// Set the editFormPageURL from the editFormPageID
editFormPageURL = application.npsStory.csData.getCSPageURL(editFormPageID);
// Set the managerPageURL from the managerPageID
managerPageURL = application.npsStory.csData.getCSPageURL(managerPageID);
application.npsStory.scripts.loadJQuery();
application.npsStory.scripts.loadJQueryUI(themeName=uiTheme);
application.npsStory.scripts.loadADFLightbox();
globalStoryID = "0";
addLink = "#application.ADF.lightboxProxy#?bean=storyController&method=processStoryEdit&globalStoryID=#globalStoryID#&title=Loading Story Editor";