// Get the App configuration data appConfigStruct = application.npsStory.appConfig; configType = "story"; // Set the Edit Form Page defaults editFormPageID = 0; editFormPageURL = ''; // 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']; // Set the editFormPageURL from the editFormPageID editFormPageURL = application.npsStory.csData.getCSPageURL(editFormPageID); // Set the editFormPageURL from the Configuration Element //editFormPageURL = ''; //if ( structKeyExists(appConfigStruct,"addEditStoryFormPage") AND LEN(TRIM(appConfigStruct['addEditStoryFormPage'])) ) //editFormPageURL = appConfigStruct['addEditStoryFormPage'];
Add New Story