appConfigStruct = application.ptPortlet.getAppConfig();
UItheme = 'redmond';
// Set the UI theme from the Configuration Element
if ( structKeyExists(appConfigStruct,'portlet_ui_theme') AND LEN(TRIM(appConfigStruct['portlet_ui_theme'])) )
UItheme = appConfigStruct['portlet_ui_theme'];
// load jQuery headers
application.ADF.scripts.loadJQuery();
// load headers for jQuery light box
application.ptPortlet.scripts.loadADFLightbox();
// load header for jQuery UI
application.ADF.scripts.loadJQueryUI(themeName=UItheme);
ManageElementName = "ptPortlet_Configuration";
ManagePageTitleText = "Manage Portlet Configuration";
AddRecordLinkText = "Add New Config Data";
AjaxPath = application.ADF.ajaxProxy;
AjaxBean = "forms_1_0";
editForm = "renderAddEditForm";
lbAction = "refreshparent";
formID = application.ADF.cedata.getFormIDByCEName(ManageElementName);
dpid = 0;
formResultHTML = "";
lightboxwidth = 600;
lightboxheight = 500;
// Only Add ONE config record to the Element
// So remove the ADD LINK if a record exists
showAddLink = true;
showResetLink = false;
ceArray = application.ADF.ceData.getCEData(ManageElementName);
if ( ArrayLen(ceArray) GT 0 ) {
showAddLink = false;
showResetLink = true;
}
#ManagePageTitleText#
#variables.AddRecordLinkText# (Disabled - Configuration Exists)