//Path to open the ligthbox to AjaxPath = application.ADF.lightboxProxy; //Bean to preform add/edit AjaxBean = "forms_2_0"; AjaxMethod = "renderAddEditForm"; //Bean to preform deletion AjaxDeleteBean = "forms_2_0"; AjaxDeleteMethod = "renderDeleteForm"; //*******Modification below this should not be needed.******* adfDataSheetModHeaderCSS = ""; adfDataSheetModFooterJS = ""; // Check for Local Button Rendering Overrides if ( !StructKeyExists(variables,"adfDSmodule") ) variables.adfDSmodule = StructNew(); if ( !StructKeyExists(variables.adfDSmodule,"renderEditBtn") OR !IsBoolean(variables.adfDSmodule.renderEditBtn) ) variables.adfDSmodule.renderEditBtn = true; if ( !StructKeyExists(variables.adfDSmodule,"renderDeleteBtn") OR !IsBoolean(variables.adfDSmodule.renderDeleteBtn) ) variables.adfDSmodule.renderDeleteBtn = true; formID = edata.MetadataForm; addEditLink = ""; deleteLink = ""; urlParams = ""; mouseoverJS = "jQuery(this).addClass('ui-state-hover')"; mouseoutJS = "jQuery(this).removeClass('ui-state-hover')"; // Check for global ADF Datasheet Module overrides in request scope if ( StructKeyExists(request,"adfDSmodule") ) { if (StructKeyExists(request.adfDSmodule, "urlParams")) urlParams = TRIM(request.adfDSmodule.urlParams); if ( LEN(urlParams) AND Find("&",urlParams,"1") NEQ 1 ) urlParams = "&" & urlParams; } if ( variables.adfDSmodule.renderEditBtn ) addEditLink = "#ajaxPath#?bean=#AjaxBean#&method=#AjaxMethod#&formid=#formID#&dataPageId=#Request.DatasheetRow.pageid#&lbAction=refreshparent&title=Edit#urlParams#"; if ( variables.adfDSmodule.renderDeleteBtn ) deleteLink = "#ajaxPath#?bean=#AjaxDeleteBean#&method=#AjaxDeleteMethod#&formid=#formID#&dataPageid=#Request.DatasheetRow.pageid#&title=Delete#urlParams#"; application.ADF.scripts.loadJQuery(); application.ADF.scripts.loadJQueryUI(); application.ADF.scripts.loadADFLightbox(); // Load the inline CSS as a CSS Resource application.ADF.scripts.addHeaderCSS(adfDataSheetModHeaderCSS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY // Load the inline JS as a JS Resource if ( eparam.permitClientSideSort ) application.ADF.scripts.addFooterJS(adfDataSheetModFooterJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY