<%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit server=localhost:8080 projectName=calendar_app label= location=calendar_view_common/calendar_mapping_setup-editform.jsp version= docType=editpage subType=form moduleName=calendar_events fieldName= channels=revize|production description=Gets current event parameters and calls calendar_mapping.jsp --%><%-- #BeginRZ-PageHeader --%><%@ page language="java" %><% String rzmodule = "calendar_events"; %><%@ include file = "/util/setup_editform_header.jsp" %><%-- #EndRZ-PageHeader --%> Mapping Setup <%-- ___________________________________________________________________________________ This Edit Page deviates from standard Revize editform as follows: 1. setup_editform_javascript.jsp is included below in the head section rather than after the body tag 2. /plugins/calendar/calendar.version_include.jsp finds the main page (homeframe) while page is loading and subsequently retrieves resources from the homeframe when loadResource() is called after all files are loaded. ___________________________________________________________________________________ --%><%@ include file="/util/setup_editform_javascript.jsp" %><%@ include file="/plugins/calendar/calendar.version_include.jsp" %><% //----- Page specific JSP code LOADING = "Preparing to Update Database..."; %><%-- //-------------------------------------------------------------------------------\\ Following script, link and style tags just for DW reference, They are NOT published. Javascript functions run from homepage; CSS cloned from the homepage during setup(). --%><% if (false) { %> <% //-------------------------------------------------------------------------------// } %><%-- @@no-source-format@@ /***************************************************/ /**/ .RZhidden class hides elements in browser /**/ /**/ ...BUT allows DW to show in design view... /**/ /**/ /* Following css does not get published */ /**/ /**/ --%><% if (false){ /**/ /**/ %><% } /**/ /**/ /* Following IS published for Browsers */ /**/ /**/ /* use marker to test CSS priority */ /**/ /**/ %><%-- /**/ /***************************************************/ @@no-source-format@@ --%> <%-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * DELETE standard javascript include file after the body tag (if shown above); it is included in the section for edit pages and not used on templates. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --%> <%if(false){%>
NOTE: blocks with class=RZhidden show with this background in DW only; they are hidden when page displays in browser unless changed by javascript or other CSS.
<%}%> <%@ include file="/plugins/calendar/calendar.loading_layer_include.jsp" %>

Debug Mode caused pause on this page

This page determines which mapping records to update when event created or updated.

Logic on this page can probably be moved into calendar_event_detail-editform.jsp
since the recordid for new events is now pre-assigned.

The event edit form calls this page with &last parameter when creating new events;
otherwise the event edit form calls this page with the existing event recordid.
In either case RZ.editrecordid contains the event id.

If this page is refreshed, it should produce the same results.
The next URL updates the database.



year_month: <%=rz.fetch("calendar_events","year_month")%>
year_week: <%=rz.fetch("calendar_events","year_week")%>
calendar name:
calendarid:
rollup: <% rz.fetch("calendar_events","rollup"); if (rz.content.trim().equals("|")) rz.content = ""; rz.content = rz.content.replaceAll("\\|",", "); %><%=rz.content%>
default calendar id: <%=rz.fetch("calendar_config","default_calendar_name")%>

nexturl = calendar_mapping_update-editform.jsp