applications/marketing/widget/sfa/LeadScreens.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="FindLeads">
<section>
<actions>
<set field="titleProperty" value="MarketingFindLeads"/>
<set field="currentUrl" value="FindLeads"/>
<set field="activeSubMenuItem" value="Leads"/>
<script lang="groovy"><![CDATA[
session.setAttribute('leadDescription', context.activeSubMenuItem)
session.removeAttribute('accountDescription')
session.removeAttribute('contactDescription')
]]></script>
<set field="findScreenShowResults" value="true"/> <!-- Always display results -->
</actions>
<widgets>
<!--<decorator-screen name="CommonSfaAppDecorator" location="${parameters.mainDecoratorLocation}">-->
<decorator-screen name="CommonLeadDecorator" location="component://marketing/widget/sfa/CommonScreens.xml">
<decorator-section name="body">
<include-menu name="LeadSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<!-- <include-menu name="LeadFindTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/> -->
<include-form name="FindLeads" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<section>
<widgets>
<!-- list all leads -->
<!-- <label style="heading" text="${uiLabelMap.SfaAllLeads}"/> -->
<include-form name="ListLeads" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="NewLead">
<section>
<actions>
<set field="titleProperty" value="PageTitleCreateLead"/>
<property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
</actions>
<widgets>
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="createLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ConvertLead">
<section>
<actions>
<set field="activeSubMenuItem" value="ConvertLead"/>
</actions>
<widgets>
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field="parameters.partyGroupId"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.SfaConvertLead}">
<include-form name="ConvertLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</widgets>
<fail-widgets>
<label text="Please first add related company." />
<screenlet title="${uiLabelMap.PageTitleAddRelatedCompany}" >
<include-form name="AddRelatedCompany" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CloneLead">
<section>
<actions>
<set field="activeSubMenuItem" value="CloneLead"/>
<script location="component://marketing/webapp/sfa/WEB-INF/action/CloneLead.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.SfaCloneLead}">
<include-form name="createLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="MergeLeads">
<section>
<actions>
<set field="activeSubMenuItem" value="MergeLeads"/>
<script location="component://marketing/webapp/sfa/WEB-INF/action/MergeContacts.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.SfaMergeLeads}">
<include-form name="MergeLeads" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
<section>
<condition>
<if-compare-field field="parameters.partyIdFrom" operator="not-equals" to-field="parameters.partyIdTo"/>
</condition>
<widgets>
<platform-specific>
<html><html-template location="component://marketing/webapp/sfa/lead/mergeLeads.ftl"/></html>
</platform-specific>
</widgets>
<fail-widgets>
<label text="${uiLabelMap.SfaCanNotMergeSameLeads}" ></label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="NewLeadFromVCard">
<section>
<actions>
<set field="titleProperty" value="PageTitleCreateLeadFromVCard"/>
</actions>
<widgets>
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<container><label text="${uiLabelMap.SfaAutoCreateLeadByImportingVCard}"/></container>
<include-form name="NewLeadFromVCard" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LeadPartyDataSource">
<section>
<actions>
<set field="partyId" from-field="parameters.partyId"/>
<entity-and entity-name="PartyDataSource" list="partyDataSources">
<field-map field-name="partyId" from-field="partyId"/>
</entity-and>
</actions>
<widgets>
<screenlet title="${uiLabelMap.SfaLeadSource}" >
<include-form name="AddLeadPartyDataSource" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
<include-form name="ViewLeadPartyDataSources" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</widgets>
</section>
</screen>
<screen name="AddRelatedCompany">
<section>
<actions>
</actions>
<widgets>
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleAddRelatedCompany}" >
<include-form name="AddRelatedCompany" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>