insert into tbl_SYS_ResourcePermissions ( ownertype, ownerId, resourceType, resourceURL, requiredPermission ) values ( '*', 0, , , ) select requiredPermission from tbl_SYS_ResourcePermissions with (nolock) where ownerType = '*' and ownerId = 0 and resourceType = and resourceURL = #attributes.applicationCode# is not in the portalConfiguration Evaluate( "session._#moduleID#Config = config" ); Evaluate( "request.config = session._#moduleID#Config" ); templateConfig = StructNew(); templateConfig.pageTemplate = "#attributes.pageTemplateName#.cfm"; templateConfig.options = attributes.options; templateConfig.flex = attributes.flex; templateConfig.display = attributes.display; templateConfig.javascript = attributes.javascript; /* if( isDefined( "attributes.title" )) { templateConfig.title = attributes.title; } else { templateConfig.title = ""; } */ templateConfig.displayAsPopup = displayAsPopup; templateConfig.usingAjax = true; templateConfig.usingCalendar = true; if( attributes.requiredPermission neq "") { templateConfig.requiredPermission = attributes.requiredPermission; } templateConfig.tabName = attributes.tabName; templateConfig.moduleId = moduleId; if( isDefined( "attributes.view" ) and attributes.view neq "") { request.frameworkView = attributes.view; } else { request.frameworkView = ""; }