applications/marketing/widget/sfa/ForecastScreens.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="CommonSalesForecastDecorator">
<section>
<actions>
<set field="activeSubMenu" from-field="activeSubMenu" default-value="component://marketing/widget/SalesMenus.xml#Sales" />
<set field="activeSubMenuItem" from-field="activeSubMenuItem" default-value="Forecast"/>
</actions>
<widgets>
<decorator-screen name="CommonSfaAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!--<condition><not><if-empty field="salesForecastId"/></not></condition>-->
<widgets>
<include-menu name="SalesForecastTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
</widgets>
</section>
<container>
<decorator-section-include name="body"/>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindSalesForecast">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindSalesForecast"/>
<set field="activeSubMenu" from-field="activeSubMenu" default-value="component://marketing/widget/SalesMenus.xml#Sales" />
<set field="activeSubMenuItem" value="Forecast"/>
<set field="findScreenShowResults" value="true"/> <!-- Always display results -->
</actions>
<widgets>
<decorator-screen name="CommonSfaAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<!--<container style="button-bar"><link target="EditSalesForecast" text="${uiLabelMap.SfaNewSalesForecast}" style="${styles.link_nav} ${styles.action_add}"/></container>-->
<include-menu name="SalesForecastTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindSalesForecast" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="SalesForecastSearchResults" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</decorator-section>
</decorator-screen>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSalesForecast">
<section>
<actions>
<!--<set field="activeSubMenuItem" value="EditSalesForecast"/>-->
<set field="salesForecastId" from-field="parameters.salesForecastId"/>
<entity-one entity-name="SalesForecast" value-field="salesForecast"/>
<set field="titleProperty" value="${groovy: context.salesForecast ? 'PageTitleEditSalesForecast' : 'SfaNewSalesForecast'}"/>
<set field="isNewSalesForecast" type="Boolean" value="${groovy: context.salesForecast ? false : true}"/>
</actions>
<widgets>
<decorator-screen name="CommonSalesForecastDecorator">
<decorator-section name="body">
<screenlet><!-- title="${uiLabelMap.SfaEditSalesForecast}" -->
<!--<section>
<condition><not><if-empty field="salesForecastId"/></not></condition>
<widgets>
<container style="button-bar">
<link target="EditSalesForecast" text="${uiLabelMap.SfaNewSalesForecast}" style="${styles.link_nav} ${styles.action_add}"/>
</container>
</widgets>
</section>-->
<include-form name="EditSalesForecast" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditSalesForecastDetail">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditSalesForecastDetail"/>
<!--<set field="activeSubMenuItem" value="EditSalesForecastDetail"/>-->
<set field="salesForecastId" from-field="parameters.salesForecastId"/>
<entity-one entity-name="SalesForecast" value-field="salesForecast"/>
</actions>
<widgets>
<decorator-screen name="CommonSalesForecastDecorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.SfaAddSalesForecastDetail} ${uiLabelMap.CommonFor} [${salesForecastId}]">
<include-form name="AddSalesForecastDetail" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.SfaListSalesForecastDetail}">
<include-form name="ListSalesForecastDetails" location="component://marketing/widget/sfa/forms/ForecastForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>