var specs = structNew(); specs.defaultTextType = "shortText"; switch(arguments.ceName) { // calendar case "Calendar Event Details": //specs.shortText = "uniqueID,parentID,sourceParentID,seriesParentID,organization,eventApproved,ApprovalUserID,EventRecurrenceID"; specs.longText = "description,category,rejectionReason,sponsors,EventDateTimeIDList"; break; case "Calendar Event DateTime": //specs.shortText = "uniqueID,calEventID,allDay,dtHashID,parentRecurrenceID"; break; case "Calendar Event Recurrence": //specs.shortText = "uniqueID,calEventID"; break; case "Calendar Event Categories": //specs.shortText = "catID,Active,Ordinal"; specs.longText = "OrgIDList,NotificationUserIDs"; break; case "Calendar Organizations": //specs.shortText = "uniqueID,Active,Ordinal"; break; } return specs; arguments.viewName = trim(arguments.viewName); if (arguments.viewName eq "") arguments.viewName = getCEViewName(arguments.ceName); return application.ptCalendar.cedata.buildView ( argumentCollection=arguments, fieldTypes=getCEViewSpecs(arguments.ceName) );