appName = application.ptCourseCatalog.getAppBeanName(); //application.ADF.utils.doDump(appName,"appName",1); appConfig = application.ptCourseCatalog.getAppConfig(); //application.ADF.utils.doDump(appConfig,"appConfig",0); // Set the UI theme from the Configuration Element uiTheme = application.ptCourseCatalog.getUItheme(); // load jQuery headers application.ptCourseCatalog.scripts.loadJQuery(); // load header for jQuery UI application.ptCourseCatalog.scripts.loadJQueryUI(themeName=uiTheme); // load headers for ADF lightbox application.ptCourseCatalog.scripts.loadADFLightbox(); // load headers for jQuery DataTables application.ptCourseCatalog.scripts.loadJQueryDataTables(); // Load the Course Catalog App Admin CSS File application.ptCourseCatalog.catalogRenderService.renderCourseCatalogAdminCSS(); elementName = "#appName# Configuration"; ManagePageTitleText = "Manage #appName# Configuration"; showResetLink = false; showResetRebuildLink = false; showDeleteLink = false; showHideConfigDataOption = false; // List of config field names or parts of field names to not render out in config data table configKeyExcludeList = "cfgLbl"; appConfigArray = arrayNew(1); appConfig = structNew(); formID = 0; dataPageID = 0; configEditLinkText = "Add Configuration"; // check to see if the application configuration element exists elementExists = application.ptCourseCatalog.ceData.elementExists(elementName); //application.ADF.utils.doDump(elementExists,"elementExists",1); if( elementExists ) { formID = application.ptCourseCatalog.ceData.getFormIDByCEName(elementName); //application.ADF.utils.doDump(formID,"formID",1); // get the results for the element appConfigArray = application.ptCourseCatalog.ceData.getCEData(elementName); //application.ADF.utils.doDump(appConfigArray,"appConfigArray",0); if( ArrayLen(appConfigArray) ) { showResetLink = true; showResetRebuildLink = true; showDeleteLink = false; //true // setup some variables for the configuration links appConfigValues = appConfigArray[1].values; formID = appConfigArray[1].formID; dataPageID = appConfigArray[1].pageID; configEditLinkText = "Edit Configuration"; } }
#application.ptCourseCatalog.ui.buildAddEditLink( linkTitle=configEditLinkText ,formName=elementName ,dataPageID=dataPageID ,refreshparent="true" ,urlParams="" ,lbTitle=configEditLinkText ,linkClass="editConfigBtn ui_button ui-state-default ui-corner-all" )# Show/Hide Configuration #application.ptCourseCatalog.ui.buildAddEditLink( linkTitle=configEditLinkText ,formName=elementName ,dataPageID=dataPageID ,refreshparent="true" ,urlParams="" ,lbTitle=configEditLinkText ,linkClass="editConfigBtn ui_button ui-state-default ui-corner-all" )#
style="display:none;">
Config Field Name Config Value
#key# #appConfigValues[key]#