appName = application.ptCalendar2.getAppBeanName(); //application.ADF.utils.doDump(appName,"appName",1); appConfigStruct = application.ptCalendar2.getAppConfig(); //application.ADF.utils.doDump(appConfigStruct,"appConfigStruct",0); // Set the UI theme from the Configuration Element uiTheme = 'redmond'; if ( structKeyExists(appConfigStruct,"calendar_app_ui_theme") AND LEN(TRIM(appConfigStruct['calendar_app_ui_theme'])) ) uiTheme = appConfigStruct['calendar_app_ui_theme']; // load jQuery headers application.ptCalendar2.scripts.loadJQuery(); // load header for jQuery UI application.ptCalendar2.scripts.loadJQueryUI(themeName=uiTheme); // load headers for ADF lightbox application.ptCalendar2.scripts.loadADFLightbox(); // load headers for jQuery DataTables application.ptCalendar2.scripts.loadJQueryDataTables(); elementName = "#appName# Configuration"; ManagePageTitleText = "Manage #appName# Configuration"; showResetLink = false; showDeleteLink = false; showHideConfigDataOption = false; appConfigArray = arrayNew(1); appConfig = structNew(); formID = 0; dataPageID = 0; configEditLinkText = "Add Configuration"; // check to see if the application configuration element exists elementExists = application.ADF.ceData.elementExists(elementName); //application.ADF.utils.doDump(elementExists,"elementExists",1); if( elementExists ) { formID = application.ADF.ceData.getFormIDByCEName(elementName); //application.ADF.utils.doDump(formID,"formID",1); // get the results for the element appConfigArray = application.ADF.ceData.getCEData(elementName); //application.ADF.utils.doDump(appConfigArray,"appConfigArray",0); if( ArrayLen(appConfigArray) ) { showResetLink = true; showDeleteLink = false; //true // setup some variables for the configuration links appConfig = appConfigArray[1].values; formID = appConfigArray[1].formID; dataPageID = appConfigArray[1].pageID; configEditLinkText = "Edit Configuration"; } }
#ManagePageTitleText#
#Application.ptCalendar.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.ptCalendar.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# #appConfig[key]#