ilscipio/scipio-erp

View on GitHub
applications/content/widget/WebAnalyticsScreens.xml

Summary

Maintainability
Test Coverage
<?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="FindWebAnalyticsConfigs">
        <section>
            <actions>
                <set field="titleProperty" value="CatalogWebSiteWebAnalytics"/>
                <set field="labelTitleProperty" value="CatalogWebSiteWebAnalytics"/>
                <set field="activeSubMenuItem" value="WebAnalytics"/>
                <set field="activeSubMenuItem2" value="FindWebAnalyticsConfigs"/>
                <set field="webAnalyticsConfigCtx" from-field="parameters"/>
                <set field="webSiteId" from-field="parameters.webSiteId"/>
                <entity-one entity-name="WebSite" value-field="webSite"/>
                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
                <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWebAnalyticsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="ListWebAnalyticsConfig" location="component://content/widget/website/WebAnalyticsForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="EditWebAnalyticsConfig">
        <section>
            <actions>
                <set field="titleProperty" value="CatalogWebSiteWebAnalyticsConfigs"/>
                <set field="labelTitleProperty" value="CatalogWebSiteWebAnalyticsConfigs"/>
                <set field="activeSubMenuItem" value="WebAnalytics"/>
                <set field="activeSubMenuItem2" value="EditWebAnalyticsConfig"/>
                <set field="webSiteId" from-field="parameters.webSiteId"/>
                <entity-one entity-name="WebSite" value-field="webSite"/>
                <set field="webAnalyticsTypeId" from-field="parameters.webAnalyticsTypeId"/>
                <entity-one entity-name="WebAnalyticsConfig" value-field="webAnalyticsConfig" auto-field-map="true"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWebAnalyticsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditWebAnalyticsConfig" location="component://content/widget/website/WebAnalyticsForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>