// Get the Configuration Data
appConfigStruct = application.ptPortlet.getAppConfig();
UItheme = 'redmond';
// Set the UI theme from the Configuration Element
if ( LEN(TRIM(appConfigStruct['portlet_ui_theme'])) )
UItheme = appConfigStruct['portlet_ui_theme'];
scripts = server.ADF.objectFactory.getBean("Scripts_1_0");
CEdata = server.ADF.objectFactory.getBean("CEData_1_0");
formID = CEData.getFormIDFromPageID(Request.DatasheetRow.pageid);
scripts.loadJQuery();
scripts.loadJQueryUI(themeName=UItheme);
scripts.loadADFLightbox();
uniqueID = Request.Datasheet.currentColumnValue;
AjaxPath = application.ADF.ajaxProxy;
AjaxBean = "forms_1_0";
editForm = "renderAddEditForm";
lbAction = "refreshparent";
DeleteBean = "managePodForms";
DeleteMethod = "renderDeletePodForm";
EditTitle = "Edit";
DeleteTitle = "Delete";
lightboxwidth = 500;
lightboxheight = 500;
deletelightboxwidth = 350;
deletelightboxheight = 150;
if ( NOT structKeyExists(request.params,"hasRTE") )
request.params.hasRTE = application.ADF.cedata.containsFieldType(formID, "formatted_text_block");
if ( NOT structKeyExists(request.params,"hasLargeText") )
request.params.hasLargeText = application.ADF.cedata.containsFieldType(formID, "large_textarea");
if ( (request.params.hasRTE) OR (request.params.hasLargeText) )
lightboxwidth = 750;
|