ilscipio/scipio-erp

View on GitHub
applications/content/widget/LookupForms.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.
-->

<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">

    <form name="lookupListLayout" default-entity-name="ContentAssocDataResourceViewFrom" list-name="entityList" target="" title="" type="list"
        paginate-target="LookupListLayout" odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="ContentAssocDataResourceViewFrom" list="entityList" >
                <condition-expr field-name="caContentIdTo" value="TEMPLATE_MASTER"/>
            </entity-condition>
        </actions>
        <field name="contentId" title="${uiLabelMap.CommonId}" widget-style="${styles.link_nav_info_id}">
            <hyperlink also-hidden="false" description="${contentId}" target-type="plain" target="javascript:execRemoteCall('cloneLayout', '${drDataResourceId}', '${contentId}', 'TEMPLATE_MASTER', '')"/>
        </field>
        <field name="contentName"><display/></field>
        <field name="description"><display/></field>
        <field name="drObjectInfo"><display/></field>
    </form>

    <form name="lookupDataResourceContent" default-entity-name="DataResourceContentView" target="LookupSubContent" title="" type="single"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}">
            <text-find/>
        </field>
        <field name="coContentId">
            <text-find/>
        </field>
        <field name="coContentName">
            <text-find/>
        </field>
        <field name="coDescription">
            <text-find/>
        </field>
        <field name="createdByUserLogin">
             <lookup  target-form-name="LookupPerson"/>
        </field>
        <field name="createdDate">
            <date-find/>
        </field>
        <field name="lastModifiedByUserLogin">
             <lookup  target-form-name="LookupParty"/>
        </field>
        <field name="lastModifiedDate">
            <date-find/>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}">
            <submit button-type="button"/>
        </field>
        <field name="contentIdTo">
            <hidden value="${contentIdTo}"/>
        </field>
        <field name="mapKey">
            <hidden value="${mapKey}"/>
        </field>
    </form>

    <form name="listLookupDataResourceContent" default-entity-name="DataResourceContentView" list-name="listIt" target="" title="" type="list"
        paginate-target="LookupSubContent" odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <service service-name="performFind" result-map="result" result-map-list="listIt">
                <field-map field-name="inputFields" from-field="parameters"/>
                <field-map field-name="entityName" value="DataResourceContentView"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="replaceAction" widget-style="${styles.link_run_local} ${styles.action_copy}" >
            <hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.FormFieldTitle_replace} [${dataResourceId}/${coContentId}]"
               target="javascript:execRemoteCall('replaceSubContent','${dataResourceId}','${coContentId}', '${contentIdTo}', '${mapKey}')"
            />
        </field>
        <field name="pasteContentAction" widget-style="${styles.link_run_local} ${styles.action_copy}" >
            <hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.ContentPaste} [${dataResourceId}/${coContentId}]"
               target="javascript:execRemoteCall('pasteContent','${dataResourceId}','${coContentId}')"/>
        </field>
        <field name="dataResourceName" widget-style="${styles.link_nav_info_name}">
            <display/>
        </field>
        <field name="dataCategoryId" widget-style="${styles.link_nav_info_id}">
            <display/>
        </field>
    </form>
</forms>