applications/marketing/widget/sfa/CalendarScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="Calendar">
<section>
<actions>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<set field="parameters.period" from-field="parameters.period" default-value="${initialView}"/>
<script location="component://workeffort/webapp/workeffort/WEB-INF/actions/calendar/CreateUrlParam.groovy"/>
<set field="parentTypeId" from-field="parameters.parentTypeId" default-value="EVENT"/><!-- workeffortTypeId parent to ad events -->
</actions>
<widgets>
<include-screen name="CalendarOnly"/>
</widgets>
</section>
</screen>
<screen name="CalendarOnly">
<section>
<actions>
<set field="eventDetailWidgetName" from-field="eventDetailWidgetName" default-value="eventDetail" />
<set field="eventDetailWidgetLocation" from-field="eventDetailWidgetLocation" default-value="component://marketing/widget/sfa/CalendarScreens.xml" />
</actions>
<widgets>
<include-screen name="CalendarOnly" location="component://workeffort/widget/CalendarScreens.xml"/>
</widgets>
</section>
</screen>
<screen name="CalendarWithDecorator"><!-- used within the workeffort component to be able to add and show any workeffort type -->
<section>
<actions>
<set field="parameters.period" from-field="parameters.period" default-value="${initialView}"/>
<script location="component://workeffort/webapp/workeffort/WEB-INF/actions/calendar/CreateUrlParam.groovy"/>
<set field="titleProperty" value="WorkEffortCalendar"/>
</actions>
<widgets>
<decorator-screen name="CommonCalendarDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<include-screen name="CalendarOnly"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="eventDetail">
<section>
<widgets>
<include-screen name="eventDetail" location="component://workeffort/widget/CalendarScreens.xml"/>
</widgets>
</section>
</screen>
</screens>