<!-- Copyright (C) 2010-2026 beCPG. This file is part of beCPG beCPG is free 
    software: you can redistribute it and/or modify it under the terms of the 
    GNU Lesser General Public License as published by the Free Software Foundation, 
    either version 3 of the License, or (at your option) any later version. beCPG 
    is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
    PURPOSE. See the GNU Lesser General Public License for more details. You 
    should have received a copy of the GNU Lesser General Public License along 
    with beCPG. If not, see <http://www.gnu.org/licenses/>. -->
<alfresco-config>

    <!-- bcpg:product type (creating nodes nodes) -->
    <config evaluator="model-type" condition="bcpg:product">
        <forms>

            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productHierarchy2" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="bcpg:productState" />
                </field-visibility>
                <appearance>
                    <field id="cm:name" label-id="becpg.forms.field.product" />
                    <field id="bcpg:productHierarchy1" label-id="becpg.forms.field.productHierarchy1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:productHierarchy2" label-id="becpg.forms.field.productHierarchy2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:entityTplRef" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:product?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" label-id="becpg.forms.field.productState">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="sub-datagrid-filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productHierarchy2" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="bcpg:clients" force="true" />
                    <show id="bcpg:suppliers" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:productState" />
                </field-visibility>
                <appearance>
                    
                    <field id="cm:name" label-id="becpg.forms.field.product" />
                    <field id="bcpg:erpCode" />
                    <field id="bcpg:productHierarchy1" label-id="becpg.forms.field.productHierarchy1" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:productHierarchy2" label-id="becpg.forms.field.productHierarchy2" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:entityTplRef" mandatory="false" read-only="false" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:product?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                        </control>
                    </field>
                    <field id="bcpg:clients" />
                    <field id="bcpg:suppliers" />
                    <field id="bcpg:plants" />
                    <field id="bcpg:productState" label-id="becpg.forms.field.productState" >
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:productMicrobioCriteria">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:pmcRegulation" />
                    <show id="bcpg:pmcConcernedProducts" />
                    <!-- local security rule -->
                    <show id="sec:securityRef" />

                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pmcRegulation">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pmcConcernedProducts">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>

                    <set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />

                    <field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:productMicrobioCriteria">
        <forms>
            <form id="create">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:pmcRegulation" />
                    <show id="bcpg:pmcConcernedProducts" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pmcRegulation">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pmcConcernedProducts">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:productSpecification">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:productSpecifications" force="true" />
                    <show id="bcpg:specCompatibilityTpls" force="true" />
                    <show id="bcpg:specCompatibilityTestMode" force="true" />
                    <show id="bcpg:specCompatibilityLog" force="true" for-mode="view" />
                    <show id="bcpg:formulatedDate" force="true" for-mode="view" />
                    <!-- local security rule -->
                    <show id="sec:securityRef" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>

                    <field id="bcpg:productSpecifications" help-id="becpg.forms.help.productSpecifications">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:specCompatibilityTpls">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityV2?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                        </control>
                    </field>

                    <set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
                    <field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:productSpecification">
        <forms>
            <form id="create">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:productSpecifications" force="true" />
                    <show id="bcpg:specCompatibilityTpls" force="true" />
                    <show id="bcpg:specCompatibilityTestMode" force="true" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:productSpecifications" help-id="becpg.forms.help.productSpecifications">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:specCompatibilityTpls">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityV2?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                        </control>
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="search">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:productSpecifications" force="true" />
                    <show id="bcpg:specCompatibilityTpls" force="true" />
                    <show id="bcpg:specCompatibilityTestMode" force="true" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:productSpecifications" help-id="becpg.forms.help.productSpecifications">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:specCompatibilityTpls">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityV2?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                        </control>
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="product-list">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:productSpecifications" force="true" />
                    <show id="bcpg:specCompatibilityTpls" force="true" />
                    <show id="bcpg:specCompatibilityTestMode" force="true" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="cm:name" read-only="true"></field>
                </appearance>
            </form>
        </forms>
    </config>
    
    <!-- bcpg:localSemiFinishedProduct type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:localSemiFinishedProduct">
        <forms>
            <form>
                <field-visibility>
                
                    <!-- mainInfo -->
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" />
                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productHierarchy2" />
                    <show id="bcpg:productState" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    
                    <!-- local security rule -->
                    <show id="sec:securityRef" />
                    
                    <!-- tags and categories -->
                    <show id="cm:taggable" />
                    <show id="cm:categories" />
                    
                    <!-- auditable -->
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />

                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />

                        
                    <!-- Main info -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName" help-id="becpg.forms.help.legalName" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productComments" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy1" help-id="becpg.forms.help.productHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/localSemiFinishedProduct_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy2" help-id="becpg.forms.help.productHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/localSemiFinishedProduct_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" set="mainInfo" />
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />

                    <field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
                            </control-param>
                        </control>
                    </field>

                    <!-- categories -->
                    <field id="cm:taggable" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>

                    <!-- audit -->
                    <field id="cm:creator" set="audit" />
                    <field id="cm:created" set="audit" />
                    <field id="cm:modifier" set="audit" />
                    <field id="cm:modified" set="audit" />

                </appearance>
            </form>
            <!-- Document Library pop-up Edit Metadata form -->
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <!-- tags and categories -->
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />
                </field-visibility>
                <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                <appearance>
                    <field id="cm:name">
                        <control>
                            <control-param name="maxLength">255</control-param>
                        </control>
                    </field>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:localSemiFinishedProduct type (creating nodes nodes) -->
    <config evaluator="model-type" condition="bcpg:localSemiFinishedProduct">
        <forms>
            <form id="create">
                <field-visibility>

                    <!-- mainInfo -->
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" />
                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productHierarchy2" />
                    <show id="bcpg:productState" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />

                    <!-- tags and categories -->
                    <show id="cm:taggable" />
                    <show id="cm:categories" />

                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />

                    <!-- Main info -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName" help-id="becpg.forms.help.legalName" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productComments" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy1" help-id="becpg.forms.help.productHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/localSemiFinishedProduct_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy2" help-id="becpg.forms.help.productHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/localSemiFinishedProduct_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" set="mainInfo" />
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />

                    <!-- categories -->
                    <field id="cm:taggable" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
            <form id="formulation">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:description" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:packagingKit type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:packagingKit">
        <forms>
            <form>
                <field-visibility>
                    <!-- mainInfo -->
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" />
                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productHierarchy2" />
                    <show id="bcpg:productState" />
                    <show id="bcpg:productUnit" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="bcpg:parentEntityRef" force="false" />
                    
                    <!-- local security rule -->
                    <show id="sec:securityRef" />
                    
                    <!-- pallet -->
                    <show id="pack:palletLayers" />
                    <show id="pack:palletBoxesPerLayer" />
                    <show id="pack:palletBoxesPerLastLayer" />
                    <show id="pack:palletBoxesPerPallet" />
                    <show id="pack:palletHeight" />
                    <show id="gs1:tertiaryWidth" />
                    <show id="gs1:tertiaryDepth" />

                    <show id="pack:palletNumberOnGround" />
                    <show id="pack:palletStackingMaxWeight" />
                    <show id="gs1:palletTypeCode" />
                    <show id="gs1:platformTermsAndConditionsCode" />
                    
                    <!-- tags and categories -->
                    <show id="cm:taggable" />
                    <show id="cm:categories" />
                    
                    <!-- auditable -->
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />
                    
                    <!-- branch -->
                    <show force="false" id="bcpg:autoMergeDate" />
                    <show force="false" id="bcpg:autoMergeTo" />
                    <show force="false" id="bcpg:autoMergeVersionType" />
                    <show force="false" id="bcpg:autoMergeComments" />
                    <show force="false" id="bcpg:autoMergeImpactWUsed" />
                    
                    <!-- template -->
                    <show id="bcpg:entityTplEnabled" force="false" />
                    <show id="bcpg:entityTplIsDefault" force="false" />
                    <show id="bcpg:entityTplScript" force="false" />
                    
                    <!--workflow validation -->
                    <show id="bcpgwf:pvValidationDate" for-mode="view" />
                    <show id="bcpgwf:pvRDApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvPackagingApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvQualityApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvProductionApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvCallerActor" for-mode="view" />
                    <show id="bcpgwf:pvCaller2Actor" for-mode="view" />

                </field-visibility>
                <appearance>
                    <set id="template" appearance="bordered-panel" label-id="becpg.forms.set.template.label" />
                    <set id="branch" appearance="bordered-panel" label-id="becpg.forms.set.branch.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="pallet" appearance="bordered-panel" label-id="becpg.forms.set.pallet.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="productValidation" appearance="bordered-panel" label-id="becpg.forms.set.validation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
                    
                    <!-- template -->
                    <field id="bcpg:entityTplEnabled" set="template" />
                    <field id="bcpg:entityTplIsDefault" set="template" />
                    <field id="bcpg:entityTplScript" set="template" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/association.ftl">
                            <control-param name="startLocation">{doclib}</control-param>
                        </control>
                    </field>
                    
                    <!-- branch -->
                    <field id="bcpg:autoMergeDate" mandatory="false" read-only="false" set="branch" />
                    <field id="bcpg:autoMergeTo" mandatory="false" read-only="false" set="branch">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/branches</control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>
                    <field id="bcpg:autoMergeVersionType" mandatory="false" read-only="false" set="branch" />
                    <field id="bcpg:autoMergeComments" mandatory="false" read-only="false" set="branch">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:autoMergeImpactWUsed" mandatory="false" read-only="false" set="branch" />
                    
                    <!-- mainInfo -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName" help-id="becpg.forms.help.legalName" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productComments" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy1" help-id="becpg.forms.help.productHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingKit_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy2" help-id="becpg.forms.help.productHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingKit_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" set="mainInfo" />
                    <field id="bcpg:productUnit" set="mainInfo" />
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:entityTplRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    
                    <!-- pallet -->
                    <field id="pack:palletLayers" set="pallet" />
                    <field id="pack:palletBoxesPerLayer" set="pallet" />
                    <field id="pack:palletBoxesPerPallet" set="pallet" />
                    <field id="pack:palletBoxesPerLastLayer" set="pallet" />
                    <field id="pack:palletHeight" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>

                    <field id="gs1:tertiaryWidth" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>
                    <field id="gs1:tertiaryDepth" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>

                    <field id="pack:palletNumberOnGround" set="pallet" />
                    <field id="pack:palletStackingMaxWeight" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">kg</control-param>
                        </control>
                    </field>
                    <field id="gs1:palletTypeCode" help-id="becpg.forms.help.gs1.palletTypeCode" set="pallet" />
                    <field id="gs1:platformTermsAndConditionsCode" help-id="becpg.forms.help.gs1.platformTermsAndConditionsCode" set="pallet" />

                    <field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
                            </control-param>
                        </control>
                    </field>
                    
                    <!-- categories -->
                    <field id="cm:taggable" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                    
                    <!-- audit -->
                    <field id="cm:creator" set="audit" />
                    <field id="cm:created" set="audit" />
                    <field id="cm:modifier" set="audit" />
                    <field id="cm:modified" set="audit" />
                    
                    <!-- productValidation -->
                    <field id="bcpgwf:pvValidationDate" set="productValidation">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpgwf:pvRDApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvPackagingApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvQualityApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvProductionApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvCallerActor" set="productValidation" />
                    <field id="bcpgwf:pvCaller2Actor" set="productValidation" />

                </appearance>
            </form>
            <form id="supplier">
                <field-visibility>
                    
                    <!-- mainInfo -->
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" force="true" />
                    
                    <!-- pallet -->
                    <show id="pack:palletLayers" />
                    <show id="pack:palletBoxesPerLayer" />
                    <show id="pack:palletBoxesPerLastLayer" />
                    <show id="pack:palletBoxesPerPallet" />
                    <show id="pack:palletHeight" />
                    <show id="gs1:tertiaryWidth" />
                    <show id="gs1:tertiaryDepth" />
                    <show id="pack:palletNumberOnGround" />
                    <show id="pack:palletStackingMaxWeight" />
                    <show id="gs1:palletTypeCode" />
                    <show id="gs1:platformTermsAndConditionsCode" />

                </field-visibility>
                <appearance>
                    <set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set appearance="bordered-panel" id="pallet" label-id="becpg.forms.set.pallet.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    
                    <!-- main info -->
                    <field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="cm:title" label-id="becpg.forms.field.tradeName" description-id="becpg.forms.field.tradeName" mandatory="false"
                        read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field help-id="becpg.forms.help.legalName" id="bcpg:legalName" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:productComments" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="cm:description" mandatory="false" read-only="false" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingDescription" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    
                    <!-- pallet -->
                    <field id="pack:palletProductsPerBox" mandatory="false" read-only="false" set="pallet" />
                    <field id="pack:palletLayers" mandatory="false" read-only="false" set="pallet" />
                    <field id="pack:palletBoxesPerLayer" mandatory="false" read-only="false" set="pallet" />
                    <field id="pack:palletBoxesPerLastLayer" mandatory="false" read-only="false" set="pallet" />
                    <field id="pack:palletBoxesPerPallet" mandatory="false" read-only="false" set="pallet" />
                    <field id="pack:palletHeight" mandatory="false" read-only="false" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>
                    <field id="gs1:tertiaryWidth" mandatory="false" read-only="false" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>
                    <field id="gs1:tertiaryDepth" mandatory="false" read-only="false" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>
                    <field id="pack:palletNumberOnGround" mandatory="false" read-only="false" set="pallet" />
                    <field id="pack:palletStackingMaxWeight" mandatory="false" read-only="false" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">kg</control-param>
                        </control>
                    </field>
                    <field id="gs1:palletTypeCode" help-id="becpg.forms.help.gs1.palletTypeCode" set="pallet" />
                    <field id="gs1:platformTermsAndConditionsCode" help-id="becpg.forms.help.gs1.platformTermsAndConditionsCode" set="pallet" />

                </appearance>
            </form>
            <!-- Document Library pop-up Edit Metadata form -->
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <!-- tags and categories -->
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />
                </field-visibility>
                <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                <appearance>
                    <field id="cm:name">
                        <control>
                            <control-param name="maxLength">255</control-param>
                        </control>
                    </field>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="reports-parameters">
                <field-visibility>
                    <show id="rep:reportLocales" force="true" />
                    <show id="rep:reportParameters" force="true" />
                    <show id="rep:reportTpls" force="true" />

                </field-visibility>
                <appearance>
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
                    </field>
                    <field id="rep:reportParameters">
                        <control template="/org/alfresco/components/form/controls/checkboxmany.ftl" />
                    </field>
                    <field id="rep:reportTpls">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/rep:reportTpl?excludeProps=rep%3AreportTplIsSystem%7Ctrue%2Crep%3AreportTplIsDisabled%7Ctrue%2Crep%3AreportTplType%7CExportSearch%2Crep%3AreportTplType%7CCompare%2Crep%3AreportTplType%7CSystem
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:packagingKit type (creating nodes nodes) -->
    <config evaluator="model-type" condition="bcpg:packagingKit">
        <forms>

            <form id="create">
                <field-visibility>

                    <!-- mainInfo -->
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" />
                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productHierarchy2" />
                    <show id="bcpg:productState" />
                    <show id="bcpg:productUnit" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="bcpg:parentEntityRef" force="false" />

                    <!-- tags and categories -->
                    <show id="cm:taggable" />
                    <show id="cm:categories" />

                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />

                    <!-- Main info -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName" help-id="becpg.forms.help.legalName" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productComments" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy1" help-id="becpg.forms.help.productHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingKit_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy2" help-id="becpg.forms.help.productHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingKit_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" set="mainInfo" />
                    <field id="bcpg:productUnit" set="mainInfo" />
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:entityTplRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>

                    <!-- categories -->
                    <field id="cm:taggable" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="search">
                <field-visibility>

                    <show id="bcpg:productHierarchy1" />
                    <show id="bcpg:productState" />
                    <show id="bcpg:entityTplRef" />
                    <show id="bcpg:parentEntityRef" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />

                    <!-- pallet -->
                    <show id="pack:palletLayers" force="true" />
                    <show id="pack:palletBoxesPerLayer" force="true" />
                    <show id="pack:palletBoxesPerLastLayer" force="true" />
                    <show id="pack:palletBoxesPerPallet" force="true" />

                    <show force="true" id="bcpg:advLca" />
                    <show force="true" id="bcpg:lcaListValue" />
                    <show force="true" id="bcpg:advSvhcAnd" />
                    <show force="true" id="bcpg:svhcListQtyPerc" />
                    <show force="true" id="bcpg:advSvhcNot" />
                    <show id="survey:advSearchSurveyQuestion1" force="true" />
                      <show id="survey:advSearchSurveyAnswer1" force="true" />
                      <show id="survey:advSearchResponseCommentType1" force="true" />
                      <show id="survey:advSearchSlDisabledComment1" force="true" />
                      <show id="survey:advSearchSlNumberComment1" force="true" />
                      <show id="survey:advSearchSlDateComment1" force="true" />
                      <show id="survey:advSearchSurveyQuestion2" force="true" />
                      <show id="survey:advSearchSurveyAnswer2" force="true" />
                      <show id="survey:advSearchResponseCommentType2" force="true" />
                      <show id="survey:advSearchSlDisabledComment2" force="true" />
                      <show id="survey:advSearchSlNumberComment2" force="true" />
                      <show id="survey:advSearchSlDateComment2" force="true" />
                      <show id="survey:advSearchSurveyQuestion3" force="true" />
                      <show id="survey:advSearchSurveyAnswer3" force="true" />
                      <show id="survey:advSearchResponseCommentType3" force="true" />
                      <show id="survey:advSearchSlDisabledComment3" force="true" />
                      <show id="survey:advSearchSlNumberComment3" force="true" />
                      <show id="survey:advSearchSlDateComment3" force="true" />
                      <show id="survey:advSearchSurveyQuestion4" force="true" />
                      <show id="survey:advSearchSurveyAnswer4" force="true" />
                      <show id="survey:advSearchResponseCommentType4" force="true" />
                      <show id="survey:advSearchSlDisabledComment4" force="true" />
                      <show id="survey:advSearchSlNumberComment4" force="true" />
                      <show id="survey:advSearchSlDateComment4" force="true" />

                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="pallet" appearance="bordered-panel" label-id="becpg.forms.set.pallet.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />

                    <field id="bcpg:productHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingMaterial_Hierarchy
                            </control-param>
                            <control-param name="multiple">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:entityTplRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:code" set="mainInfo">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:erpCode" set="mainInfo">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>

                    <!-- pallet -->
                    <field id="pack:palletLayers" set="pallet">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="pack:palletBoxesPerLayer" set="pallet">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="pack:palletBoxesPerPallet" set="pallet">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="pack:palletBoxesPerLastLayer" set="pallet">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>

                    <set appearance="bordered-panel" id="lca" label-id="becpg.forms.set.lca-criteria.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:advLca" mandatory="false" read-only="false" set="lca">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lcaListValue" mandatory="false" read-only="false" set="lca">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <set appearance="bordered-panel" id="svhc" label-id="becpg.forms.set.svhc-criteria.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:advSvhcAnd" mandatory="false" read-only="false" set="svhc">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcListQtyPerc" mandatory="false" read-only="false" set="svhc">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:advSvhcNot" mandatory="false" read-only="false" set="svhc">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <set appearance="bordered-panel" id="survey" label-id="becpg.forms.set.survey-criteria.label"
                        template="/org/alfresco/components/form/2-stackable-column-set.ftl" />
                    <field id="survey:advSearchSurveyQuestion1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion1</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType1" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment1: [""],
                                    prop_survey_advSearchSlNumberComment1: ["number"],
                                    prop_survey_advSearchSlDateComment1: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment1" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion2</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType2" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment2: [""],
                                    prop_survey_advSearchSlNumberComment2: ["number"],
                                    prop_survey_advSearchSlDateComment2: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment2" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion3</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType3" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment3: [""],
                                    prop_survey_advSearchSlNumberComment3: ["number"],
                                    prop_survey_advSearchSlDateComment3: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment3" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion4</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType4" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment4: [""],
                                    prop_survey_advSearchSlNumberComment4: ["number"],
                                    prop_survey_advSearchSlDateComment4: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment4" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="formulation">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:productUnit" />
                </field-visibility>
            </form>

            <form id="product-list">
                <field-visibility>
                    
                    <!-- mainInfo -->
                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" force="true" />
                    <show id="bcpg:productHierarchy1" force="true" />
                    <show id="bcpg:productHierarchy2" force="true" />
                    <show id="bcpg:productState" force="true" />
                    <show id="bcpg:productUnit" force="true" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="bcpg:parentEntityRef" force="false" />

                    <!-- pallet -->
                    <show id="pack:palletLayers" force="false" />
                    <show id="pack:palletBoxesPerLayer" force="false" />
                    <show id="pack:palletBoxesPerLastLayer" force="false" />
                    <show id="pack:palletBoxesPerPallet" force="false" />
                    <show id="pack:palletHeight" force="false" />
                    <show id="gs1:tertiaryWidth" force="false" />
                    <show id="gs1:tertiaryDepth" force="false" />

                    <show id="pack:palletNumberOnGround" force="false" />
                    <show id="pack:palletStackingMaxWeight" force="false" />
                    <show id="gs1:palletTypeCode" force="false" />
                    <show id="gs1:platformTermsAndConditionsCode" force="false" />

                </field-visibility>
                <appearance>
                    <field id="cm:name" read-only="true"></field>
                </appearance>
            </form>

            <form id="bulk-edit">
                <field-visibility>

                    <!-- mainInfo -->
                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:productComments" force="true" />
                    <show id="bcpg:productHierarchy1" force="true" />
                    <show id="bcpg:productHierarchy2" force="true" />
                    <show id="bcpg:productState" force="true" />
                    <show id="bcpg:productUnit" force="true" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="bcpg:parentEntityRef" force="false" />

                    <!-- pallet -->
                    <show id="pack:palletLayers" force="true" />
                    <show id="pack:palletBoxesPerLayer" force="true" />
                    <show id="pack:palletBoxesPerLastLayer" force="true" />
                    <show id="pack:palletBoxesPerPallet" force="true" />
                    <show id="pack:palletHeight" force="true" />
                    <show id="gs1:tertiaryWidth" force="true" />
                    <show id="gs1:tertiaryDepth" force="true" />

                    <show id="pack:palletNumberOnGround" force="true" />
                    <show id="pack:palletStackingMaxWeight" force="true" />
                    <show id="gs1:palletTypeCode" force="true" />
                    <show id="gs1:platformTermsAndConditionsCode" force="true" />

                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="pallet" appearance="bordered-panel" label-id="becpg.forms.set.pallet.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />

                    <!-- Main info -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName" help-id="becpg.forms.help.legalName" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productComments" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy1" help-id="becpg.forms.help.productHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingKit_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productHierarchy2" help-id="becpg.forms.help.productHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/packagingKit_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productState" set="mainInfo" />
                    <field id="bcpg:productUnit" set="mainInfo" />
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:entityTplRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:packagingKit
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    

                    <!-- pallet -->
                    <field id="pack:palletLayers" set="pallet" />
                    <field id="pack:palletBoxesPerLayer" set="pallet" />
                    <field id="pack:palletBoxesPerPallet" set="pallet" />
                    <field id="pack:palletBoxesPerLastLayer" set="pallet" />
                    <field id="pack:palletHeight" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>

                    <field id="gs1:tertiaryWidth" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>
                    <field id="gs1:tertiaryDepth" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">mm</control-param>
                        </control>
                    </field>

                    <field id="pack:palletNumberOnGround" set="pallet" />
                    <field id="pack:palletStackingMaxWeight" set="pallet">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">kg</control-param>
                        </control>
                    </field>
                    <field id="gs1:palletTypeCode" help-id="becpg.forms.help.gs1.palletTypeCode" set="pallet" />
                    <field id="gs1:platformTermsAndConditionsCode" help-id="becpg.forms.help.gs1.platformTermsAndConditionsCode" set="pallet" />

                </appearance>
            </form>
        </forms>
    </config>


    <!-- ######### CARACTERISTIQUES ######### -->

    <!-- bcpg:allergen -->
    <config evaluator="node-type" condition="bcpg:allergen">
        <forms>
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:allergenType" />
                    <show id="bcpg:allergenCode" />
                    <show id="bcpg:allergenRegulatoryThreshold" />
                    <show id="bcpg:allergenInVoluntaryRegulatoryThreshold" />
                    <show id="bcpg:allergenSubset" />
                    <show id="bcpg:allergenInvoluntaryOtherLegalName" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Major|data.allergentype.major,Minor|data.allergentype.minor
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenCode" />
                    <field id="bcpg:allergenRegulatoryThreshold">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenInVoluntaryRegulatoryThreshold">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenSubset">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />

                    </field>
                    <field id="bcpg:allergenInvoluntaryOtherLegalName" help-id="becpg.forms.help.allergenInvoluntaryOtherLegalName" />
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl">
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:allergen">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:allergenType" />
                    <show id="bcpg:allergenCode" />
                    <show id="bcpg:allergenRegulatoryThreshold" />
                    <show id="bcpg:allergenInVoluntaryRegulatoryThreshold" />
                    <show id="bcpg:allergenSubset" />
                    <show id="bcpg:allergenInvoluntaryOtherLegalName" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Major|data.allergentype.major,Minor|data.allergentype.minor
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenCode" />
                    <field id="bcpg:allergenRegulatoryThreshold">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenInVoluntaryRegulatoryThreshold">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenSubset">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />

                    </field>
                    <field id="bcpg:allergenInvoluntaryOtherLegalName" help-id="becpg.forms.help.allergenInvoluntaryOtherLegalName" />
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl">
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:allergenCode" />
                    <show id="bcpg:allergenType" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:allergenType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Major|data.allergentype.major,Minor|data.allergentype.minor</control-param>
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:allergenType" />
                    <show id="bcpg:allergenCode" />
                    <show id="bcpg:allergenSubset" />
                    <show id="bcpg:allergenInvoluntaryOtherLegalName" />
                    <show id="bcpg:allergenRegulatoryThreshold" />
                    <show id="bcpg:allergenInVoluntaryRegulatoryThreshold" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="rep:reportLocales" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:cost type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:cost">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:costType" />
                    <show id="bcpg:costCurrency" />
                    <show id="bcpg:costFixed" />
                    <show id="bcpg:costFormula" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:costFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:cost">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:costType" />
                    <show id="bcpg:costCurrency" />
                    <show id="bcpg:costFixed" />
                    <show id="bcpg:costFormula" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:costFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:costFixed" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:costType" />
                    <show id="bcpg:costCurrency" />
                    <show id="bcpg:costFixed" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
            
            <form id="export">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:costType" />
                    <show id="bcpg:costCurrency" />
                    <show id="bcpg:costFixed" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:costFormula" />
                </field-visibility>
            </form>
        </forms>
    </config>
    
    <!-- bcpg:lca type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:lca">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:lcaCode" />
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:lcaType" />
                    <show id="bcpg:lcaUnit" />
                    <show id="bcpg:lcaFixed" />
                    <show id="bcpg:lcaFormula" />
                    <show id="bcpg:lcaPonderation" />
                    <show id="bcpg:lcaNormalization" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lcaFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:lca">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lcaCode" />
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:lcaType" />
                    <show id="bcpg:lcaUnit" />
                    <show id="bcpg:lcaFixed" />
                    <show id="bcpg:lcaFormula" />
                    <show id="bcpg:lcaPonderation" />
                    <show id="bcpg:lcaNormalization" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lcaFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:lcaCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:lcaFixed" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:lcaCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:lcaType" />
                    <show id="bcpg:lcaUnit" />
                    <show id="bcpg:lcaFixed" />
                    <show id="bcpg:lcaPonderation" />
                    <show id="bcpg:lcaNormalization" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:tox">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:toxTypes" />
                    <show id="bcpg:toxValue" />
                    <show id="bcpg:toxAbsorptionType" force="true" />
                    <show id="bcpg:toxCalculateSystemic" />
                    <show id="bcpg:toxCalculateMax" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:toxTypes" />
                    <show id="bcpg:toxValue" />
                    <show id="bcpg:toxAbsorptionType" force="true" />
                    <show id="bcpg:toxCalculateSystemic" />
                    <show id="bcpg:toxCalculateMax" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:toxAbsorptionType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                    </field>
                    <field id="bcpg:toxCalculateSystemic">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:toxCalculateMax">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:toxValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:toxTypes" />
                    <show id="bcpg:toxValue" />
                    <show id="bcpg:toxAbsorptionType" force="true" />
                    <show id="bcpg:toxCalculateSystemic" />
                    <show id="bcpg:toxCalculateMax" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:tox">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:toxTypes" />
                    <show id="bcpg:toxValue" />
                    <show id="bcpg:toxAbsorptionType" force="true" />
                    <show id="bcpg:toxCalculateSystemic" />
                    <show id="bcpg:toxCalculateMax" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:toxAbsorptionType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:toxIng">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:toxIngSystemicValue" />
                </field-visibility>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:toxIngIng" />
                    <show id="bcpg:toxIngTox" />
                    <show id="bcpg:toxIngSystemicValue" />
                    <show id="bcpg:toxIngMaxValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:toxIngIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:toxIngTox">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:tox
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:toxIngSystemicValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:toxIngMaxValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>



                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:toxIngIng" />
                    <show id="bcpg:toxIngTox" />
                    <show id="bcpg:toxIngSystemicValue" />
                    <show id="bcpg:toxIngMaxValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:toxIngIng" read-only="true">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl" />
                    </field>
                    <field id="bcpg:toxIngTox" read-only="true">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl" />
                    </field>
                    <field id="bcpg:toxIngSystemicValue" />
                    <field id="bcpg:toxIngMaxValue" />
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:toxIng">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:toxIngSystemicValue" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:ing type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:ing">
        <forms>
            <form>
                <edit-form template="tab-edit" />
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:ingCEECode" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                    <show id="bcpg:ceNumber" force="true" />
                    <show id="bcpg:ecNumber" force="true" />
                    <show id="bcpg:fdaNumber" force="true" />
                    <show id="bcpg:femaNumber" force="true" />
                    <show id="bcpg:flNumber" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:regulatoryComment" force="true" />
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:evaporatedRate" force="true" />
                    <show id="bcpg:ingAllergens" force="true" />
                    <show id="bcpg:ingAllergensQtyPerc" force="true" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="bcpg:excludeFromSearch" force="true" />
                    <show id="bcpg:isSubstanceOfVeryHighConcern" force="true" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                    <show id="bcpg:ingToxPodSystemic" force="true" />
                    <show id="bcpg:ingToxDermalAbsorption" force="true" />
                    <show id="bcpg:ingToxOralAbsorption" force="true" />
                    <show id="bcpg:ingToxMosMoe" force="true" />
                    <show id="bcpg:ingToxMaxSkinIrritationRinseOff" force="true" />
                    <show id="bcpg:ingToxMaxSkinIrritationLeaveOn" force="true" />
                    <show id="bcpg:ingToxMaxSensitization" force="true" />
                    <show id="bcpg:ingToxMaxOcularIrritation" force="true" />
                    <show id="bcpg:ingToxMaxPhototoxic" force="true" />
                    <show id="bcpg:ingToxAcuteOral" force="true" />
                    <show id="bcpg:ingToxAcuteDermal" force="true" />
                    <show id="bcpg:ingToxAcuteInhalation" force="true" />
                    <show id="bcpg:ingToxAcuteInhalationType" force="true" />
                    <show id="bcpg:ingToxAquaticMFactor" force="true" />
                    <show id="bcpg:ingToxData" force="true" />
                    <show id="bcpg:ingToxSystemicValues" force="true" />
                    <show id="bcpg:ingToxMaxValues" force="true" />
                    <show id="bcpg:ingToxIsSuperSensitizing" force="true" />

                    <show id="ghs:sdsHazardClassifications" force="true" />
                    <show id="ghs:sdsSignalWord" force="true" />
                    <show id="ghs:sdsPictograms" force="true" />

                    <show id="bcpg:parentEntityRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>
                <appearance>
                    <set label-id="becpg.forms.set.designation.label" id="designation" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.search.label" id="search" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.formulation.label" id="formulation" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.toxicology.label" id="toxTab" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.clp.label" id="clpTab" />

                    <field id="bcpg:charactName" set="designation" />
                    <field id="bcpg:pluralLegalName" set="designation" />
                    <field id="bcpg:legalName" set="designation" />
                    <field id="cm:description" set="designation">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" set="designation" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:erpCode" set="designation" />
                    <field id="bcpg:ingCEECode" set="designation" />
                    <field id="bcpg:casNumber" set="designation" />
                    <field id="bcpg:ceNumber" set="designation" />
                    <field id="bcpg:ecNumber" set="designation" />
                    <field id="bcpg:fdaNumber" set="designation" />
                    <field id="bcpg:femaNumber" set="designation" />
                    <field id="bcpg:flNumber" set="designation" />


                    <field id="sec:readGroups" set="designation" />
                    <field id="bcpg:isDeleted" set="designation" />

                    <field id="bcpg:linkedSearchAssociation" set="search">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:ing
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:excludeFromSearch" set="search" />

                    <field id="bcpg:regulatoryCode" set="formulation" />
                    <field id="bcpg:regulatoryComment" set="formulation" />
                    <field id="bcpg:ingTypeV2" set="formulation">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
                            </control-param>
                        </control>
                    </field>
                    <field id="gs1:productActivityTypeCode" set="formulation" />
                    <field id="bcpg:ingAllergens" set="formulation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingAllergensQtyPerc" help-id="becpg.forms.help.ingAllergensQtyPerc" set="formulation" />
                    <field id="bcpg:evaporatedRate" set="formulation" />
                    <field id="bcpg:isSubstanceOfVeryHighConcern" set="formulation" />
                    <field id="bcpg:svhcReasonsForInclusion" set="formulation" />
                    <field id="bcpg:ingToxPodSystemic" set="toxTab" />
                    <field id="bcpg:ingToxDermalAbsorption" set="toxTab" />
                    <field id="bcpg:ingToxOralAbsorption" set="toxTab" />
                    <field id="bcpg:ingToxMosMoe" set="toxTab" />
                    <field id="bcpg:ingToxMaxSkinIrritationRinseOff" set="toxTab" />
                    <field id="bcpg:ingToxMaxSkinIrritationLeaveOn" set="toxTab" />
                    <field id="bcpg:ingToxMaxSensitization" set="toxTab" />
                    <field id="bcpg:ingToxMaxOcularIrritation" set="toxTab" />
                    <field id="bcpg:ingToxMaxPhototoxic" set="toxTab" />

                    <field id="bcpg:ingToxAcuteOral" set="toxTab" />
                    <field id="bcpg:ingToxAcuteDermal" set="toxTab" />
                    <field id="bcpg:ingToxAcuteInhalation" set="toxTab" />
                    <field id="bcpg:ingToxAcuteInhalationType" set="toxTab" />
                    <field id="bcpg:ingToxAquaticMFactor" set="toxTab" />
                    <field id="bcpg:ingToxData" set="toxTab" />
                    <field id="bcpg:ingToxSystemicValues" set="toxTab" read-only="true">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                            <control-param name="rows">6</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingToxMaxValues" set="toxTab" read-only="true">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                            <control-param name="rows">6</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingToxIsSuperSensitizing" set="toxTab" />
                    <field id="ghs:sdsHazardClassifications" help-id="becpg.forms.help.sdsHazardClassifications" set="clpTab" >
                         <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="ghs:sdsSignalWord" set="clpTab" />
                    <field id="ghs:sdsPictograms" set="clpTab">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>

                </appearance>
            </form>

        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:ing">
        <forms>
            <!-- Create item form -->
            <form>
                <edit-form template="tab-edit" />
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:ingCEECode" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                    <show id="bcpg:ceNumber" force="true" />
                    <show id="bcpg:ecNumber" force="true" />
                    <show id="bcpg:fdaNumber" force="true" />
                    <show id="bcpg:femaNumber" force="true" />
                    <show id="bcpg:flNumber" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:regulatoryComment" force="true" />
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:evaporatedRate" force="true" />
                    <show id="bcpg:ingAllergens" />
                    <show id="bcpg:ingAllergensQtyPerc" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="bcpg:excludeFromSearch" force="true" />
                    <show id="bcpg:isSubstanceOfVeryHighConcern" force="true" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                    <show id="bcpg:ingToxPodSystemic" force="true" />
                    <show id="bcpg:ingToxDermalAbsorption" force="true" />
                    <show id="bcpg:ingToxOralAbsorption" force="true" />
                    <show id="bcpg:ingToxMosMoe" force="true" />
                    <show id="bcpg:ingToxMaxSkinIrritationRinseOff" force="true" />
                    <show id="bcpg:ingToxMaxSkinIrritationLeaveOn" force="true" />
                    <show id="bcpg:ingToxMaxSensitization" force="true" />
                    <show id="bcpg:ingToxMaxOcularIrritation" force="true" />
                    <show id="bcpg:ingToxMaxPhototoxic" force="true" />
                    <show id="bcpg:ingToxAcuteDermal" force="true" />
                    <show id="bcpg:ingToxAcuteInhalation" force="true" />
                    <show id="bcpg:ingToxAcuteInhalationType" force="true" />
                    <show id="bcpg:ingToxAquaticMFactor" force="true" />
                    <show id="bcpg:ingToxData" force="true" />
                    <show id="bcpg:ingToxIsSuperSensitizing" force="true" />
                    <show id="ghs:sdsHazardClassifications" force="true" />
                    <show id="ghs:sdsSignalWord" force="true" />
                    <show id="ghs:sdsPictograms" force="true" />
                    <show id="bcpg:parentEntityRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>
                    <set label-id="becpg.forms.set.designation.label" id="designation" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.search.label" id="search" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.formulation.label" id="formulation" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.toxicology.label" id="toxTab" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.clp.label" id="clpTab" />

                    <field id="bcpg:charactName" set="designation" />
                    <field id="bcpg:pluralLegalName" set="designation" />
                    <field id="bcpg:legalName" set="designation" />
                    <field id="cm:description" set="designation">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" set="designation" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:erpCode" set="designation" />
                    <field id="bcpg:ingCEECode" set="designation" />
                    <field id="bcpg:casNumber" set="designation" />
                    <field id="bcpg:ceNumber" set="designation" />
                    <field id="bcpg:ecNumber" set="designation" />
                    <field id="bcpg:fdaNumber" set="designation" />
                    <field id="bcpg:femaNumber" set="designation" />
                    <field id="bcpg:flNumber" set="designation" />

                    <field id="sec:readGroups" set="designation" />
                    <field id="bcpg:isDeleted" set="designation" />

                    <field id="bcpg:linkedSearchAssociation" set="search">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:ing
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:excludeFromSearch" set="search" />

                    <field id="bcpg:regulatoryCode" set="formulation" />
                    <field id="bcpg:regulatoryComment" set="formulation" />
                    <field id="bcpg:ingTypeV2" set="formulation">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
                            </control-param>
                        </control>
                    </field>
                    <field id="gs1:productActivityTypeCode" set="formulation" />
                    <field id="bcpg:ingAllergens" set="formulation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />

                    </field>
                    <field id="bcpg:ingAllergensQtyPerc" help-id="becpg.forms.help.ingAllergensQtyPerc" set="formulation" />
                    <field id="bcpg:evaporatedRate" set="formulation" />
                    <field id="bcpg:isSubstanceOfVeryHighConcern" set="formulation" />
                    <field id="bcpg:svhcReasonsForInclusion" set="formulation" />
                    <field id="bcpg:ingToxPodSystemic" set="toxTab" />
                    <field id="bcpg:ingToxDermalAbsorption" set="toxTab" />
                    <field id="bcpg:ingToxOralAbsorption" set="toxTab" />
                    <field id="bcpg:ingToxMosMoe" set="toxTab" />
                    <field id="bcpg:ingToxMaxSkinIrritationRinseOff" set="toxTab" />
                    <field id="bcpg:ingToxMaxSkinIrritationLeaveOn" set="toxTab" />
                    <field id="bcpg:ingToxMaxSensitization" set="toxTab" />
                    <field id="bcpg:ingToxMaxOcularIrritation" set="toxTab" />
                    <field id="bcpg:ingToxMaxPhototoxic" set="toxTab" />
                    <field id="bcpg:ingToxAcuteOral" set="toxTab" />
                    <field id="bcpg:ingToxAcuteDermal" set="toxTab" />
                    <field id="bcpg:ingToxAcuteInhalation" set="toxTab" />
                    <field id="bcpg:ingToxAcuteInhalationType" set="toxTab" />
                    <field id="bcpg:ingToxAquaticMFactor" set="toxTab" />
                    <field id="bcpg:ingToxData" set="toxTab" />
                    <field id="bcpg:ingToxIsSuperSensitizing" set="toxTab" />
                    <field id="ghs:sdsHazardClassifications" help-id="becpg.forms.help.sdsHazardClassifications" set="clpTab" >
                         <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="ghs:sdsSignalWord" set="clpTab" />
                    <field id="ghs:sdsPictograms" set="clpTab">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="create">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:ingCEECode" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                    <show id="bcpg:ceNumber" force="true" />
                    <show id="bcpg:ecNumber" force="true" />
                    <show id="bcpg:fdaNumber" force="true" />
                    <show id="bcpg:femaNumber" force="true" />
                    <show id="bcpg:flNumber" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:regulatoryComment" force="true" />
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:evaporatedRate" force="true" />
                    <show id="bcpg:ingAllergens" />
                    <show id="bcpg:ingAllergensQtyPerc" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="bcpg:excludeFromSearch" force="true" />
                    <show id="bcpg:isSubstanceOfVeryHighConcern" force="true" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                    <show id="bcpg:ingToxPodSystemic" force="true" />
                    <show id="bcpg:ingToxDermalAbsorption" force="true" />
                    <show id="bcpg:ingToxOralAbsorption" force="true" />
                    <show id="bcpg:ingToxMosMoe" force="true" />
                    <show id="bcpg:ingToxMaxSkinIrritationRinseOff" force="true" />
                    <show id="bcpg:ingToxMaxSkinIrritationLeaveOn" force="true" />
                    <show id="bcpg:ingToxMaxSensitization" force="true" />
                    <show id="bcpg:ingToxMaxOcularIrritation" force="true" />
                    <show id="bcpg:ingToxMaxPhototoxic" force="true" />
                    <show id="bcpg:ingToxAcuteDermal" force="true" />
                    <show id="bcpg:ingToxAcuteInhalation" force="true" />
                    <show id="bcpg:ingToxAcuteInhalationType" force="true" />
                    <show id="bcpg:ingToxAquaticMFactor" force="true" />
                    <show id="bcpg:ingToxData" force="true" />
                    <show id="bcpg:ingToxIsSuperSensitizing" force="true" />
                    <show id="bcpg:parentEntityRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>
                    <set label-id="becpg.forms.set.designation.label" id="designation" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.search.label" id="search" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.formulation.label" id="formulation" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.toxicology.label" id="toxTab" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set label-id="becpg.forms.set.clp.label" id="clpTab" template="/org/alfresco/components/form/1-column-set.ftl" />

                    <field id="bcpg:charactName" set="designation" />
                    <field id="bcpg:pluralLegalName" set="designation" />
                    <field id="bcpg:legalName" set="designation" />
                    <field id="cm:description" set="designation">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" set="designation" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:erpCode" set="designation" />
                    <field id="bcpg:ingCEECode" set="designation" />
                    <field id="bcpg:casNumber" set="designation" />
                    <field id="bcpg:ceNumber" set="designation" />
                    <field id="bcpg:ecNumber" set="designation" />
                    <field id="bcpg:fdaNumber" set="designation" />
                    <field id="bcpg:femaNumber" set="designation" />
                    <field id="bcpg:flNumber" set="designation" />

                    <field id="sec:readGroups" set="designation" />
                    <field id="bcpg:isDeleted" set="designation" />
                    <field id="bcpg:linkedSearchAssociation" set="search">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:ing
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:excludeFromSearch" set="search" />

                    <field id="bcpg:regulatoryCode" set="formulation" />
                    <field id="bcpg:regulatoryComment" set="formulation" />
                    <field id="bcpg:ingTypeV2" set="formulation">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
                            </control-param>
                        </control>
                    </field>
                    <field id="gs1:productActivityTypeCode" set="formulation" />
                    <field id="bcpg:ingAllergens" set="formulation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingAllergensQtyPerc" help-id="becpg.forms.help.ingAllergensQtyPerc" set="formulation" />
                    <field id="bcpg:evaporatedRate" set="formulation" />
                    <field id="bcpg:isSubstanceOfVeryHighConcern" set="formulation" />
                    <field id="bcpg:svhcReasonsForInclusion" set="formulation" />
                    <field id="bcpg:ingToxPodSystemic" set="toxTab" />
                    <field id="bcpg:ingToxDermalAbsorption" set="toxTab" />
                    <field id="bcpg:ingToxOralAbsorption" set="toxTab" />
                    <field id="bcpg:ingToxMosMoe" set="toxTab" />
                    <field id="bcpg:ingToxMaxSkinIrritationRinseOff" set="toxTab" />
                    <field id="bcpg:ingToxMaxSkinIrritationLeaveOn" set="toxTab" />
                    <field id="bcpg:ingToxMaxSensitization" set="toxTab" />
                    <field id="bcpg:ingToxMaxOcularIrritation" set="toxTab" />
                    <field id="bcpg:ingToxMaxPhototoxic" set="toxTab" />
                    <field id="bcpg:ingToxAcuteOral" set="toxTab" />
                    <field id="bcpg:ingToxAcuteDermal" set="toxTab" />
                    <field id="bcpg:ingToxAcuteInhalation" set="toxTab" />
                    <field id="bcpg:ingToxAcuteInhalationType" set="toxTab" />
                    <field id="bcpg:ingToxAquaticMFactor" set="toxTab" />
                    <field id="bcpg:ingToxData" set="toxTab" />
                    <field id="bcpg:ingToxIsSuperSensitizing" set="toxTab" />
                    <field id="ghs:sdsHazardClassifications" help-id="becpg.forms.help.sdsHazardClassifications" set="clpTab" >
                         <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="ghs:sdsSignalWord" set="clpTab" />
                    <field id="ghs:sdsPictograms" set="clpTab">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            
            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" force="true" />
                    <show id="bcpg:legalName" force="true" />
                    <show id="bcpg:ingCEECode" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                    <show id="bcpg:ceNumber" force="true" />
                    <show id="bcpg:ecNumber" force="true" />
                    <show id="bcpg:fdaNumber" force="true" />
                    <show id="bcpg:femaNumber" force="true" />
                    <show id="bcpg:flNumber" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:parentEntityRef" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:ingTypeV2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentEntityRef" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:rawMaterial
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
            <form id="sub-datagrid-filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:casNumber" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" label-id="becpg.forms.field.ing">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">true|data.boolean.true,false|data.boolean.false
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="filter-ingList">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:casNumber" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" label-id="becpg.forms.field.ing">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                </appearance>
            </form>

            <form id="sub-datagrid">
                <field-visibility>
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:ingTypeV2" read-only="true" />
                    <field id="bcpg:casNumber" read-only="true" />
                </appearance>
            </form>

            <form id="sub-datagrid-export">
                <field-visibility>
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:ingTypeV2" read-only="true" />
                    <field id="bcpg:casNumber" read-only="true" />
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:ingCEECode" force="true" />
                    <show id="bcpg:casNumber" force="true" />
                    <show id="bcpg:ceNumber" force="true" />
                    <show id="bcpg:ecNumber" force="true" />
                    <show id="bcpg:fdaNumber" force="true" />
                    <show id="bcpg:femaNumber" force="true" />
                    <show id="bcpg:flNumber" force="true" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:regulatoryComment" force="true" />
                    <show id="bcpg:ingTypeV2" force="true" />
                    <show id="bcpg:evaporatedRate" force="true" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="bcpg:excludeFromSearch" force="true" />
                    <show id="bcpg:ingAllergens" />
                    <show id="bcpg:ingAllergensQtyPerc" />
                    <show id="bcpg:isSubstanceOfVeryHighConcern" force="true" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                    <show id="bcpg:ingToxSystemicValues" force="true" />
                    <show id="bcpg:ingToxMaxValues" force="true" />
                    <show id="bcpg:parentEntityRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:microBio type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:microbio">
        <forms>
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:microbioType" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                    <field id="bcpg:erpCode" />
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:microbio">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:microbioType" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                    <field id="bcpg:erpCode" />
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:microbioType" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:microbioType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:microbioType" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:nut type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:nut">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:nutrientTypeCode" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:nutGroup" />
                    <show id="bcpg:nutType" />
                    <show id="bcpg:nutUnit" />
                    <show id="bcpg:nutGDA" />

                    <show id="bcpg:nutUL" />
                    <show id="bcpg:nutFormula" />
                    <show id="bcpg:isCharactPropagateUp" force="true" />
                    <show id="bcpg:isCertificationPropagateUp" force="true" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>

                    <field id="gs1:nutrientTypeCode" help-id="becpg.forms.help.nutrientTypeCode" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl">
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:nut">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="gs1:nutrientTypeCode" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:nutGroup" />
                    <show id="bcpg:nutType" />
                    <show id="bcpg:nutUnit" />
                    <show id="bcpg:nutGDA" />
                    <show id="bcpg:nutUL" />
                    <show id="bcpg:nutFormula" />
                    <show id="bcpg:isCharactPropagateUp" force="true" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>

                    <field id="gs1:nutrientTypeCode" help-id="becpg.forms.help.nutrientTypeCode" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl">
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="gs1:nutrientTypeCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:nutGroup" />
                    <show id="bcpg:nutType" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:nutGroup">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="gs1:nutrientTypeCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:nutGroup" />
                    <show id="bcpg:nutType" />
                    <show id="bcpg:nutUnit" />
                    <show id="bcpg:nutGDA" />
                    <show id="bcpg:nutUL" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="rep:reportLocales" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>

            <form id="sub-datagrid">
                <field-visibility>
                    <show id="bcpg:nutGDA" />
                    <show id="bcpg:nutUL" />
                    <show id="bcpg:nutUnit" />
                    <show id="bcpg:color" />
                </field-visibility>
            </form>
            
            <form id="export">
                <field-visibility>
                    <show id="gs1:nutrientTypeCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:nutGroup" />
                    <show id="bcpg:nutType" />
                    <show id="bcpg:nutUnit" />
                    <show id="bcpg:nutGDA" />
                    <show id="bcpg:nutUL" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="rep:reportLocales" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:nutFormula" />
                </field-visibility>
            </form>
        </forms>
    </config>

   <!-- bcpg:nutrientProfile type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:nutrientProfile">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:nutrientProfileScoreFormula" />
                    <show id="bcpg:nutrientProfileClassFormula" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutrientProfileScoreFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutrientProfileClassFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:nutrientProfile">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:nutrientProfileScoreFormula" />
                    <show id="bcpg:nutrientProfileClassFormula" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutrientProfileScoreFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutrientProfileClassFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>


    <!-- bcpg:organo type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:organo">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:organo">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:physicoChem type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:physicoChem">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:physicoChemCode" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:physicoChemUnit" />
                    <show id="bcpg:physicoChemType" />
                    <show id="bcpg:physicoChemFormulated" />
                    <show id="bcpg:physicoChemFormulatedFromVol" />
                    <show id="bcpg:physicoChemFormula" />
                    <show id="bcpg:isCharactPropagateUp" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="bcpg:physicoChemCode" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:physicoChemUnit" />
                    <field id="bcpg:physicoChemType" />
                    <field id="bcpg:physicoChemFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:physicoChem">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:physicoChemCode" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:physicoChemUnit" />
                    <show id="bcpg:physicoChemType" />
                    <show id="bcpg:physicoChemFormulated" />
                    <show id="bcpg:physicoChemFormulatedFromVol" />
                    <show id="bcpg:physicoChemFormula" />
                    <show id="bcpg:isCharactPropagateUp" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:charactName" />
                    <field id="bcpg:physicoChemCode" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                    <field id="bcpg:physicoChemUnit" />
                    <field id="bcpg:physicoChemType" />
                    <field id="bcpg:physicoChemFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:physicoChemCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:physicoChemUnit" />
                    <show id="bcpg:physicoChemType" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:physicoChemUnit">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:physicoChemType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:physicoChemCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:physicoChemUnit" />
                    <show id="bcpg:physicoChemType" />
                    <show id="bcpg:physicoChemFormulated" />
                    <show id="bcpg:physicoChemFormulatedFromVol" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
            
            <form id="export">
                <field-visibility>
                    <show id="bcpg:physicoChemCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:physicoChemUnit" />
                    <show id="bcpg:physicoChemType" />
                    <show id="bcpg:physicoChemFormulated" />
                    <show id="bcpg:physicoChemFormulatedFromVol" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:physicoChemFormula" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:geoOrigin type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:geoOrigin">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:geoOriginISOCode" />
                    <show id="bcpg:geoOriginISOCodeThreeLetters" />
                    <show id="bcpg:geoOriginISOCodeNumeric" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="gs1:productActivityTypeCode">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                    </field>
                    <field id="bcpg:linkedSearchAssociation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:geoOrigin
                            </control-param>
                        </control>
                    </field>

                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:geoOrigin">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:geoOriginISOCode" />
                    <show id="bcpg:geoOriginISOCodeThreeLetters" />
                    <show id="bcpg:geoOriginISOCodeNumeric" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>

                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                    <field id="bcpg:geoOriginISOCode" />
                    <field id="bcpg:regulatoryCode" />
                    <field id="bcpg:linkedSearchAssociation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:geoOrigin
                            </control-param>
                        </control>
                    </field>
                    <field id="gs1:productActivityTypeCode">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:geoOriginISOCode" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:geoOriginISOCode" />
                    <show id="bcpg:geoOriginISOCodeThreeLetters" />
                    <show id="bcpg:geoOriginISOCodeNumeric" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="gs1:productActivityTypeCode" force="true" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:bioOrigin type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:bioOrigin">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:bioOriginType" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:linkedSearchAssociation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:bioOrigin</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:bioOrigin">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:bioOriginType" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:charactName" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:legalName" />
                    <field id="bcpg:bioOriginType" />
                    <field id="bcpg:linkedSearchAssociation">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:bioOrigin</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:bioOriginType" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:bioOriginType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>

                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:bioOriginType" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>
    
    
    
    <!-- bcpg:documentType type (creating nodes) -->
    <config evaluator="model-type" condition="bcpg:documentType">
        <forms>
            <form>
                <edit-form template="tab-edit" />
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:docTypeCategory" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:docTypeIsMandatory" />
                    <show id="bcpg:docTypeEffectivityType" />
                    <show id="bcpg:docTypeAutoExpirationDelay" force="true" />
                    <show id="bcpg:docTypeFormula" force="true" />
                    <show id="bcpg:docTypeNameFormat" />
                    <show id="bcpg:docTypeLinkedTypes" force="true" />
                    <show id="bcpg:docTypeLinkedHierarchy" force="true" />
                    <show id="bcpg:docTypeLinkedCharacts" force="true" />
                    <show id="bcpg:docTypeDestPath" force="true" />
                    <show id="bcpg:aiValidationCriteria" force="true" />
                    <show id="bcpg:aiSuggestedFields" force="true" />
                    <show id="bcpg:aiExtraPrompt" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <set id="documentType" label-id="becpg.forms.set.document-type.label" />
                    <set id="documentTypeAutogeneration" label-id="becpg.forms.set.document-type-autogeneration.label" />
                    <set id="ai" label-id="becpg.forms.set.ai.label" />
                    
                    <field id="bcpg:charactName" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:docTypeIsMandatory" set="documentType" />
                    <field id="cm:description" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:docTypeCategory" set="documentType" />
                    <field id="bcpg:docTypeEffectivityType" set="documentType" >
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.hideIf" event='keyup,change@[
                                    {"prop":"prop_bcpg_docTypeAutoExpirationDelay", "condition" : "|NONE|MANUAL"}
                                ]' />
                        </constraint-handlers>
                    </field>
                    <field id="bcpg:docTypeAutoExpirationDelay" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">d</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeFormula" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeNameFormat" set="documentType" />
                    <field id="bcpg:isDeleted" set="documentType" />
                    
                    <field id="bcpg:docTypeLinkedTypes" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/aclType</control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeLinkedHierarchy" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists
                            </control-param>
                            <control-param name="extraPaths">prop_bcpg_docTypeLinkedTypes</control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeLinkedCharacts" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityListItem?classNames=bcpg:certification,bcpg:labelClaim,survey:surveyQuestion
                            </control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeDestPath" set="documentTypeAutogeneration" help-id="becpg.forms.help.docTypeDestPath" />
                     <field id="bcpg:aiValidationCriteria" set="ai" help-id="becpg.forms.help.aiValidationCriteria" >
                       <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>	
                   <field id="bcpg:aiSuggestedFields" set="ai" help-id="becpg.forms.help.aiSuggestedFields" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    <field id="bcpg:aiExtraPrompt" set="ai" help-id="becpg.forms.help.aiExtraPrompt" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    
                    
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:docTypeCategory" force="true" />
                    <show id="bcpg:docTypeIsMandatory" />
                    <show id="bcpg:docTypeEffectivityType" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:docTypeCategory" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeIsMandatory">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeEffectivityType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:docTypeCategory" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:docTypeIsMandatory" />
                    <show id="bcpg:docTypeEffectivityType" />
                    <show id="bcpg:docTypeAutoExpirationDelay" force="true" />
                    <show id="bcpg:docTypeNameFormat" />
                    <show id="bcpg:docTypeLinkedTypes" force="true" />
                    <show id="bcpg:docTypeLinkedHierarchy" force="true" />
                    <show id="bcpg:docTypeLinkedCharacts" force="true" />
                    <show id="bcpg:docTypeDestPath" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:docTypeLinkedTypes" read-only="true" />
                </appearance>
            </form>
            
            <form id="create">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:docTypeCategory" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:docTypeIsMandatory" />
                    <show id="bcpg:docTypeEffectivityType" />
                    <show id="bcpg:docTypeAutoExpirationDelay" force="true" />
                    <show id="bcpg:docTypeFormula" force="true" />
                    <show id="bcpg:docTypeNameFormat" />
                    <show id="bcpg:docTypeLinkedTypes" force="true" />
                    <show id="bcpg:docTypeLinkedHierarchy" force="true" />
                    <show id="bcpg:docTypeLinkedCharacts" force="true" />
                    <show id="bcpg:docTypeDestPath" force="true" />
                    <show id="bcpg:aiValidationCriteria" force="true" />
                    <show id="bcpg:aiSuggestedFields" force="true" />
                    <show id="bcpg:aiExtraPrompt" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <set id="documentType" label-id="becpg.forms.set.document-type.label" />
                    <set id="documentTypeAutogeneration" label-id="becpg.forms.set.document-type-autogeneration.label" />
                    <set id="ai" label-id="becpg.forms.set.ai.label" />
                    
                    <field id="bcpg:charactName" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:docTypeIsMandatory" set="documentType" />
                    <field id="cm:description" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:docTypeCategory" set="documentType" />
                    <field id="bcpg:docTypeEffectivityType" set="documentType" >
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.hideIf" event='keyup,change@[
                                    {"prop":"prop_bcpg_docTypeAutoExpirationDelay", "condition" : "|NONE|MANUAL"}
                                ]' />
                        </constraint-handlers>
                    </field>
                    <field id="bcpg:docTypeAutoExpirationDelay" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">d</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeFormula" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeNameFormat" set="documentType" />
                    <field id="bcpg:isDeleted" set="documentType" />
                    
                    <field id="bcpg:docTypeLinkedTypes" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/aclType</control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeLinkedHierarchy" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists
                            </control-param>
                            <control-param name="extraPaths">prop_bcpg_docTypeLinkedTypes</control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeLinkedCharacts" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityListItem?classNames=bcpg:certification,bcpg:labelClaim,survey:surveyQuestion
                            </control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeDestPath" set="documentTypeAutogeneration" help-id="becpg.forms.help.docTypeDestPath" />
                     <field id="bcpg:aiValidationCriteria" set="ai" help-id="becpg.forms.help.aiValidationCriteria" >
                       <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                   <field id="bcpg:aiSuggestedFields" set="ai" help-id="becpg.forms.help.aiSuggestedFields" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    <field id="bcpg:aiExtraPrompt" set="ai" help-id="becpg.forms.help.aiExtraPrompt" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    
                    
                </appearance>
            </form>
        </forms>
    </config>
      
    
    <!-- bcpg:documentType type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:documentType">
        <forms>
            <form>
                <edit-form template="tab-edit" />
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:docTypeCategory" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:docTypeIsMandatory" />
                    <show id="bcpg:docTypeEffectivityType" />
                    <show id="bcpg:docTypeAutoExpirationDelay" force="true" />
                    <show id="bcpg:docTypeFormula" force="true" />
                    <show id="bcpg:docTypeNameFormat" />
                    <show id="bcpg:docTypeLinkedTypes" force="true" />
                    <show id="bcpg:docTypeLinkedHierarchy" force="true" />
                    <show id="bcpg:docTypeLinkedCharacts" force="true" />
                    <show id="bcpg:docTypeDestPath" force="true" />
                    <show id="bcpg:aiValidationCriteria" force="true" />
                    <show id="bcpg:aiSuggestedFields" force="true" />
                    <show id="bcpg:aiExtraPrompt" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <set id="documentType" label-id="becpg.forms.set.document-type.label" />
                    <set id="documentTypeAutogeneration" label-id="becpg.forms.set.document-type-autogeneration.label" />
                    <set id="ai" label-id="becpg.forms.set.ai.label" />
                    
                    <field id="bcpg:charactName" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:docTypeCategory" set="documentType" />
                    <field id="cm:description" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:docTypeIsMandatory" set="documentType" />
                    <field id="bcpg:docTypeEffectivityType" set="documentType" >
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.hideIf" event='keyup,change@[
                                    {"prop":"prop_bcpg_docTypeAutoExpirationDelay", "condition" : "|NONE|MANUAL"}
                                ]' />
                        </constraint-handlers>
                    </field>
                    <field id="bcpg:docTypeAutoExpirationDelay" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">d</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeFormula" set="documentType" >
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeNameFormat" set="documentType" />
                    <field id="bcpg:isDeleted" set="documentType" />
                    
                    <field id="bcpg:docTypeLinkedTypes" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/aclType</control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeLinkedHierarchy" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists
                            </control-param>
                            <control-param name="extraPaths">prop_bcpg_docTypeLinkedTypes</control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeLinkedCharacts" set="documentTypeAutogeneration" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityListItem?classNames=bcpg:certification,bcpg:labelClaim,survey:surveyQuestion
                            </control-param>
                            <control-param name="showTooltip">false</control-param>
                            <control-param name="saveTitle">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:docTypeDestPath" set="documentTypeAutogeneration" help-id="becpg.forms.help.docTypeDestPath" />
                    
                     <field id="bcpg:aiValidationCriteria" set="ai" help-id="becpg.forms.help.aiValidationCriteria" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:aiSuggestedFields" set="ai" help-id="becpg.forms.help.aiSuggestedFields" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    <field id="bcpg:aiExtraPrompt" set="ai" help-id="becpg.forms.help.aiExtraPrompt" >
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" >
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    
                    
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:plant type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:plant">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:plantTel" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="bcpg:plantPackerCode" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" set="2-col" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plantTel" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:plantPackerCode" set="2-col" />
                    <field id="bcpg:plantApprovalNumbers" set="2-col" />
                    <field id="bcpg:plantCertifications" mandatory="false" read-only="false" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>

                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="edit-systemEntity">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:plantTel" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="bcpg:plantPackerCode" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" set="2-col" />
                    <field id="bcpg:erpCode" set="2-col" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plantTel" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:plantPackerCode" set="2-col" />
                    <field id="bcpg:plantApprovalNumbers" set="2-col" />
                    <field id="sec:readGroups" set="2-col" />
                    <field id="bcpg:isDeleted" set="2-col" />
                    <field id="bcpg:plantCertifications" mandatory="false" read-only="false" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>

                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:plant">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:plantTel" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="bcpg:plantPackerCode" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plantTel" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:plantPackerCode" set="2-col" />
                    <field id="bcpg:plantApprovalNumbers" set="2-col" />
                    <field id="bcpg:plantCertifications" mandatory="false" read-only="false" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>

                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:eanCode" set="2-col" />
                </appearance>
            </form>
            <form id="create-systemEntity">

                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:plantTel" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="bcpg:plantPackerCode" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" set="2-col" />
                    <field id="bcpg:erpCode" set="2-col" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="cm:title" set="2-col" />

                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plantTel" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:plantPackerCode" set="2-col" />
                    <field id="bcpg:plantApprovalNumbers" set="2-col" />
                    <field id="sec:readGroups" set="2-col" />

                    <field id="bcpg:isDeleted" set="2-col" />
                    <field id="bcpg:plantCertifications" mandatory="false" read-only="false" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>

                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:plantCertifications" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:plantTel" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="bcpg:plantPackerCode" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" />
                </appearance>
            </form>
            <form id="datagrid-systemEntity">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:plantTel" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="bcpg:plantPackerCode" />
                    <show id="bcpg:plantCertifications" />
                    <show id="bcpg:plantApprovalNumbers" />
                    <show id="fm:commentCount" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" />
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:subsidiary type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:subsidiary">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:subsidiaryCertifications" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />

                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:subsidiaryCertifications">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:certification?path=cm:System/cm:Characts/bcpg:entityLists/cm:Certifications&amp;attributeName=cm:name
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:subsidiary">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:subsidiaryCertifications" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>

                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:subsidiaryCertifications">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:certification?path=cm:System/cm:Characts/bcpg:entityLists/cm:Certifications&amp;attributeName=cm:name
                            </control-param>
                        </control>
                    </field>
                    
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />

                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="cm:title" />
                    <show id="cm:description" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />

                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>
                <appearance>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:laboratory type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:laboratory">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />

                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:laboratory">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>

                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="cm:name" />
                </field-visibility>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="cm:title" />
                    <show id="cm:description" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />

                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>




    <!-- bcpg:trademark type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:trademark">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="bcpg:trademarkType" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:contacts" force="true" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    
                    
                    <!-- hide exif:exif -->
                    <hide id="exif:dateTimeOriginal" />
                    <hide id="exif:pixelXDimension" />
                    <hide id="exif:pixelYDimension" />
                    <hide id="exif:exposureTime" />
                    <hide id="exif:fNumber" />
                    <hide id="exif:flash" />
                    <hide id="exif:focalLength" />
                    <hide id="exif:isoSpeedRatings" />
                    <hide id="exif:manufacturer" />
                    <hide id="exif:model" />
                    <hide id="exif:software" />
                    <hide id="exif:orientation" />
                    <hide id="exif:xResolution" />
                    <hide id="exif:yResolution" />
                    <hide id="exif:resolutionUnit" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:contacts">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:contactList?path=System/Characts/bcpg:entityLists/Contacts
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:trademark">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>

                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:eanCode" />
                    <show id="bcpg:trademarkType" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:contacts" force="true" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />


                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />

                </field-visibility>

                <appearance>
                    <field id="bcpg:contacts">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:contactList?path=System/Characts/bcpg:entityLists/Contacts
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:trademarkType" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:trademarkType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>

                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>

                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="bcpg:trademarkType" />

                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:contacts" force="true" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="cm:content" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:certification type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:certification">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:certificationNumber" force="true" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="gs1:certificationCode" force="true" />
                    <show id="bcpg:certificationAgency" force="true" />
                    <show id="bcpg:certificationStandard" force="true" />
                    <show id="bcpg:certificationNote" force="true" />
                    <show id="cm:from" force="true" />
                    <show id="cm:to" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:certificationNumber" set="2-col" />
                    <field id="cm:name" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col" />
                    <field id="gs1:certificationCode" set="2-col" />
                    <field id="bcpg:certificationAgency" set="2-col" />
                    <field id="bcpg:certificationStandard" set="2-col" />
                    <field id="bcpg:certificationNote" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="cm:from" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="cm:to" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="edit-systemEntity">
                <field-visibility>
                    <show id="bcpg:certificationNumber" force="true" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="gs1:certificationCode" force="true" />
                    <show id="bcpg:certificationAgency" force="true" />
                    <show id="bcpg:certificationStandard" force="true" />
                    <show id="bcpg:certificationNote" force="true" />
                    <show id="cm:from" force="true" />
                    <show id="cm:to" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:certificationNumber" set="2-col" />
                    <field id="cm:name" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col" />
                    <field id="gs1:certificationCode" set="2-col" />
                    <field id="bcpg:certificationAgency" set="2-col" />
                    <field id="bcpg:certificationStandard" set="2-col" />
                    <field id="bcpg:certificationNote" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="cm:from" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="cm:to" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="sec:readGroups" set="2-col" />
                    <field id="bcpg:erpCode" set="2-col" />
                    <field id="bcpg:isDeleted" set="2-col" />
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:certification">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:certificationNumber" force="true" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="gs1:certificationCode" force="true" />
                    <show id="bcpg:certificationAgency" force="true" />
                    <show id="bcpg:certificationStandard" force="true" />
                    <show id="bcpg:certificationNote" force="true" />
                    <show id="cm:from" force="true" />
                    <show id="cm:to" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:certificationNumber" set="2-col" />
                    <field id="cm:name" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col" />
                    <field id="gs1:certificationCode" set="2-col" />
                    <field id="bcpg:certificationAgency" set="2-col" />
                    <field id="bcpg:certificationStandard" set="2-col" />
                    <field id="bcpg:certificationNote" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="cm:from" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="cm:to" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create-systemEntity">

                <field-visibility>
                    <show id="bcpg:certificationNumber" force="true" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="gs1:certificationCode" force="true" />
                    <show id="bcpg:certificationAgency" force="true" />
                    <show id="bcpg:certificationStandard" force="true" />
                    <show id="bcpg:certificationNote" force="true" />
                    <show id="cm:from" force="true" />
                    <show id="cm:to" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:certificationNumber" set="2-col" />
                    <field id="cm:name" set="2-col" />
                    <field id="cm:title" set="2-col" />
                    <field id="cm:description" set="2-col" />
                    <field id="gs1:certificationCode" set="2-col" />
                    <field id="bcpg:certificationAgency" set="2-col" />
                    <field id="bcpg:certificationStandard" set="2-col" />
                    <field id="bcpg:certificationNote" set="2-col" />
                    <field id="cm:description" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="cm:from" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="cm:to" set="2-col">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="sec:readGroups" set="2-col" />
                    <field id="bcpg:erpCode" set="2-col" />
                    <field id="bcpg:isDeleted" set="2-col" />
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                </field-visibility>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:certificationNumber" force="true" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="gs1:certificationCode" force="true" />
                    <show id="bcpg:certificationStandard" force="true" />
                    <show id="bcpg:certificationAgency" force="true" />
                    <show id="bcpg:certificationNote" force="true" />
                    <show id="cm:from" force="true" />
                    <show id="cm:to" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="datagrid-systemEntity">
                <field-visibility>
                    <show id="bcpg:certificationNumber" force="true" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="gs1:certificationCode" force="true" />
                    <show id="bcpg:certificationStandard" force="true" />
                    <show id="bcpg:certificationAgency" force="true" />
                    <show id="bcpg:certificationNote" force="true" />
                    <show id="cm:from" force="true" />
                    <show id="cm:to" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:approvalNumber type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:approvalNumber">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:approvalNumber">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                </field-visibility>

                <appearance>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:labelClaim type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:labelClaim">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:labelClaimCode" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:labelClaimType" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:labelClaimFormula" />
                    <show id="bcpg:labelClaimRegulatoryThreshold" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:isCharactPropagateUp" force="true" />
                    <show id="bcpg:isCertificationPropagateUp" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="bcpg:isDeleted" />
                        <!-- hide exif:exif -->
                    <hide id="exif:dateTimeOriginal" />
                    <hide id="exif:pixelXDimension" />
                    <hide id="exif:pixelYDimension" />
                    <hide id="exif:exposureTime" />
                    <hide id="exif:fNumber" />
                    <hide id="exif:flash" />
                    <hide id="exif:focalLength" />
                    <hide id="exif:isoSpeedRatings" />
                    <hide id="exif:manufacturer" />
                    <hide id="exif:model" />
                    <hide id="exif:software" />
                    <hide id="exif:orientation" />
                    <hide id="exif:xResolution" />
                    <hide id="exif:yResolution" />
                    <hide id="exif:resolutionUnit" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="bcpg:legalName">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:labelClaimFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl">
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:labelClaim">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:labelClaimCode" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:labelClaimType" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:labelClaimFormula" />
                    <show id="bcpg:labelClaimRegulatoryThreshold" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:isCharactPropagateUp" force="true" />
                    <show id="bcpg:isCertificationPropagateUp" force="true" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName" />
                    <field id="bcpg:legalName">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:labelClaimFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl">
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:labelClaimCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:labelClaimType" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:legalName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:labelClaimType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>

                        </control>
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:labelClaimCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:labelClaimType" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="cm:content" />
                </field-visibility>
            </form>

            <form id="sub-datagrid">
                <field-visibility>
                    <show id="cm:description" force="true" />
                </field-visibility>
            </form>
            
            <form id="export">
                <field-visibility>
                    <show id="bcpg:labelClaimCode" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:labelClaimType" />
                    <show id="rep:reportLocales" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="cm:content" />
                    <show id="bcpg:labelClaimFormula" />
                </field-visibility>
            </form>
        </forms>
    </config>


    <config evaluator="node-type" condition="bcpg:customsCode">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:cstsCode" />
                    <show id="bcpg:cstsCodeType" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:cstsCodeCountry" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:cstsCodeCountry">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:customsCode">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:cstsCode" />
                    <show id="bcpg:cstsCodeType" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:cstsCodeCountry" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:cstsCodeCountry">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:cstsCode" />
                    <show id="bcpg:cstsCodeType" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>

            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:cstsCode" />
                    <show id="bcpg:cstsCodeType" />
                    <show id="bcpg:charactName" />
                    <show id="bcpg:cstsCodeCountry" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="pjt:project">
        <forms>
            <form id="supplier-process">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="pjt:projectObservers" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="pjt:projectState" />
                    <show id="pjt:projectPriority" />
                    <show id="pjt:tlDue" force="true" />
                    <show id="bcpg:supplierAccountRef" force="true" />
                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" set="mainInfo" mandatory="true" />
                    <field id="pjt:projectObservers" set="mainInfo" />

                    <field id="bcpg:supplierAccountRef" set="mainInfo" mandatory="true" />
                    <field id="pjt:tlDue" set="mainInfo" />
                    <field id="pjt:projectPriority" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
                    </field>
                    <field id="bcpg:entityTplRef" set="mainInfo" mandatory="true">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/pjt:project?classNames=pjt:project,bcpg:entityTplAspect,bcpg:suppliersAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="showTooltip">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="sign-process">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="sign:recipients" force="true" />
                    <show id="pjt:projectState" />
                </field-visibility>
            </form>


        </forms>
    </config>
    
    <!-- bcpg:supplier type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:supplier">
        <forms>
            <form>

                <field-visibility>
                    <!-- mainInfo -->
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:supplierHierarchy1" />
                    <show id="bcpg:supplierHierarchy2" />
                    <show id="bcpg:supplierState" />
                    <show id="cm:description" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="bcpg:supplierAccountRef" />
                    <show id="bcpg:supplierTel" />
                    <show id="bcpg:supplierEmail" />
                    <show id="bcpg:supplierFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show id="pjt:projectScore" />
                    <show id="bcpg:parentEntityRef" />
                    
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    
                    <!-- local security rule -->
                    <show id="sec:securityRef" />
                    
                    <!-- template -->
                    <show id="bcpg:entityTplEnabled" force="false" />
                    <show id="bcpg:entityTplIsDefault" force="false" />
                    <show id="bcpg:entityTplScript" force="false" />
                    
                    <!-- audit -->
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />
                    
                    <!-- branch -->
                    <show force="false" id="bcpg:autoMergeDate" />
                    <show force="false" id="bcpg:autoMergeTo" />
                    <show force="false" id="bcpg:autoMergeVersionType" />
                    <show force="false" id="bcpg:autoMergeComments" />
                    <show force="false" id="bcpg:autoMergeImpactWUsed" />

                </field-visibility>
                <appearance>
                    <set id="template" appearance="bordered-panel" label-id="becpg.forms.set.template.label" />
                    <set id="branch" appearance="bordered-panel" label-id="becpg.forms.set.branch.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="location" appearance="bordered-panel" label-id="becpg.forms.set.location.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="effectivity" appearance="bordered-panel" label-id="becpg.forms.set.effectivity.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                        
                    <!-- template -->
                    <field id="bcpg:entityTplEnabled" set="template" />
                    <field id="bcpg:entityTplIsDefault" set="template" />
                    <field id="bcpg:entityTplScript" set="template" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/association.ftl">
                            <control-param name="startLocation">{doclib}</control-param>
                        </control>
                    </field>
                    
                    <!-- branch -->
                    <field id="bcpg:autoMergeDate" mandatory="false" read-only="false" set="branch" />
                    <field id="bcpg:autoMergeTo" mandatory="false" read-only="false" set="branch">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/branches</control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>
                    <field id="bcpg:autoMergeVersionType" mandatory="false" read-only="false" set="branch" />
                    <field id="bcpg:autoMergeComments" mandatory="false" read-only="false" set="branch">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:autoMergeImpactWUsed" mandatory="false" read-only="false" set="branch" />
                    
                    <!-- mainInfo -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="bcpg:parentEntityRef" set="mainInfo" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:supplier
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:entityTplRef" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:supplier?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                        </control>
                    </field>
                    <field id="pjt:projectScore" set="mainInfo" mandatory="false" read-only="false" />
                    <field id="cm:title" set="mainInfo" />

                    <field id="bcpg:supplierHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_supplierHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierState" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:eanCode" set="mainInfo" />
                    <field id="bcpg:supplierAccountRef" set="mainInfo" />
                    <field id="bcpg:supplierTel" set="mainInfo" />
                    <field id="bcpg:supplierEmail" set="mainInfo">
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.checkEmailValidity" event="keyup" />
                        </constraint-handlers>
                    </field>
                    <field id="bcpg:supplierFax" set="mainInfo" />
                    <field id="bcpg:httpLink1" set="mainInfo" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="mainInfo" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="mainInfo" label-id="becpg.forms.field.website3" />
                    
                    <!-- bcpg:location type -->
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="location" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="location" />
                    <field id="bcpg:locationAddress3" set="location" />
                    <field id="bcpg:locationCity" set="location" />
                    <field id="bcpg:locationZip" set="location" />
                    <field id="bcpg:locationState" set="location" />
                    <field id="bcpg:locationCountry" set="location" />
                    <field id="bcpg:locationCountryRef" set="location">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    
                    <!-- local security rule -->
                    <field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
                            </control-param>
                        </control>
                    </field>
                    
                    <!-- audit -->
                    <field id="cm:creator" set="audit" />
                    <field id="cm:created" set="audit" />
                    <field id="cm:modifier" set="audit" />
                    <field id="cm:modified" set="audit" />
                    
                    <!-- effectivity -->
                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false" set="effectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false" set="effectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="supplier">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" />
                    <show id="bcpg:supplierTel" />
                    <show id="bcpg:supplierEmail" />
                    <show id="bcpg:supplierFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="location" appearance="bordered-panel" label-id="becpg.forms.set.location.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    
                    <!-- maininfo -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierAccountRef" set="mainInfo" />
                    <field id="bcpg:supplierTel" set="mainInfo" />
                    <field id="bcpg:supplierEmail" set="mainInfo">
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.checkEmailValidity" event="keyup" />
                        </constraint-handlers>
                    </field>
                    <field id="bcpg:supplierFax" set="mainInfo" />
                    <field id="bcpg:httpLink1" set="mainInfo" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="mainInfo" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="mainInfo" label-id="becpg.forms.field.website3" />
                    
                    <!-- bcpg:location type -->
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="location" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="location" />
                    <field id="bcpg:locationAddress3" set="location" />
                    <field id="bcpg:locationCity" set="location" />
                    <field id="bcpg:locationZip" set="location" />
                    <field id="bcpg:locationState" set="location" />
                    <field id="bcpg:locationCountry" set="location" />
                    <field id="bcpg:locationCountryRef" set="location">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                </appearance>
            </form>
            <form id="reports-parameters">
                <field-visibility>
                    <show id="rep:reportLocales" force="true" />
                    <show id="rep:reportParameters" force="true" />
                    <show id="rep:reportTpls" force="true" />

                </field-visibility>
                <appearance>
                    <field id="rep:reportLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
                    </field>
                    <field id="rep:reportParameters">
                        <control template="/org/alfresco/components/form/controls/checkboxmany.ftl" />
                    </field>
                    <field id="rep:reportTpls">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/rep:reportTpl?excludeProps=rep%3AreportTplIsSystem%7Ctrue%2Crep%3AreportTplIsDisabled%7Ctrue%2Crep%3AreportTplType%7CExportSearch%2Crep%3AreportTplType%7CCompare%2Crep%3AreportTplType%7CSystem
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    
    <!-- bcpg:supplier type (creating nodes) -->
    <config evaluator="model-type" condition="bcpg:supplier">
        <forms>
            <form id="create">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:supplierHierarchy1" />
                    <show id="bcpg:supplierHierarchy2" />
                    <show id="bcpg:supplierState" />
                    <show id="cm:description" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="bcpg:supplierTel" />
                    <show id="bcpg:supplierEmail" />
                    <show id="bcpg:supplierFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="pjt:projectScore" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="location" appearance="bordered-panel" label-id="becpg.forms.set.location.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                        
                    <!-- maininfo -->
                    <field id="cm:name" set="mainInfo" />
                    <field id="bcpg:parentEntityRef" set="mainInfo" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:supplier
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>
                    <field id="cm:title" set="mainInfo" />

                    <field id="bcpg:supplierHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_supplierHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierState" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:eanCode" set="mainInfo" />
                    <field id="bcpg:supplierAccountRef" set="mainInfo" />
                    <field id="bcpg:supplierTel" set="mainInfo" />
                    <field id="bcpg:supplierEmail" set="mainInfo">
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.checkEmailValidity" event="keyup" />
                        </constraint-handlers>
                    </field>
                    <field id="bcpg:supplierFax" set="mainInfo" />
                    <field id="bcpg:httpLink1" set="mainInfo" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="mainInfo" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="mainInfo" label-id="becpg.forms.field.website3" />
                    <field id="pjt:projectScore" set="mainInfo" mandatory="false" read-only="false" />
                    
                    <!-- bcpg:location type -->
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="location" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="location" />
                    <field id="bcpg:locationAddress3" set="location" />
                    <field id="bcpg:locationCity" set="location" />
                    <field id="bcpg:locationZip" set="location" />
                    <field id="bcpg:locationState" set="location" />
                    <field id="bcpg:locationCountry" set="location" />
                    <field id="bcpg:locationCountryRef" set="location">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="search">
                <field-visibility>
                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:supplierHierarchy1" force="true" />
                    <show id="bcpg:supplierState" force="true" />
                    <show id="bcpg:code" force="false" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="cm:modified" force="false" />
                    <show id="cm:modifier" force="false" />
                    <show id="cm:created" force="false" />
                    <show id="cm:creator" force="false" />
                    <show id="survey:advSearchSurveyQuestion1" force="true" />
                      <show id="survey:advSearchSurveyAnswer1" force="true" />
                      <show id="survey:advSearchResponseCommentType1" force="true" />
                      <show id="survey:advSearchSlDisabledComment1" force="true" />
                      <show id="survey:advSearchSlNumberComment1" force="true" />
                      <show id="survey:advSearchSlDateComment1" force="true" />
                      <show id="survey:advSearchSurveyQuestion2" force="true" />
                      <show id="survey:advSearchSurveyAnswer2" force="true" />
                      <show id="survey:advSearchResponseCommentType2" force="true" />
                      <show id="survey:advSearchSlDisabledComment2" force="true" />
                      <show id="survey:advSearchSlNumberComment2" force="true" />
                      <show id="survey:advSearchSlDateComment2" force="true" />
                      <show id="survey:advSearchSurveyQuestion3" force="true" />
                      <show id="survey:advSearchSurveyAnswer3" force="true" />
                      <show id="survey:advSearchResponseCommentType3" force="true" />
                      <show id="survey:advSearchSlDisabledComment3" force="true" />
                      <show id="survey:advSearchSlNumberComment3" force="true" />
                      <show id="survey:advSearchSlDateComment3" force="true" />
                      <show id="survey:advSearchSurveyQuestion4" force="true" />
                      <show id="survey:advSearchSurveyAnswer4" force="true" />
                      <show id="survey:advSearchResponseCommentType4" force="true" />
                      <show id="survey:advSearchSlDisabledComment4" force="true" />
                      <show id="survey:advSearchSlNumberComment4" force="true" />
                      <show id="survey:advSearchSlDateComment4" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col-product-criteria" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-product-criteria" />

                    <field id="cm:name" mandatory="false" read-only="false" set="2-col-product-criteria" />
                    <field id="cm:title" mandatory="false" read-only="false" set="2-col-product-criteria">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="cm:description" mandatory="false" read-only="false" set="2-col-product-criteria">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:supplierHierarchy1" mandatory="false" read-only="false" set="2-col-product-criteria">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                            <control-param name="multiple">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierState" mandatory="false" read-only="false" set="2-col-product-criteria">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" mandatory="false" read-only="false" set="2-col-product-criteria" />
                    <field id="bcpg:erpCode" mandatory="false" read-only="false" set="2-col-product-criteria" />
                    <field id="bcpg:eanCode" mandatory="false" read-only="false" set="2-col-product-criteria" />

                    <field id="cm:modified" mandatory="false" read-only="false" set="1-col-product-criteria">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl" />
                    </field>
                    <field id="cm:modifier" mandatory="false" read-only="false" set="1-col-product-criteria">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="cm:created" mandatory="false" read-only="false" set="1-col-product-criteria">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl" />
                    </field>
                    <field id="cm:creator" mandatory="false" read-only="false" set="1-col-product-criteria">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <set appearance="bordered-panel" id="survey" label-id="becpg.forms.set.survey-criteria.label"
                        template="/org/alfresco/components/form/2-stackable-column-set.ftl" />
                    <field id="survey:advSearchSurveyQuestion1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion1</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType1" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment1: [""],
                                    prop_survey_advSearchSlNumberComment1: ["number"],
                                    prop_survey_advSearchSlDateComment1: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment1" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion2</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType2" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment2: [""],
                                    prop_survey_advSearchSlNumberComment2: ["number"],
                                    prop_survey_advSearchSlDateComment2: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment2" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion3</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType3" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment3: [""],
                                    prop_survey_advSearchSlNumberComment3: ["number"],
                                    prop_survey_advSearchSlDateComment3: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment3" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion4</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType4" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment4: [""],
                                    prop_survey_advSearchSlNumberComment4: ["number"],
                                    prop_survey_advSearchSlDateComment4: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment4" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="bulk-edit">
                <field-visibility>

                    <show id="bcpg:code" force="true" />
                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:supplierHierarchy1" force="true" />
                    <show id="bcpg:supplierHierarchy2" force="true" />
                    <show id="bcpg:supplierState" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="bcpg:supplierAccountRef" force="true" />
                    <show id="bcpg:supplierTel" force="true" />
                    <show id="bcpg:supplierEmail" force="true" />
                    <show id="bcpg:supplierFax" force="true" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />

                </field-visibility>
                <appearance>
                    <field id="bcpg:supplierHierarchy1">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierHierarchy2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/supplier_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_supplierHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" />
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" />
                </appearance>

            </form>
            
            <form id="sub-datagrid-filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:supplierHierarchy1" />
                    <show id="bcpg:supplierHierarchy2" />
                    <show id="bcpg:supplierState" />
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                </field-visibility>
                <appearance>
                    
                    <field id="cm:name" label-id="becpg.forms.field.product" />
                    <field id="bcpg:erpCode" />
                    <field id="bcpg:supplierHierarchy1" label-id="becpg.forms.field.productHierarchy1" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:supplierHierarchy2" label-id="becpg.forms.field.productHierarchy2" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:supplierState" label-id="becpg.forms.field.productState" >
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCity" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" >
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <form id="product-list">
                <field-visibility>
                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:supplierHierarchy1" force="true" />
                    <show id="bcpg:supplierState" force="true" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                    <show id="cm:modified" force="true" />
                    <show id="cm:modifier" force="true" />
                    <show id="cm:created" force="true" />
                    <show id="cm:creator" force="true" />

                    <show id="bcpg:supplierAccountRef" force="false" />
                    <show id="bcpg:supplierTel" force="false" />
                    <show id="bcpg:supplierEmail" force="false" />
                    <show id="bcpg:supplierFax" force="false" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" force="false" />
                    <show id="bcpg:locationAddress2" force="false" />
                    <show id="bcpg:locationAddress3" force="false" />
                    <show id="bcpg:locationCity" force="false" />
                    <show id="bcpg:locationZip" force="false" />
                    <show id="bcpg:locationState" force="false" />
                    <show id="bcpg:locationCountry" force="false" />
                    <show id="bcpg:locationCountryRef" force="false" />

                </field-visibility>
                <appearance>
                    <field id="cm:name" read-only="true"></field>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                </appearance>
            </form>
            
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:parentEntityRef" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:supplierState" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:locationAddress1" force="true"/>
                    <show id="bcpg:locationCity" force="true"/>
                    <show id="bcpg:locationZip" force="true"/>
                    <show id="bcpg:locationState" force="true"/>
                    <show id="bcpg:locationCountry" force="true"/>
                    <show id="bcpg:locationCountryRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:parentEntityRef" read-only="true" />
                    <field id="cm:title" read-only="true"/>
                    <field id="bcpg:supplierState" read-only="true" />
                    <field id="bcpg:erpCode" read-only="true"/>
                    <field id="bcpg:locationAddress1" read-only="true"/>
                    <field id="bcpg:locationCity" read-only="true"/>
                    <field id="bcpg:locationZip" read-only="true"/>
                    <field id="bcpg:locationState" read-only="true"/>
                    <field id="bcpg:locationCountry" read-only="true"/>
                    <field id="bcpg:locationCountryRef" read-only="true"/>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:client type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:client">
        <forms>
            <form>

                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:clientHierarchy1" />
                    <show id="bcpg:clientHierarchy2" />
                    <show id="bcpg:clientState" />
                    <show id="cm:description" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="gs1:tradeItemTradeChannel" force="true" />
                    <show id="bcpg:clientTel" />
                    <show id="bcpg:clientEmail" />
                    <show id="bcpg:clientFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="pjt:projectScore" />
                    <show id="bcpg:parentEntityRef" force="false" />
                    
                    <!-- local security rule -->
                    <show id="sec:securityRef" />   
                    
                    <!--workflow validation -->
                    <show id="bcpgwf:pvValidationDate" for-mode="view" />
                    <show id="bcpgwf:pvRDApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvPackagingApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvQualityApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvProductionApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvCallerActor" for-mode="view" />
                    <show id="bcpgwf:pvCaller2Actor" for-mode="view" />
                    
                    <!-- audit -->
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />

                </field-visibility>
                <appearance>
                    <set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="cm:title" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:clientHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/client_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:clientHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/client_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_clientHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:clientState" read-only="false" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="gs1:tradeItemTradeChannel" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:clientTel" set="mainInfo" />
                    <field id="bcpg:clientEmail" set="mainInfo" />
                    <field id="bcpg:clientFax" set="mainInfo" />
                    <field id="bcpg:httpLink1" set="mainInfo" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="mainInfo" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="mainInfo" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="mainInfo" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="mainInfo" />
                    <field id="bcpg:locationAddress3" set="mainInfo" />
                    <field id="bcpg:locationCity" set="mainInfo" />
                    <field id="bcpg:locationZip" set="mainInfo" />
                    <field id="bcpg:locationState" set="mainInfo" />
                    <field id="bcpg:locationCountry" set="mainInfo" />
                    <field id="bcpg:locationCountryRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="pjt:projectScore" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:parentEntityRef" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:client
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                            <control-param name="excludeSources">true</control-param>
                        </control>
                    </field>

                    <set id="securityRule" appearance="bordered-panel" label-id="becpg.forms.set.securityRule.label" />
                    <field id="sec:securityRef" set="securityRule" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/sec:aclGroup?&amp;excludeProps=sec:isLocalPermission%7Cfalse
                            </control-param>
                        </control>
                    </field>
                    
                    <set id="productValidation" appearance="bordered-panel" label-id="becpg.forms.set.validation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpgwf:pvValidationDate" set="productValidation">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpgwf:pvRDApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvPackagingApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvQualityApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvProductionApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvCallerActor" set="productValidation" />
                    <field id="bcpgwf:pvCaller2Actor" set="productValidation" />

                        <!-- audit -->
                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:creator" set="audit" />
                    <field id="cm:created" set="audit" />
                    <field id="cm:modifier" set="audit" />
                    <field id="cm:modified" set="audit" />
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:client type (creating nodes) -->
    <config evaluator="model-type" condition="bcpg:client">
        <forms>
            <form id="create">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:clientHierarchy1" />
                    <show id="bcpg:clientHierarchy2" />
                    <show id="bcpg:clientState" />
                    <show id="cm:description" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:clientTel" />
                    <show id="bcpg:clientEmail" />
                    <show id="bcpg:clientFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" />
                    <show id="bcpg:locationAddress2" />
                    <show id="bcpg:locationAddress3" />
                    <show id="bcpg:locationCity" />
                    <show id="bcpg:locationZip" />
                    <show id="bcpg:locationState" />
                    <show id="bcpg:locationCountry" />
                    <show id="bcpg:locationCountryRef" />
                    <show id="pjt:projectScore" />
                    <show id="bcpg:parentEntityRef" force="false" />
                </field-visibility>
                <appearance>
                    <set id="mainInfo" appearance="bordered-panel" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="location" appearance="bordered-panel" label-id="becpg.forms.set.location.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    
                    <field id="cm:name" set="mainInfo" />
                    <field id="cm:title" set="mainInfo" />
                    <field id="bcpg:clientHierarchy1" set="mainInfo" >
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/client_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:clientHierarchy2" set="mainInfo" >
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/client_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_clientHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:clientState" set="mainInfo" />
                    <field id="bcpg:code" set="mainInfo" read-only="true" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:clientTel" set="mainInfo" />
                    <field id="bcpg:clientEmail" set="mainInfo" />
                    <field id="bcpg:clientFax" set="mainInfo" />
                    <field id="bcpg:httpLink1" set="mainInfo" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="mainInfo" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="mainInfo" label-id="becpg.forms.field.website3" />
                    <field id="pjt:projectScore" mandatory="false" read-only="false" set="mainInfo" />
                    
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="location" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="location" />
                    <field id="bcpg:locationAddress3" set="location" />
                    <field id="bcpg:locationCity" set="location" />
                    <field id="bcpg:locationZip" set="location" />
                    <field id="bcpg:locationState" set="location" />
                    <field id="bcpg:locationCountry" set="location" />
                    <field id="bcpg:locationCountryRef" set="location">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="pjt:projectScore" set="location" />
                    
                </appearance>
            </form>
            <form id="search">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:clientHierarchy1" />
                    <show id="bcpg:clientState" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" />
                    <show id="survey:advSearchSurveyQuestion1" force="true" />
                      <show id="survey:advSearchSurveyAnswer1" force="true" />
                      <show id="survey:advSearchResponseCommentType1" force="true" />
                      <show id="survey:advSearchSlDisabledComment1" force="true" />
                      <show id="survey:advSearchSlNumberComment1" force="true" />
                      <show id="survey:advSearchSlDateComment1" force="true" />
                      <show id="survey:advSearchSurveyQuestion2" force="true" />
                      <show id="survey:advSearchSurveyAnswer2" force="true" />
                      <show id="survey:advSearchResponseCommentType2" force="true" />
                      <show id="survey:advSearchSlDisabledComment2" force="true" />
                      <show id="survey:advSearchSlNumberComment2" force="true" />
                      <show id="survey:advSearchSlDateComment2" force="true" />
                      <show id="survey:advSearchSurveyQuestion3" force="true" />
                      <show id="survey:advSearchSurveyAnswer3" force="true" />
                      <show id="survey:advSearchResponseCommentType3" force="true" />
                      <show id="survey:advSearchSlDisabledComment3" force="true" />
                      <show id="survey:advSearchSlNumberComment3" force="true" />
                      <show id="survey:advSearchSlDateComment3" force="true" />
                      <show id="survey:advSearchSurveyQuestion4" force="true" />
                      <show id="survey:advSearchSurveyAnswer4" force="true" />
                      <show id="survey:advSearchResponseCommentType4" force="true" />
                      <show id="survey:advSearchSlDisabledComment4" force="true" />
                      <show id="survey:advSearchSlNumberComment4" force="true" />
                      <show id="survey:advSearchSlDateComment4" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col-product-criteria" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" set="2-col-product-criteria" >
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" set="2-col-product-criteria" >
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:erpCode" set="2-col-product-criteria" >
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:clientHierarchy1" set="2-col-product-criteria" >
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/allLinkedvalue/values/System/ProductHierarchy/bcpg:entityLists/client_Hierarchy
                            </control-param>
                            <control-param name="multiple">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:clientState" set="2-col-product-criteria" >
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <set appearance="bordered-panel" id="survey" label-id="becpg.forms.set.survey-criteria.label"
                        template="/org/alfresco/components/form/2-stackable-column-set.ftl" />
                    <field id="survey:advSearchSurveyQuestion1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion1</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType1" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment1: [""],
                                    prop_survey_advSearchSlNumberComment1: ["number"],
                                    prop_survey_advSearchSlDateComment1: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment1" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment1" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion2</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType2" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment2: [""],
                                    prop_survey_advSearchSlNumberComment2: ["number"],
                                    prop_survey_advSearchSlDateComment2: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment2" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment2" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion3</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType3" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment3: [""],
                                    prop_survey_advSearchSlNumberComment3: ["number"],
                                    prop_survey_advSearchSlDateComment3: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment3" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment3" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyQuestion4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSurveyAnswer4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/survey</control-param>
                            <control-param name="parentAssoc">survey_advSearchSurveyQuestion4</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchResponseCommentType4" set="survey">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="options">number|data.survey_responseCommentTypes.number,dateTime|data.survey_responseCommentTypes.dateTime</control-param>
                            <control-param name="visibleFieldsValues">{
                                    prop_survey_advSearchSlDisabledComment4: [""],
                                    prop_survey_advSearchSlNumberComment4: ["number"],
                                    prop_survey_advSearchSlDateComment4: ["dateTime"]
                            }</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDisabledComment4" mandatory="false" read-only="true" set="survey">
                        <control>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlNumberComment4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                    <field id="survey:advSearchSlDateComment4" mandatory="false" read-only="false" set="survey">
                        <control template="/org/alfresco/components/form/controls/daterange.ftl">
                            <control-param name="stacked">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="product-list">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:clientHierarchy1" force="true" />
                    <show id="bcpg:clientHierarchy2" force="true"/>
                    <show id="bcpg:clientState" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="cm:modified" force="true" />
                    <show id="cm:modifier" force="true" />
                    <show id="cm:created" force="true" />
                    <show id="cm:creator" force="true" />
                    <show id="bcpg:clientTel" force="false"/>
                    <show id="bcpg:clientEmail" force="false"/>
                    <show id="bcpg:clientFax" force="false"/>
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    
                    <!-- bcpg:location type -->
                    <show id="bcpg:locationAddress1" force="false"/>
                    <show id="bcpg:locationAddress2" force="false"/>
                    <show id="bcpg:locationAddress3" force="false" />
                    <show id="bcpg:locationCity" force="false"/>
                    <show id="bcpg:locationZip" force="false"/>
                    <show id="bcpg:locationState" force="false"/>
                    <show id="bcpg:locationCountry" force="false"/>
                    <show id="bcpg:locationCountryRef" force="false" />

                </field-visibility>
                <appearance>
                    <field id="cm:name" read-only="true"></field>
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                </appearance>
            </form>
        </forms>
    </config>
    
    
    
        
    <!-- bcpg:supplier type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:productCollection">
        <forms>
            <form>

                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:productCollectionHierarchy1" />
                    <show id="bcpg:productCollectionHierarchy2" />
                    <show id="bcpg:productCollectionState" />
                    <show id="cm:description" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:entityTplRef" force="true" />
                    <show force="true" id="bcpg:subsidiaryRef" />
                    <show force="true" id="bcpg:trademarkRef" />
                    <show force="true" id="bcpg:plants" />
                    <show force="false" id="bcpg:clients" />
                    <show force="false" id="bcpg:suppliers" />
                    <show force="false" id="bcpg:supplierPlants" />
                    <show force="false" id="bcpg:supplierRefCode" />
                            <!-- tags and categories -->
                    <show id="cm:taggable" />
                    <show id="cm:categories" />
                    <!-- audit -->
                    <show id="cm:creator" for-mode="view" />
                    <show id="cm:created" for-mode="view" />
                    <show id="cm:modifier" for-mode="view" />
                    <show id="cm:modified" for-mode="view" />
                </field-visibility>
                <appearance>

                    <set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />

                    <field id="cm:title" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>


                    <field id="bcpg:productCollectionHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionState" set="mainInfo" />
                    <field id="bcpg:productCollectionHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productCollectionHierarchy1</control-param>
                        </control>
                    </field>
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />

                    <field id="bcpg:entityTplRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:productCollection?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:subsidiaryRef" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:trademarkRef" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:plants" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="mainInfo" />

                    <field id="bcpg:clients" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:suppliers" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:supplierPlants" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:plant&amp;attributeName=cm:name&amp;filter=parentAsEntity
                            </control-param>
                            <control-param name="parentAssoc">bcpg_suppliers</control-param>
                        </control>
                    </field>
                    <field id="bcpg:supplierRefCode" mandatory="false" read-only="false" set="mainInfo" />
                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                        
                        <!-- categories -->
                    <field id="cm:taggable" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>



                    <set id="audit" appearance="bordered-panel" label-id="becpg.forms.set.audit.label" template="/org/alfresco/components/form/2-column-set.ftl" />
                    
                
                    <!-- audit -->
                    <field id="cm:creator" set="audit" />
                    <field id="cm:created" set="audit" />
                    <field id="cm:modifier" set="audit" />
                    <field id="cm:modified" set="audit" />
                </appearance>
            </form>
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:productCollectionHierarchy1" />
                    <show id="bcpg:productCollectionHierarchy2" />
                    <show id="bcpg:productCollectionState" />
                    <show id="cm:description" />
                    <!-- tags and categories -->
                    <show id="cm:taggable" for-mode="edit" force="true" />
                    <show id="cm:categories" />
                </field-visibility>
                <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                <appearance>
                    <field id="cm:name">
                        <control>
                            <control-param name="maxLength">255</control-param>
                        </control>
                    </field>
                    <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>

                    <field id="bcpg:productCollectionHierarchy1">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionState" />
                    <field id="bcpg:productCollectionHierarchy2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productCollectionHierarchy1</control-param>
                        </control>
                    </field>

                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>


                    <field id="cm:taggable">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                    </field>
                    <field id="cm:categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="reports-parameters">
                <field-visibility>
                    <show force="true" id="rep:reportLocales" />
                    <show force="true" id="rep:reportParameters" />
                    <show force="true" id="rep:reportTpls" />
                </field-visibility>
                <appearance>
                    <field id="rep:reportLocales" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
                    </field>
                    <field id="rep:reportParameters" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/checkboxmany.ftl" />
                    </field>
                    <field id="rep:reportTpls" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/rep:reportTpl?excludeProps=rep%3AreportTplIsSystem%7Ctrue%2Crep%3AreportTplIsDisabled%7Ctrue%2Crep%3AreportTplType%7CExportSearch%2Crep%3AreportTplType%7CCompare%2Crep%3AreportTplType%7CSystem
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>


    </config>

    <!-- bcpg:supplier type (creating nodes) -->
    <config evaluator="model-type" condition="bcpg:productCollection">
        <forms>
            <form id="create">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:productCollectionHierarchy1" />
                    <show id="bcpg:productCollectionHierarchy2" />
                    <show id="bcpg:productCollectionState" />
                    <show id="cm:description" />
                    <show id="bcpg:code" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:entityTplRef" force="true" />

                </field-visibility>
                <appearance>
                    <set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" mandatory="false" read-only="false" set="mainInfo" />

                    <field id="cm:title" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>


                    <field id="bcpg:productCollectionHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productCollectionHierarchy1</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionState" set="mainInfo" />
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" set="mainInfo" />
                    <field id="bcpg:erpCode" set="mainInfo" />
                    <field id="bcpg:entityTplRef" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:productCollection?classNames=bcpg:entityTplAspect&amp;excludeProps=bcpg:entityTplEnabled%7Cfalse
                            </control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="bulk-edit">
                <field-visibility>

                    <show id="bcpg:code" force="true" />
                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:productCollectionHierarchy1" />
                    <show id="bcpg:productCollectionHierarchy2" />
                    <show id="bcpg:productCollectionState" />
                    <show id="cm:description" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:trademarkRef" />
                    <show force="true" id="bcpg:plants" />
                    <show force="true" id="bcpg:clients" />
                    <show force="true" id="bcpg:suppliers" />
                    <show force="true" id="bcpg:supplierPlants" />
                    <show force="true" id="bcpg:supplierRefCode" />

                </field-visibility>
                <appearance>
                    <field id="bcpg:productCollectionHierarchy1">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionHierarchy2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg:productCollectionHierarchy1
                            </control-param>
                        </control>
                    </field>
                    <field id="cm:description">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" read-only="true" />
                </appearance>

            </form>

            <form id="product-list">
                <field-visibility>

                    <show id="cm:name" force="true" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:productCollectionHierarchy1" force="true" />
                    <show id="bcpg:productCollectionHierarchy2" force="true" />
                    <show id="bcpg:productCollectionState" force="true" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:subsidiaryRef" />
                    <show force="true" id="bcpg:trademarkRef" />
                    <show force="true" id="bcpg:plants" />
                    <show id="cm:taggable" force="true" />
                    <show id="cm:categories" force="true" />

                    <show force="false" id="bcpg:clients" />
                    <show force="false" id="bcpg:suppliers" />
                    <show force="false" id="bcpg:supplierPlants" />
                    <show force="false" id="bcpg:supplierRefCode" />

                </field-visibility>
                <appearance>
                    <field id="cm:name" read-only="true"></field>
                </appearance>
            </form>

            <form id="search">

                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:productCollectionHierarchy1" />
                    <show id="bcpg:productCollectionHierarchy2" />
                    <show id="bcpg:productCollectionState" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:code" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show force="true" id="bcpg:subsidiaryRef" />
                    <show force="true" id="bcpg:trademarkRef" />
                    <show force="true" id="bcpg:plants" />
                    <!-- tags and categories -->
                    <show id="cm:taggable" force="true" />
                    <show id="cm:categories" force="true" />
                </field-visibility>
                <appearance>

                    <set appearance="bordered-panel" id="mainInfo" label-id="becpg.forms.set.designation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="cm:name" mandatory="false" read-only="false" set="mainInfo">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>

                    <field id="cm:title" mandatory="false" read-only="false" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl">
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:productCollectionHierarchy1" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionState" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:productCollectionHierarchy2" set="mainInfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/linkedvalue/values/System/ProductHierarchy/bcpg:entityLists/productCollection_Hierarchy
                            </control-param>
                            <control-param name="parent">bcpg_productCollectionHierarchy1</control-param>
                            <control-param name="forceEditable">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="cm:description" set="mainInfo">
                        <control>
                            <control-param name="activateLinks">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:code" set="mainInfo">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:erpCode" set="mainInfo">
                        <control>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:subsidiaryRef" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:trademarkRef" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:plants" mandatory="false" read-only="false" set="mainInfo" />
                    <field id="bcpg:productGeoOrigin" mandatory="false" read-only="false" set="mainInfo" />

                    <field id="bcpg:clients" mandatory="false" read-only="false" set="mainInfo" />

                    <set id="categories" appearance="bordered-panel" label-id="becpg.forms.set.category.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                        
                        <!-- categories -->
                    <field id="cm:taggable" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="params">aspect=cm:taggable
                            </control-param>
                            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore
                            </control-param>
                            <control-param name="createNewItemIcon">tag</control-param>
                            <control-param name="mode">AND</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="cm:categories" set="categories">
                        <control>
                            <control-param name="compactMode">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:compoList type -->
    <config evaluator="model-type" condition="bcpg:compoList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-3" />

                    <field id="bcpg:compoListProduct" help-id="becpg.forms.help.compoListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial%5E4,bcpg:finishedProduct,bcpg:localSemiFinishedProduct%5E2,bcpg:semiFinishedProduct%5E2
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListQtySubFormula" set="2-col-1" help-id="becpg.forms.help.compoListQtySubFormula" />
                    <field id="bcpg:compoListUnit" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/compoListParentLevel
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:compoListYieldPerc" set="2-col-2" help-id="becpg.forms.help.compoListYieldPerc" />
                    <field id="bcpg:compoListLossPerc" set="2-col-2" help-id="becpg.forms.help.compoListLossPerc" />


                    <field id="bcpg:compoListDeclType" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:instruction" set="1-col-3">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create">
                <field-visibility>
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:instruction" force="true" />
                    <show id="bcpg:glopTarget" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-3" />

                    <field id="bcpg:compoListProduct" help-id="becpg.forms.help.compoListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial%5E4,bcpg:finishedProduct,bcpg:localSemiFinishedProduct%5E2,bcpg:semiFinishedProduct%5E2
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListQtySubFormula" set="2-col-1" help-id="becpg.forms.help.compoListQtySubFormula" />
                    <field id="bcpg:compoListUnit" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/compoListParentLevel
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:compoListYieldPerc" set="2-col-2" help-id="becpg.forms.help.compoListYieldPerc" />
                    <field id="bcpg:compoListLossPerc" set="2-col-2" help-id="becpg.forms.help.compoListLossPerc" />


                    <field id="bcpg:compoListDeclType" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:instruction" set="1-col-3">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create-logisticUnit">
                <field-visibility>
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-3" />

                    <field id="bcpg:compoListProduct" help-id="becpg.forms.help.compoListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:finishedProduct,bcpg:localSemiFinishedProduct%5E2,bcpg:semiFinishedProduct%5E2,bcpg:logisticUnit%5E2
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListQtySubFormula" set="2-col-1" help-id="becpg.forms.help.compoListQtySubFormula" />
                    <field id="bcpg:compoListUnit" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/compoListParentLevel
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:compoListYieldPerc" set="2-col-2" help-id="becpg.forms.help.compoListYieldPerc" />
                    <field id="bcpg:compoListLossPerc" set="2-col-2" help-id="becpg.forms.help.compoListLossPerc" />


                    <field id="bcpg:compoListDeclType" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:instruction" set="1-col-3">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="full-screen">
                <field-visibility>
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:variantIds" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:compoListProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial%5E4,bcpg:finishedProduct,bcpg:localSemiFinishedProduct%5E2,bcpg:semiFinishedProduct%5E2
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListUnit">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListDeclType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/compoListParentLevel
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:variantIds">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="entity_bcpg:compoListProduct_bcpg:product" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:depthLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">0|,1|1,2|2,3|3,4|4,All|data.level.all
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="filter-wused">
                <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="entity_bcpg:compoListProduct_bcpg:product" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:depthLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">0|,1|1,2|2,3|3,4|4,All|data.level.all
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compareWithDynColumn" force="true" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:compoListQty" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:dynamicCharactColumn1" force="true" />
                    <show id="bcpg:dynamicCharactColumn2" force="true" />
                    <show id="bcpg:dynamicCharactColumn3" force="true" />
                    <show id="bcpg:dynamicCharactColumn4" force="true" />
                    <show id="bcpg:dynamicCharactColumn5" force="true" />
                    <show id="bcpg:dynamicCharactColumn6" force="true" />
                    <show id="bcpg:dynamicCharactColumn7" force="true" />
                    <show id="bcpg:dynamicCharactColumn8" force="true" />
                    <show id="bcpg:dynamicCharactColumn9" force="true" />
                    <show id="bcpg:dynamicCharactColumn10" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="bcpg:instruction" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:compoListQtySubFormula"
                        help="{&quot;className&quot;: &quot;align-right&quot;, &quot;numberFormat&quot;:  { &quot;minimumFractionDigits&quot;: 0, &quot;maximumFractionDigits&quot;: 4}}" />
                    <field id="bcpg:compareWithDynColumn" label="hidden" read-only="true" />
                    <field id="bcpg:compoListQty" read-only="true" />
                    <field id="bcpg:compoListVolume" read-only="true" />
                    <field id="bcpg:dynamicCharactColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn5" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn6" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn7" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn8" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn9" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn10" read-only="true" label="hidden" />
                    <field id="bcpg:instruction" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="datagrid-batch">
                <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:compoListQty" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListStockType" />
                    <show id="bcpg:dynamicCharactColumn1" force="true" />
                    <show id="bcpg:dynamicCharactColumn2" force="true" />
                    <show id="bcpg:dynamicCharactColumn3" force="true" />
                    <show id="bcpg:dynamicCharactColumn4" force="true" />
                    <show id="bcpg:dynamicCharactColumn5" force="true" />
                    <show id="bcpg:dynamicCharactColumn6" force="true" />
                    <show id="bcpg:dynamicCharactColumn7" force="true" />
                    <show id="bcpg:dynamicCharactColumn8" force="true" />
                    <show id="bcpg:dynamicCharactColumn9" force="true" />
                    <show id="bcpg:dynamicCharactColumn10" force="true" />
                    <show id="bcpg:instruction" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:compoListQtySubFormula"
                        help="{&quot;className&quot;: &quot;align-right&quot;, &quot;numberFormat&quot;:  { &quot;minimumFractionDigits&quot;: 0, &quot;maximumFractionDigits&quot;: 4}}" />
                    <field id="bcpg:compareWithDynColumn" label="hidden" read-only="true" />
                    <field id="bcpg:compoListQty" read-only="true" />
                    <field id="bcpg:compoListVolume" read-only="true" />
                    <field id="bcpg:dynamicCharactColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn5" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn6" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn7" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn8" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn9" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn10" read-only="true" label="hidden" />
                    <field id="bcpg:instruction" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>

            <form id="security">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:compoListQty" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:dynamicCharactColumn1" force="true" />
                    <show id="bcpg:dynamicCharactColumn2" force="true" />
                    <show id="bcpg:dynamicCharactColumn3" force="true" />
                    <show id="bcpg:dynamicCharactColumn4" force="true" />
                    <show id="bcpg:dynamicCharactColumn5" force="true" />
                    <show id="bcpg:dynamicCharactColumn6" force="true" />
                    <show id="bcpg:dynamicCharactColumn7" force="true" />
                    <show id="bcpg:dynamicCharactColumn8" force="true" />
                    <show id="bcpg:dynamicCharactColumn9" force="true" />
                    <show id="bcpg:dynamicCharactColumn10" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>
            </form>


            <form id="labeling">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:compoListDeclType" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                </appearance>
            </form>
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:compoListQty" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <!-- bcpg:compoList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:compoList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:compoListProduct" />

                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />

                    <show id="bcpg:parentLevel" />

                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <!-- <show id="bcpg:propagatedCharacts" force="true" />  -->
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-3" />
                    <field id="bcpg:compoListProduct" help-id="becpg.forms.help.compoListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial%5E4,bcpg:finishedProduct,bcpg:localSemiFinishedProduct%5E2,bcpg:semiFinishedProduct%5E2
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListQtySubFormula" help-id="becpg.forms.help.compoListQtySubFormula" set="2-col-1" />
                    <field id="bcpg:compoListUnit" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />

                    </field>


                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/compoListParentLevel
                            </control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>

                    <field id="bcpg:compoListYieldPerc" help-id="becpg.forms.help.compoListYieldPerc" set="2-col-2" />
                    <field id="bcpg:compoListLossPerc" help-id="becpg.forms.help.compoListLossPerc" set="2-col-2" />


                    <field id="bcpg:compoListDeclType" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />

                    </field>

                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>

                    <field id="bcpg:startEffectivity" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:instruction" set="1-col-3">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="edit-logisticUnit">
                <field-visibility>
                    <show id="bcpg:compoListProduct" />

                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compoListUnit" />

                    <show id="bcpg:parentLevel" />

                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:compoListDeclType" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <!-- <show id="bcpg:propagatedCharacts" force="true" />  -->
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-3" />
                    <field id="bcpg:compoListProduct" help-id="becpg.forms.help.compoListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:finishedProduct,bcpg:localSemiFinishedProduct%5E2,bcpg:semiFinishedProduct%5E2,bcpg:logisticUnit%5E2
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:compoListQtySubFormula" help-id="becpg.forms.help.compoListQtySubFormula" set="2-col-1" />
                    <field id="bcpg:compoListUnit" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />

                    </field>


                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/compoListParentLevel
                            </control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>

                    <field id="bcpg:compoListYieldPerc" help-id="becpg.forms.help.compoListYieldPerc" set="2-col-2" />
                    <field id="bcpg:compoListLossPerc" help-id="becpg.forms.help.compoListLossPerc" set="2-col-2" />


                    <field id="bcpg:compoListDeclType" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl" />

                    </field>

                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>

                    <field id="bcpg:startEffectivity" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
            <!--        
                   <field id="bcpg:propagatedCharacts"   set="1-col-3">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                             <control-param name="ds">becpg/autocomplete/DataListCharact?path=bcpg:compoListProduct&amp;className=bcpg:nutList&amp;attributeName=bcpg:nutListNut&amp;filter=itemAsEntity</control-param>
                           <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>
                    
                     -->
                    <field id="bcpg:instruction" set="1-col-3">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="security">
                <field-visibility>
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:instruction" force="true" />
                    <show id="bcpg:compoListProduct" />
                    <show id="bcpg:compoListQtySubFormula" />
                    <show id="bcpg:compareWithDynColumn" force="true" />
                    <show id="bcpg:compoListUnit" />
                    <show id="bcpg:compoListQty" />
                    <show id="bcpg:compoListYieldPerc" />
                    <show id="bcpg:compoListLossPerc" />
                    <show id="bcpg:dynamicCharactColumn1" force="true" />
                    <show id="bcpg:dynamicCharactColumn2" force="true" />
                    <show id="bcpg:dynamicCharactColumn3" force="true" />
                    <show id="bcpg:dynamicCharactColumn4" force="true" />
                    <show id="bcpg:dynamicCharactColumn5" force="true" />
                    <show id="bcpg:dynamicCharactColumn6" force="true" />
                    <show id="bcpg:dynamicCharactColumn7" force="true" />
                    <show id="bcpg:dynamicCharactColumn8" force="true" />
                    <show id="bcpg:dynamicCharactColumn9" force="true" />
                    <show id="bcpg:dynamicCharactColumn10" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>
    
    
    
    <!-- bcpg:productList type -->
    <config evaluator="model-type" condition="bcpg:productList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:productListProduct" />
                    <show id="bcpg:parentLevel" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:productListProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityV2?classNames=bcpg:rawMaterial,bcpg:finishedProduct,bcpg:localSemiFinishedProduct,bcpg:semiFinishedProduct,bcpg:productCollection&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:productList&#38;attributeName=bcpg:productListProduct
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="full-screen">
                <field-visibility>
                    <show id="bcpg:productListProduct" />

                </field-visibility>

                <appearance>
                    <field id="bcpg:productListProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityV2?classNames=bcpg:rawMaterial,bcpg:finishedProduct,bcpg:localSemiFinishedProduct,bcpg:semiFinishedProduct,bcpg:productCollection&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>

                </appearance>
            </form>


            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:productListProduct" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>

        </forms>
    </config>
    <!-- bcpg:productList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:productList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:productListProduct" />
                    <show id="bcpg:parentLevel" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:productListProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:entityV2?classNames=bcpg:rawMaterial,bcpg:finishedProduct,bcpg:localSemiFinishedProduct,bcpg:semiFinishedProduct,bcpg:productCollection&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:productList&#38;attributeName=bcpg:productListProduct
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>

                </appearance>
            </form>

        </forms>
    </config>

    <!-- bcpg:packagingList type -->
    <config evaluator="model-type" condition="bcpg:packagingList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:packagingListProduct" />

                    <show id="bcpg:packagingListQty" />
                    <show id="bcpg:packagingListUnit" />
                    <show id="bcpg:packagingListLossPerc" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:packagingListIsRecycle" />

                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:packagingListProduct" help-id="becpg.forms.help.packagingListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:packagingMaterial,bcpg:packagingKit</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListQty" help-id="becpg.forms.help.packagingListQty" set="2-col" />
                    <field id="bcpg:packagingListUnit" set="2-col">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListLossPerc" help-id="becpg.forms.help.packagingListLossPerc" set="2-col" />
                    <field id="bcpg:packagingListPkgLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,Primary|data.bcpg_packaginglistpkglevel.primary,Inner|data.bcpg_packaginglistpkglevel.inner,Secondary|data.bcpg_packaginglistpkglevel.secondary,Tertiary|data.bcpg_packaginglistpkglevel.tertiary
                            </control-param>
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListIsMaster" help-id="becpg.forms.help.packagingListIsMaster" set="2-col" />
                    <field id="bcpg:packagingListIsRecycle" help-id="becpg.forms.help.packagingListIsRecycle" set="2-col" />
                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:instruction" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="full-screen">
                <field-visibility>
                    <show id="bcpg:packagingListProduct" />
                    <show id="bcpg:packagingListQty" />
                    <show id="bcpg:packagingListUnit" />
                    <show id="bcpg:packagingListLossPerc" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:variantIds" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:packagingListProduct" help-id="becpg.forms.help.packagingListProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:packagingMaterial,bcpg:packagingKit</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListQty" help-id="becpg.forms.help.packagingListQty" />
                    <field id="bcpg:packagingListUnit">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListLossPerc" help-id="becpg.forms.help.packagingListLossPerc" />
                    <field id="bcpg:packagingListPkgLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,Primary|data.bcpg_packaginglistpkglevel.primary,Inner|data.bcpg_packaginglistpkglevel.inner,Secondary|data.bcpg_packaginglistpkglevel.secondary,Tertiary|data.bcpg_packaginglistpkglevel.tertiary
                            </control-param>
                            <control-param name="isStoreable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListIsMaster" help-id="becpg.forms.help.packagingListIsMaster" />
                    <field id="bcpg:variantIds">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="pack:labelingPosition" force="true" />
                    <show id="bcpg:packagingListProduct" />
                    <show id="bcpg:packagingListQty" />
                    <show id="bcpg:packagingListUnit" />
                    <show id="bcpg:packagingListLossPerc" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:packagingListIsRecycle" />
                    <show id="bcpg:dynamicCharactColumn1" force="true" />
                    <show id="bcpg:dynamicCharactColumn2" force="true" />
                    <show id="bcpg:dynamicCharactColumn3" force="true" />
                    <show id="bcpg:dynamicCharactColumn4" force="true" />
                    <show id="bcpg:dynamicCharactColumn5" force="true" />
                    <show id="bcpg:dynamicCharactColumn6" force="true" />
                    <show id="bcpg:dynamicCharactColumn7" force="true" />
                    <show id="bcpg:dynamicCharactColumn8" force="true" />
                    <show id="bcpg:dynamicCharactColumn9" force="true" />
                    <show id="bcpg:dynamicCharactColumn10" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="bcpg:instruction" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="pack:labelingPosition" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn5" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn6" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn7" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn8" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn9" read-only="true" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn10" read-only="true" label="hidden" />
                    <field id="bcpg:instruction" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:depthLevel" force="true" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:packagingListIsRecycle" />
                    <show id="entity_bcpg:packagingListProduct_bcpg:product" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:depthLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">0|,1|1,2|2,3|3,4|4,All|data.level.all
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListPkgLevel" set="2-col" />
                    <field id="bcpg:packagingListIsMaster" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListIsRecycle" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="entity_bcpg:packagingListProduct_bcpg:product" set="2-col" />
                </appearance>
            </form>

            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:packagingListProduct" />
                    <show id="bcpg:packagingListQty" />
                    <show id="bcpg:packagingListUnit" />
                    <show id="bcpg:packagingListLossPerc" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:packagingListIsRecycle" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <!-- bcpg:packagingList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:packagingList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:packagingListProduct" />

                    <show id="bcpg:packagingListQty" />
                    <show id="bcpg:packagingListUnit" />
                    <show id="bcpg:packagingListLossPerc" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:packagingListIsRecycle" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="pack:labelingPosition" />
                    <show id="pack:labelingType" />
                    <show id="pack:labelingLabelingTemplate" />
                    <show id="bcpg:instruction" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />

                    <field id="bcpg:packagingListProduct" help-id="becpg.forms.help.packagingListProduct" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:packagingMaterial,bcpg:packagingKit</control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListQty" help-id="becpg.forms.help.packagingListQty" set="2-col" />
                    <field id="bcpg:packagingListUnit" set="2-col" />
                    <field id="bcpg:packagingListLossPerc" help-id="becpg.forms.help.packagingListLossPerc" set="2-col" />
                    <field id="bcpg:packagingListPkgLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,Primary|data.bcpg_packaginglistpkglevel.primary,Inner|data.bcpg_packaginglistpkglevel.inner,Secondary|data.bcpg_packaginglistpkglevel.secondary,Tertiary|data.bcpg_packaginglistpkglevel.tertiary
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:packagingListIsMaster" help-id="becpg.forms.help.packagingListIsMaster" set="2-col" />
                    <field id="bcpg:packagingListIsRecycle" help-id="becpg.forms.help.packagingListIsRecycle" set="2-col" />
                    <field id="bcpg:variantIds" help-id="becpg.forms.help.variantIds" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/variantList
                            </control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" set="2-col-2">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="pack:labelingPosition" set="2-col-2" />
                    <field id="pack:labelingType" set="2-col-2" />
                    <field id="pack:labelingLabelingTemplate" set="1-col-2" />

                    <field id="bcpg:instruction" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="security">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="pack:labelingPosition" force="true" />
                    <show id="bcpg:packagingListProduct" />
                    <show id="bcpg:packagingListQty" />
                    <show id="bcpg:packagingListUnit" />
                    <show id="bcpg:packagingListLossPerc" />
                    <show id="bcpg:packagingListPkgLevel" />
                    <show id="bcpg:packagingListIsMaster" />
                    <show id="bcpg:packagingListIsRecycle" />
                    <show id="bcpg:dynamicCharactColumn1" force="true" />
                    <show id="bcpg:dynamicCharactColumn2" force="true" />
                    <show id="bcpg:dynamicCharactColumn3" force="true" />
                    <show id="bcpg:dynamicCharactColumn4" force="true" />
                    <show id="bcpg:dynamicCharactColumn5" force="true" />
                    <show id="bcpg:dynamicCharactColumn6" force="true" />
                    <show id="bcpg:dynamicCharactColumn7" force="true" />
                    <show id="bcpg:dynamicCharactColumn8" force="true" />
                    <show id="bcpg:dynamicCharactColumn9" force="true" />
                    <show id="bcpg:dynamicCharactColumn10" force="true" />
                    <show id="bcpg:instruction" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <!-- bcpg:allergenList type (creating nodes) -->
    <config evaluator="model-type" condition="bcpg:allergenList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListQtyPerc" />
                    <show id="bcpg:allergenListVoluntary" />
                    <!--  <show id="bcpg:allergenListDecisionTree" /> -->
                    <show id="bcpg:allergenListInVoluntary" />
                    <show id="bcpg:allergenListOnLine" />
                    <show id="bcpg:allergenListOnSite" />
                    <show id="bcpg:allergenListIsCleaned" />
                    <show id="bcpg:allergenListVolSources" />
                    <show id="bcpg:allergenListInVolSources" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:allergenListAllergen" help-id="becpg.forms.help.allergenListAllergen" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:allergenListQtyPerc" help-id="becpg.forms.help.allergenListQtyPerc" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListVoluntary" help-id="becpg.forms.help.allergenListVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/allergen-voluntary.ftl" />

                    </field>

                    <!--   <field id="bcpg:allergenListDecisionTree">
                        <control
                            template="/org/alfresco/components/form/controls/decision-tree.ftl">
                            <control-param name="prefix">allergenList</control-param>
                            <control-param name="data">
                                [{id:"q1",choices :
                                [{id : "yes" , cid : "q3" }, {id: "no" , cid : "q2"}, {id:"-", cid :
                                "q2"}]},
                                {id:"q2",choices :
                                [{id : "yes" , cid : "q3", comment : true}, {id:"no", cid : "r1"},
                                {id:"-", cid : "q3"}]},
                                {id:"q3",choices :
                                [{id : "yes" , cid : "q4"}, {id:"no", cid :"r1"}, {id:"-", cid :
                                "q4"}]},
                                {id:"q4",choices :
                                [{id : "yes", cid :"r1"}, {id:"no", cid:"r2"}, {id:"-"}]},
                                {id:"r1"}, {id:"r2"}
                                ]
                            </control-param>
                        </control>
                    </field> -->

                    <field id="bcpg:allergenListInVoluntary" help-id="becpg.forms.help.allergenListInVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListIsCleaned" help-id="becpg.forms.help.allergenListIsCleaned" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListOnLine" help-id="becpg.forms.help.allergenListOnLine" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListOnSite" help-id="becpg.forms.help.allergenListOnSite" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListVolSources" help-id="becpg.forms.help.allergenListVolSources" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/DataListCharact?className=bcpg:ingList&#38;attributeName=bcpg:ingListIng</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListInVolSources" help-id="becpg.forms.help.allergenListInVolSources" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:product,bcpg:ing&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create-productSpecification">
                <field-visibility>
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListQtyPerc" />
                    <show id="bcpg:allergenListVoluntary" />
                    <show id="bcpg:allergenListInVoluntary" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:allergenListAllergen" help-id="becpg.forms.help.allergenListAllergen" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:allergenListQtyPerc" help-id="becpg.forms.help.allergenListQtyPerc" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListVoluntary" help-id="becpg.forms.help.allergenListVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/allergen-voluntary.ftl" />

                    </field>
                    <field id="bcpg:allergenListInVoluntary" help-id="becpg.forms.help.allergenListInVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:regulatoryCountries" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                </appearance>
            </form>


            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListVoluntary" />
                    <show id="bcpg:allergenListInVoluntary" />
                    <show id="bcpg:allergenListVolSources" />
                    <show id="bcpg:allergenListInVolSources" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" force="true"/>
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListQtyPerc" />
                    <show id="bcpg:allergenListVoluntary" />
                    <show id="bcpg:allergenListInVoluntary" />
                    <!--  <show id="bcpg:allergenListDecisionTree" /> -->

                    <show id="bcpg:allergenListOnLine" />
                    <show id="bcpg:allergenListOnSite" />
                    <show id="bcpg:allergenListIsCleaned" />
                    <show id="bcpg:allergenListVolSources" />
                    <show id="bcpg:allergenListInVolSources" />
                    <show id="fm:commentCount" force="true" />
                    <show id="dataList_bcpg:reqCtrlList" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:allergenListDecisionTree" read-only="true" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                </appearance>
            </form>
            <form id="datagrid-productSpecification">
                <field-visibility>
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListQtyPerc" />
                    <show id="bcpg:allergenListVoluntary" />
                    <show id="bcpg:allergenListInVoluntary" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:allergenListVoluntary" />
                    <show id="bcpg:allergenListInVoluntary" />
                    <show id="bcpg:allergenListOnLine" />
                    <show id="bcpg:allergenListOnSite" />
                    <show id="bcpg:allergenListIsCleaned" />
                    <show id="entity_bcpg:allergenListAllergen_bcpg:product" for-mode="view" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:allergenListVoluntary">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListInVoluntary">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListIsCleaned">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListOnLine">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListOnSite">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:allergenList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:allergenList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListQtyPerc" />
                    <show id="bcpg:allergenListVoluntary" />
                    <!--  <show id="bcpg:allergenListDecisionTree" /> -->
                    <show id="bcpg:allergenListInVoluntary" />

                    <show id="bcpg:allergenListOnLine" />
                    <show id="bcpg:allergenListOnSite" />
                    <show id="bcpg:allergenListIsCleaned" />
                    <show id="bcpg:allergenListVolSources" />
                    <show id="bcpg:allergenListInVolSources" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:allergenListAllergen" help-id="becpg.forms.help.allergenListAllergen" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:allergenListQtyPerc" help-id="becpg.forms.help.allergenListQtyPerc" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListVoluntary" help-id="becpg.forms.help.allergenListVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/allergen-voluntary.ftl" />

                    </field>

                    <!-- <field id="bcpg:allergenListDecisionTree">
                        <control
                            template="/org/alfresco/components/form/controls/decision-tree.ftl">
                            <control-param name="prefix">allergenList</control-param>
                            <control-param name="data">
                                [{id:"q1",choices :
                                [{id : "yes" , cid : "q3" }, {id: "no" , cid : "q2"}, {id:"-", cid :
                                "q2"}]},
                                {id:"q2",choices :
                                [{id : "yes" , cid : "q3", comment : true}, {id:"no", cid : "r1"},
                                {id:"-", cid : "q3"}]},
                                {id:"q3",choices :
                                [{id : "yes" , cid : "q4"}, {id:"no", cid :"r1"}, {id:"-", cid :
                                "q4"}]},
                                {id:"q4",choices :
                                [{id : "yes", cid :"r1"}, {id:"no", cid:"r2"}, {id:"-"}]},
                                {id:"r1"}, {id:"r2"}
                                ]
                            </control-param>
                        </control>
                    </field>   -->

                    <field id="bcpg:allergenListInVoluntary" help-id="becpg.forms.help.allergenListInVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListIsCleaned" help-id="becpg.forms.help.allergenListIsCleaned" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListOnLine" help-id="becpg.forms.help.allergenListOnLine" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListOnSite" help-id="becpg.forms.help.allergenListOnSite" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:allergenListVolSources" help-id="becpg.forms.help.allergenListVolSources" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/DataListCharact?className=bcpg:ingList&#38;attributeName=bcpg:ingListIng</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListInVolSources" help-id="becpg.forms.help.allergenListInVolSources" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/cm:cmobject?classNames=bcpg:product,bcpg:ing&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="edit-productSpecification">
                <field-visibility>
                    <show id="bcpg:allergenListAllergen" />
                    <show id="bcpg:allergenListQtyPerc" />
                    <show id="bcpg:allergenListVoluntary" />
                    <show id="bcpg:allergenListInVoluntary" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <set id="1-col-1" />
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:allergenListAllergen" help-id="becpg.forms.help.allergenListAllergen" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:allergenListQtyPerc" label-id="becpg.forms.field.allergenListQtyPerc.threshold" help-id="becpg.forms.help.allergenListQtyPerc" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:allergenListVoluntary" help-id="becpg.forms.help.allergenListVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/allergen-voluntary.ftl" />

                    </field>

                    <field id="bcpg:allergenListInVoluntary" help-id="becpg.forms.help.allergenListInVoluntary" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                    <field id="bcpg:regulatoryCountries" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                </appearance>
            </form>
        </forms>
    </config>
    
    <!-- bcpg:costList type -->
    <config evaluator="model-type" condition="bcpg:costList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:costListCost" />
                    <show id="bcpg:costListValue" />
                    <show id="bcpg:costListUnit" />
                    <show id="bcpg:costListPreviousValue" />
                    <show id="bcpg:costListFutureValue" />
                    <show id="bcpg:parentLevel" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:costListComponent" />
                    <show id="bcpg:costListSimulatedValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:costListCost" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:costListValue" set="2-col" />
                    <field id="bcpg:costListUnit" set="2-col" />
                    <field id="bcpg:costListPreviousValue" set="2-col" />
                    <field id="bcpg:costListFutureValue" set="2-col" />
                    <field id="bcpg:parentLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:costList&#38;attributeName=bcpg:costListCost</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plants" set="2-col" />
                    <field id="bcpg:costListComponent" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial,bcpg:packagingMaterial</control-param>
                        </control>
                    </field>
                    <field id="bcpg:costListSimulatedValue" set="2-col" />
                    <field id="bcpg:isManualListItem" set="2-col" />
                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:costListCost" />
                    <show id="bcpg:costListValue" />
                    <show id="bcpg:costListUnit" />
                    <show id="bcpg:costListPreviousValue" />
                    <show id="bcpg:costListFutureValue" />
                    <show id="bcpg:costListFutureValue2" />
                    <show id="bcpg:costListFutureValue3" />
                    <show id="bcpg:costListFutureValue4" />
                    <show id="bcpg:costListValuePerProduct" />
                    <show id="bcpg:variantColumn1" force="true" />
                    <show id="bcpg:variantColumn2" force="true" />
                    <show id="bcpg:variantColumn3" force="true" />
                    <show id="bcpg:variantColumn4" force="true" />
                    <show id="bcpg:variantColumn5" force="true" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:costListComponent" />
                    <show id="bcpg:costListSimulatedValue" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:costListIsFormulated" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                    <show id="dataList_bcpg:reqCtrlList" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="bcpg:variantColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn5" read-only="true" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:costListIsFormulated" label="hidden" />
                    <field id="bcpg:costListValuePerProduct" read-only="true" />
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                </appearance>
            </form>
            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:costListCost" />
                    <show id="bcpg:costListValue" />
                    <show id="bcpg:costListUnit" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:costListIsFormulated" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:costListIsFormulated" label="hidden" />
                    <field id="bcpg:costListValuePerProduct" read-only="true" />
                </appearance>
            </form>
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:costListCost" />
                    <show id="bcpg:costListValue" />
                    <show id="bcpg:costListUnit" />
                    <show id="bcpg:costListPreviousValue" />
                    <show id="bcpg:costListFutureValue" />
                    <show id="bcpg:costListValuePerProduct" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:costListComponent" />
                    <show id="bcpg:costListSimulatedValue" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:costListIsFormulated" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:costListIsFormulated" label="hidden" />
                    <field id="bcpg:costListValuePerProduct" read-only="true" />
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:costListCost" for-mode="create" />
                    <show id="entity_bcpg:costListCost_bcpg:product" for-mode="view" />
                    <show id="bcpg:costListValue" />
                    <show id="bcpg:plants" for-mode="create" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:costListCost">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:costListValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

        </forms>
    </config>
    <!-- bcpg:costList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:costList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:costListCost" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:costListValue" />
                    <show id="bcpg:costListPreviousValue" />
                    <show id="bcpg:costListFutureValue" />
                    <show id="bcpg:costListUnit" />
                    <show id="bcpg:parentLevel" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:costListComponent" />
                    <show id="bcpg:costListSimulatedValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:costListCost" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:costListValue" set="2-col" />
                    <field id="bcpg:costListUnit" set="2-col" />
                    <field id="bcpg:costListPreviousValue" set="2-col" />
                    <field id="bcpg:costListFutureValue" set="2-col" />
                    <field id="bcpg:parentLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:costList&#38;attributeName=bcpg:costListCost</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plants" set="2-col" />
                    <field id="bcpg:costListComponent" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial,bcpg:packagingMaterial</control-param>
                        </control>
                    </field>
                    <field id="bcpg:costListSimulatedValue" set="2-col" />
                    <field id="bcpg:isManualListItem" set="2-col" />
                </appearance>
            </form>
        </forms>
    </config>
    
    <!-- bcpg:lcaList type -->
    <config evaluator="model-type" condition="bcpg:lcaList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lcaListLca" />
                    <show id="bcpg:lcaListValue" />
                    <show id="bcpg:lcaListUnit" />
                    <show id="bcpg:lcaListPreviousValue" />
                    <show id="bcpg:lcaListFutureValue" />
                    <show id="bcpg:parentLevel" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:lcaListComponent" />
                    <show id="bcpg:lcaListSimulatedValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:lcaListMethod" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:lcaListLca" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:lcaListValue" set="2-col" />
                    <field id="bcpg:lcaListUnit" set="2-col" />
                    <field id="bcpg:lcaListPreviousValue" set="2-col" />
                    <field id="bcpg:lcaListFutureValue" set="2-col" />
                    <field id="bcpg:parentLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:lcaList&#38;attributeName=bcpg:lcaListLca</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plants" set="2-col" />
                    <field id="bcpg:lcaListComponent" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial,bcpg:packagingMaterial</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lcaListSimulatedValue" set="2-col" />
                    <field id="bcpg:isManualListItem" set="2-col" />
                    <field id="bcpg:lcaListMethod" set="2-col" />
                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:lcaListLca" />
                    <show id="bcpg:lcaListValue" />
                    <show id="bcpg:lcaListUnit" />
                    <show id="bcpg:lcaListPreviousValue" />
                    <show id="bcpg:lcaListFutureValue" />
                    <show id="bcpg:lcaListValuePerProduct" />
                    <show id="bcpg:variantColumn1" force="true" />
                    <show id="bcpg:variantColumn2" force="true" />
                    <show id="bcpg:variantColumn3" force="true" />
                    <show id="bcpg:variantColumn4" force="true" />
                    <show id="bcpg:variantColumn5" force="true" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:lcaListMethod" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:lcaListComponent" />
                    <show id="bcpg:lcaListSimulatedValue" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:lcaListIsFormulated" />
                    <show id="bcpg:lcaListFormulaErrorLog" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                    <show id="dataList_bcpg:reqCtrlList" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="bcpg:variantColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn5" read-only="true" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:lcaListIsFormulated" label="hidden" />
                    <field id="bcpg:lcaListFormulaErrorLog" label="hidden" />
                    <field id="bcpg:lcaListValuePerProduct" read-only="true" />
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                </appearance>
            </form>
            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:lcaListLca" />
                    <show id="bcpg:lcaListValue" />
                    <show id="bcpg:lcaListUnit" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:lcaListIsFormulated" />
                    <show id="bcpg:lcaListFormulaErrorLog" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:lcaListIsFormulated" label="hidden" />
                    <field id="bcpg:lcaListFormulaErrorLog" label="hidden" />
                    <field id="bcpg:lcaListValuePerProduct" read-only="true" />
                </appearance>
            </form>
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:lcaListLca" />
                    <show id="bcpg:lcaListValue" />
                    <show id="bcpg:lcaListUnit" />
                    <show id="bcpg:lcaListPreviousValue" />
                    <show id="bcpg:lcaListFutureValue" />
                    <show id="bcpg:lcaListValuePerProduct" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:lcaListComponent" />
                    <show id="bcpg:lcaListSimulatedValue" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:lcaListIsFormulated" />
                    <show id="bcpg:lcaListFormulaErrorLog" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:lcaListIsFormulated" label="hidden" />
                    <field id="bcpg:lcaListFormulaErrorLog" label="hidden" />
                    <field id="bcpg:lcaListValuePerProduct" read-only="true" />
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:lcaListLca" for-mode="create" />
                    <show id="bcpg:lcaListValue" for-mode="create" />
                    <show id="entity_bcpg:lcaListLca_bcpg:product" for-mode="view" />
                    <show id="bcpg:plants" for-mode="create" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lcaListLca">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:lcaListValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

        </forms>
    </config>
    <!-- bcpg:lcaList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:lcaList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lcaListLca" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:lcaListValue" />
                    <show id="bcpg:lcaListPreviousValue" />
                    <show id="bcpg:lcaListFutureValue" />
                    <show id="bcpg:lcaListUnit" />
                    <show id="bcpg:parentLevel" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:lcaListComponent" />
                    <show id="bcpg:lcaListSimulatedValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:lcaListLca" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:lcaListValue" set="2-col" />
                    <field id="bcpg:lcaListUnit" set="2-col" />
                    <field id="bcpg:lcaListPreviousValue" set="2-col" />
                    <field id="bcpg:lcaListFutureValue" set="2-col" />
                    <field id="bcpg:parentLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:lcaList&#38;attributeName=bcpg:lcaListLca</control-param>
                        </control>
                    </field>
                    <field id="bcpg:plants" set="2-col" />
                    <field id="bcpg:lcaListComponent" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product?classNames=bcpg:rawMaterial,bcpg:packagingMaterial</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lcaListSimulatedValue" set="2-col" />
                    <field id="bcpg:isManualListItem" set="2-col" />
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:priceList type -->
    <config evaluator="model-type" condition="bcpg:priceList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:priceListCost" />
                    <show id="bcpg:priceListPrefRank" />
                    <show id="bcpg:priceListValue" />
                    <show id="bcpg:priceListUnit" />
                    <show id="bcpg:priceListPurchaseQty" />
                    <show id="bcpg:priceListPurchaseUnit" />
                    <show id="bcpg:suppliers" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:priceListGeoOrigins" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:priceListCost">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:priceListGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>


                    <field id="bcpg:startEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:priceListCost" />
                    <show id="bcpg:priceListPrefRank" />
                    <show id="bcpg:priceListValue" />
                    <show id="bcpg:priceListUnit" />
                    <show id="bcpg:priceListPurchaseQty" />
                    <show id="bcpg:priceListPurchaseUnit" />
                    <show id="bcpg:suppliers" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:priceListGeoOrigins" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:priceListCost">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:priceListGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:priceListUnit">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:priceListCost" />
                    <show id="bcpg:priceListPrefRank" />
                    <show id="bcpg:priceListValue" />
                    <show id="bcpg:priceListUnit" />
                    <show id="bcpg:priceListPurchaseQty" />
                    <show id="bcpg:priceListPurchaseUnit" />
                    <show id="bcpg:suppliers" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:priceListGeoOrigins" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:priceList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:priceList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:priceListCost" />
                    <show id="bcpg:priceListPrefRank" />
                    <show id="bcpg:priceListValue" />
                    <show id="bcpg:priceListUnit" />
                    <show id="bcpg:priceListPurchaseQty" />
                    <show id="bcpg:priceListPurchaseUnit" />
                    <show id="bcpg:suppliers" force="true" />
                    <show id="bcpg:plants" force="true" />
                    <show id="bcpg:priceListGeoOrigins" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:priceListCost">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:priceListGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:startEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:ingLabelingList type -->
    <config evaluator="model-type" condition="bcpg:ingLabelingList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:illGrp" />
                    <show id="bcpg:illValue" />
                    <show id="bcpg:illManualValue" />
                    <show id="rep:reportKinds" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:illGrp" read-only="true" />
                    <field id="bcpg:illValue" read-only="true">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">5</control-param>
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:illManualValue">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="editorAppearance">custom</control-param>
                            <control-param name="editorParameters">
                                toolbar: "bold italic underline",
                                contextmenu: false,
                                menu: {},
                                formats: {
                                bold: { inline: "b" },
                                underline: {
                                inline: "u", exact: true },
                                italic: { inline: "i" }
                                },
                                extended_valid_elements: "u,b,i",
                                invalid_elements: "em strong",
                                entity_encoding: "raw",
                                forced_root_blocks: false,
                                force_br_newlines: true,
                                forced_root_block: '',
                                force_p_newlines: false,
                                newline_behavior: "linebreak",
                                paste_as_text:
                                true
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:illGrp" />
                    <show id="bcpg:lrLocales" force="true" />
                    <show id="bcpg:illValue" />
                    <show id="bcpg:illManualValue" />
                    <show id="fm:commentCount" force="true" />
                    <show id="rep:reportKinds" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:lrLocales" label="hidden" read-only="true" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:illValue" read-only="true" />
                    <field id="bcpg:illManualValue" read-only="true" />
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:illGrp" />
                    <show id="bcpg:lrLocales" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:illGrp">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />

                    </field>
                    <field id="bcpg:lrLocales">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
                    </field>

                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:ingLabelingList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:ingLabelingList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:illGrp" />
                    <show id="bcpg:illValue" />
                    <show id="bcpg:illManualValue" />
                    <show id="rep:reportKinds" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:illGrp" read-only="true" />
                    <field id="bcpg:illValue" read-only="true">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">5</control-param>
                            <control-param name="maxLength">10000</control-param>
                        </control>
                    </field>
                    <field id="bcpg:illManualValue">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="editorAppearance">custom</control-param>
                            <control-param name="editorParameters">
                                toolbar: "bold italic underline",
                                contextmenu: false,
                                menu: {},
                                formats: {
                                bold: { inline: "b" },
                                underline: {
                                inline: "u", exact: true },
                                italic: { inline: "i" }
                                },
                                extended_valid_elements: "u,b,i",
                                invalid_elements: "em strong",
                                entity_encoding: "raw",
                                forced_root_blocks: false,
                                force_br_newlines: true,
                                forced_root_block: '',
                                force_p_newlines: false,
                                newline_behavior: "linebreak",
                                paste_as_text:
                                true
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:labelingRuleList type -->
    <config evaluator="model-type" condition="bcpg:labelingRuleList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lrType" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:lrLabel" />
                    <show id="bcpg:lrFormula" />
                    <show id="bcpg:lrComponents" />
                    <show id="bcpg:lrReplacements" />
                    <show id="bcpg:lrGroup" />
                    <show id="bcpg:lrLocales" force="true" />
                    <show id="bcpg:lrIsActive" />
                    <show id="bcpg:lrSyncState" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:lrType">
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.hideIf"
                                event='keyup,change@[
                                {"prop":"prop_bcpg_lrLabel", "condition" : "Format|ForcePercentage|DetailComponents|DoNotDetailsComponents|Locale|Prefs|Omit|DoNotDeclare|ShowPerc|ShowGeo|ShowBio"},
                                {"prop":"assoc_bcpg_lrComponents", "condition" : "Render|Locale|Prefs"},
                                {"prop":"assoc_bcpg_lrReplacements", "condition" : "Format|ForcePercentage|FootNote|Render|DetailComponents|Declare|DeclareThreshold|DoNotDetailsAtEnd|DoNotDetailsComponents|Locale|Prefs|Omit|DoNotDeclare|ShowPerc|ShowGeo|ShowBio"},
                                {"prop":"prop_bcpg_lrLocales", "condition" : "Prefs|Group|Detail|DoNotDetails|DetailComponents|DoNotDetailsComponents"}
                                ]' />
                        </constraint-handlers>
                    </field>
                    <field id="cm:name" />
                    <field id="cm:title" />
                    <field id="bcpg:lrLabel" />
                    <field id="bcpg:lrGroup" set="2-col" />
                    <field id="bcpg:lrIsActive" set="1-col-2" />
                    <field id="bcpg:lrSyncState" set="1-col-2" />
                    <field id="bcpg:lrFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrComponents">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/labeling/associations/cm:cmobject?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct,bcpg:localSemiFinishedProduct,bcpg:rawMaterial,bcpg:ing%5E90,bcpg:ingTypeItem%5E100&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrReplacements">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/labeling/associations/cm:cmobject?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct,bcpg:localSemiFinishedProduct,bcpg:rawMaterial,bcpg:ing%5E90,bcpg:ingTypeItem%5E100&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                            <control-param name="parentAssoc">bcpg_lrComponents</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrLocales" set="2-col">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:lrIsActive" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:lrComponents" />
                    <show id="bcpg:lrReplacements" />
                    <show id="bcpg:lrType" />
                    <show id="bcpg:lrGroup" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:lrIsActive" label="hidden" />
                    <field id="cm:title" label="hidden" />
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:lrType" />
                    <show id="bcpg:lrIsActive" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lrType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrIsActive">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

        </forms>
    </config>
    <!-- bcpg:labelingRuleList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:labelingRuleList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lrType" />
                    <show id="cm:name" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:lrLabel" />
                    <show id="bcpg:lrFormula" />
                    <show id="bcpg:lrComponents" />
                    <show id="bcpg:lrReplacements" />
                    <show id="bcpg:lrGroup" />
                    <show id="bcpg:lrLocales" force="true" />
                    <show id="bcpg:lrIsActive" />
                    <show id="bcpg:lrSyncState" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />
                    <field id="bcpg:lrType">
                        <constraint-handlers>
                            <constraint type="MANDATORY" validation-handler="beCPG.forms.validation.hideIf"
                                event='keyup,change@[
                                {"prop":"prop_bcpg_lrLabel", "condition" : "Format|ForcePercentage|DetailComponents|DoNotDetailsComponents|Locale|Prefs|Omit|DoNotDeclare|ShowPerc|ShowGeo|ShowBio"},
                                {"prop":"assoc_bcpg_lrComponents", "condition" : "Render|Locale|Prefs"},
                                {"prop":"assoc_bcpg_lrReplacements", "condition" : "Format|ForcePercentage|FootNote|Render|DetailComponents|Declare|DeclareThreshold|DoNotDetailsAtEnd|DoNotDetailsComponents|Locale|Prefs|Omit|DoNotDeclare|ShowPerc|ShowGeo|ShowBio"},
                                {"prop":"prop_bcpg_lrLocales", "condition" : "Prefs|Group|Detail|DoNotDetails|DetailComponents|DoNotDetailsComponents"}
                                ]' />
                        </constraint-handlers>
                    </field>
                    <field id="cm:name" />
                    <field id="cm:title" />
                    <field id="bcpg:lrLabel" />
                    <field id="bcpg:lrGroup" set="2-col" />
                    <field id="bcpg:lrIsActive" set="1-col-2" />
                    <field id="bcpg:lrSyncState" set="1-col-2" />
                    <field id="bcpg:lrFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrComponents">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/labeling/associations/cm:cmobject?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct,bcpg:localSemiFinishedProduct,bcpg:rawMaterial,bcpg:ing%5E90,bcpg:ingTypeItem%5E100&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrReplacements">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/labeling/associations/cm:cmobject?classNames=bcpg:finishedProduct,bcpg:semiFinishedProduct,bcpg:localSemiFinishedProduct,bcpg:rawMaterial,bcpg:ing%5E90,bcpg:ingTypeItem%5E100&#38;excludeClassNames=bcpg:entityTplAspect
                            </control-param>
                            <control-param name="parentAssoc">bcpg_lrComponents</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lrLocales" set="2-col">
                        <control template="/org/alfresco/components/form/controls/mtlangue.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:ingList type -->
    <config evaluator="model-type" condition="bcpg:ingList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:ingListIng" />

                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPerc1" force="true" />
                    <show id="bcpg:ingListQtyPerc2" force="true" />
                    <show id="bcpg:ingListQtyPerc3" force="true" />
                    <show id="bcpg:ingListQtyPerc4" force="true" />
                    <show id="bcpg:ingListQtyPerc5" force="true" />
                    <show id="bcpg:ingListQtyMini" />
                    <show id="bcpg:ingListQtyMaxi" />

                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:ingListIngTypes" />
                    <show id="bcpg:ingListClaims" />
                    <show id="bcpg:ingListDeclType" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="bcpg:ingListComments" />
                    <show id="bcpg:parentLevel" />

                </field-visibility>

                <appearance>

                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />

                    <field id="bcpg:ingListIng" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing?extra.searchTemplate=%25(bcpg%3AcharactName%20bcpg%3AerpCode%20bcpg%3AlegalName%20bcpg%3AingCEECode%20bcpg%3AcasNumber%20bcpg%3AecNumber%20bcpg%3AceNumber%20bcpg%3AfdaNumber%20bcpg%3AfemaNumber%20bcpg%3AflNumber)&amp;extra.characNameFormat=%7Bml_bcpg%3AcharactName%7D%20-%20%7Bbcpg%3AcasNumber%7D&amp;excludeProps=bcpg:excludeFromSearch%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyPerc" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyPerc1" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc2" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc3" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc4" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc5" set="2-col-1" />


                    <field id="bcpg:ingListQtyMini" set="2-col-1" />
                    <field id="bcpg:ingListQtyMaxi" set="2-col-1" />

                    <field id="bcpg:ingListGeoOrigin" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingListGeoTransfo" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingListBioOrigin" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                    <field id="bcpg:ingListIngTypes" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListClaims" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:labelClaim?andProps=bcpg:labelClaimType%7CCertification
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListComments" set="2-col-1" />

                    <field id="bcpg:ingListIsIonized" set="2-col-1" />
                    <field id="bcpg:ingListIsGMO" set="2-col-1" />
                    <field id="bcpg:ingListIsProcessingAid" set="2-col-1" />
                    <field id="bcpg:ingListIsSupport" set="2-col-1" />


                    <field id="bcpg:parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:ingList&#38;attributeName=bcpg:ingListIng&#38;extra.showFullPath=true
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListDeclType" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                            <control-param name="options">Declare|data.declarationtype.declare,DoNotDetails|data.declarationtype.donotdetails,Detail|data.declarationtype.detail,Omit|data.declarationtype.omit,DoNotDeclare|data.declarationtype.donotdeclare
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:linkedSearchAssociation" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing?extra.getByAssoc=bcpg:linkedSearchAssociation
                            </control-param>
                            <control-param name="parentAssoc">bcpg_ingListIng</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:ingListIng" />
                    <show id="bcpg:ingListVolumeQtyPerc" />
                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPercWithYield" />
                    <show id="bcpg:ingListQtyPercWithSecondaryYield" />
                    <show id="bcpg:ingListQtyPerc1" />
                    <show id="bcpg:ingListQtyPerc2" />
                    <show id="bcpg:ingListQtyPerc3" />
                    <show id="bcpg:ingListQtyPerc4" />
                    <show id="bcpg:ingListQtyPerc5" />
                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:ingListClaims" />
                    <show id="bcpg:ingListComments" />
                    <show id="bcpg:linkedSearchAssociation" />
                    <show id="bcpg:ingListDeclType" />
                    <show id="dataList_bcpg:reqCtrlList" />
                    <show id="bcpg:ingListIngTypes" />
                    <show id="entity_bcpg:ingListIng_bcpg:ing_asColumn" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:ingListIng" help="{&quot;width&quot;:200}" />
                    <field id="bcpg:ingListVolumeQtyPerc" read-only="true" label="hidden" />
                    <field id="bcpg:ingListQtyPercWithYield" read-only="true" />
                    <field id="bcpg:ingListQtyPercWithSecondaryYield" read-only="true" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                    <field id="bcpg:ingListIngTypes" />
                    <field id="bcpg:ingListDeclType" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            
            <form id="security" >
                 <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:ingListIng" />
                    <show id="bcpg:ingListVolumeQtyPerc" />
                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPercWithYield" />
                    <show id="bcpg:ingListQtyPercWithSecondaryYield" />
                    <show id="bcpg:ingListQtyPerc1" />
                    <show id="bcpg:ingListQtyPerc2" />
                    <show id="bcpg:ingListQtyPerc3" />
                    <show id="bcpg:ingListQtyPerc4" />
                    <show id="bcpg:ingListQtyPerc5" />
                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:ingListClaims" />
                    <show id="bcpg:ingListComments" />
                    <show id="bcpg:linkedSearchAssociation" />
                 </field-visibility>
            </form>
            
            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:ingListIng" />
                    <show id="bcpg:ingListVolumeQtyPerc" />
                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPercWithYield" />
                    <show id="bcpg:ingListQtyPercWithSecondaryYield" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:ingListVolumeQtyPerc" read-only="true" label="hidden" />
                    <field id="bcpg:ingListQtyPercWithYield" read-only="true" />
                    <field id="bcpg:ingListQtyPercWithSecondaryYield" read-only="true" />
                    <field id="bcpg:depthLevel" label="hidden" />
                </appearance>
            </form>

            <form id="export">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:ingListIng" />
                    <show id="bcpg:ingListVolumeQtyPerc" />
                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPercWithYield" />
                    <show id="bcpg:ingListQtyPercWithSecondaryYield" />
                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:ingListClaims" />
                    <show id="bcpg:ingListComments" />
                    <show id="entity_bcpg:ingListIng_bcpg:ing_asColumn" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:ingListVolumeQtyPerc" read-only="true" label="hidden" />
                    <field id="bcpg:ingListQtyPercWithYield" read-only="true" />
                    <field id="bcpg:ingListQtyPercWithSecondaryYield" read-only="true" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>

            <form id="datagrid-rawMaterial">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:ingListIng" />
                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPerc1" />
                    <show id="bcpg:ingListQtyPerc2" />
                    <show id="bcpg:ingListQtyPerc3" />
                    <show id="bcpg:ingListQtyPerc4" />
                    <show id="bcpg:ingListQtyPerc5" />
                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:ingListClaims" />
                    <show id="bcpg:ingListComments" />
                    <show id="bcpg:ingListDeclType" />  
                    <show id="bcpg:ingListIngTypes" />
                    <show id="entity_bcpg:ingListIng_bcpg:ing_asColumn" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:reconstitutionRate" />
                    <show id="bcpg:reconstitutionPriority" />
                    <show id="bcpg:diluentRef" />
                    <show id="bcpg:targetReconstitutionRef" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                     <field id="bcpg:ingListDeclType" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:diluentRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing</control-param>
                        </control>
                    </field>
                    <field id="bcpg:targetReconstitutionRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:ingListIng" />
                    <show id="entity_bcpg:ingListIng_bcpg:ing@filter-ingList" force="true" />
                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPercWithYield" />
                    <show id="bcpg:ingListQtyMini" />
                    <show id="bcpg:ingListQtyMaxi" />
                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />
                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="2-col-2" template="/org/alfresco/components/form/2-column-set.ftl" />

                    <field id="bcpg:depthLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">0|,1|1,2|2,3|3,4|4,All|data.level.all
                            </control-param>
                        </control>
                    </field>

                    <field id="entity_bcpg:ingListIng_bcpg:ing@filter-ingList" set="2-col" />
                    <field id="bcpg:ingListIng" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing?extra.searchTemplate=%25(bcpg%3AcharactName%20bcpg%3AerpCode%20bcpg%3AlegalName%20bcpg%3AingCEECode%20bcpg%3AcasNumber%20bcpg%3AecNumber%20bcpg%3AceNumber%20bcpg%3AfdaNumber%20bcpg%3AfemaNumber%20bcpg%3AflNumber)&amp;excludeProps=bcpg:excludeFromSearch%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyPerc" set="2-col">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyPercWithYield" set="2-col">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyMini" set="2-col">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyMaxi" set="2-col">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl" />

                    </field>

                    <field id="bcpg:ingListIsGMO" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListIsIonized" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListIsProcessingAid" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListIsSupport" set="2-col">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListGeoOrigin" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingListGeoTransfo" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingListBioOrigin" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>


                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:ingList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:ingList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:ingListIng" />

                    <show id="bcpg:ingListQtyPerc" />
                    <show id="bcpg:ingListQtyPerc1" force="true" />
                    <show id="bcpg:ingListQtyPerc2" force="true" />
                    <show id="bcpg:ingListQtyPerc3" force="true" />
                    <show id="bcpg:ingListQtyPerc4" force="true" />
                    <show id="bcpg:ingListQtyPerc5" force="true" />
                    <show id="bcpg:ingListQtyMini" />
                    <show id="bcpg:ingListQtyMaxi" />
                    <show id="bcpg:ingListIsGMO" />
                    <show id="bcpg:ingListIsIonized" />
                    <show id="bcpg:ingListIsProcessingAid" />
                    <show id="bcpg:ingListIsSupport" />

                    <show id="bcpg:ingListGeoOrigin" />
                    <show id="bcpg:ingListGeoTransfo" />
                    <show id="bcpg:ingListBioOrigin" />
                    <show id="bcpg:ingListIngTypes" />
                    <show id="bcpg:ingListClaims" />

                    <show id="bcpg:ingListComments" />

                    <show id="bcpg:reconstitutionRate" force="false" />
                    <show id="bcpg:reconstitutionPriority" force="false" />
                    <show id="bcpg:diluentRef" force="false" />
                    <show id="bcpg:targetReconstitutionRef" force="false" />

                    <show id="bcpg:ingListDeclType" />
                    <show id="bcpg:linkedSearchAssociation" force="true" />
                    <show id="bcpg:parentLevel" />

                </field-visibility>

                <appearance>

                    <set id="1-col-1" />
                    <set id="2-col-1" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <set id="1-col-2" />

                    <field id="bcpg:ingListIng" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing?extra.searchTemplate=%25(bcpg%3AcharactName%20bcpg%3AerpCode%20bcpg%3AlegalName%20bcpg%3AingCEECode%20bcpg%3AcasNumber%20bcpg%3AecNumber%20bcpg%3AceNumber%20bcpg%3AfdaNumber%20bcpg%3AfemaNumber%20bcpg%3AflNumber)&amp;extra.characNameFormat=%7Bml_bcpg%3AcharactName%7D%20-%20%7Bbcpg%3AcasNumber%7D
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:ingListQtyPerc" set="1-col-1">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListQtyPerc1" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc2" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc3" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc4" set="2-col-1" />
                    <field id="bcpg:ingListQtyPerc5" set="2-col-1" />
                    <field id="bcpg:ingListQtyMini" set="2-col-1" />
                    <field id="bcpg:ingListQtyMaxi" set="2-col-1" />

                    <field id="bcpg:ingListGeoOrigin" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingListGeoTransfo" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:ingListBioOrigin" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                    <field id="bcpg:ingListIngTypes" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ingTypeItem
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListClaims" set="2-col-1">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:labelClaim?andProps=bcpg:labelClaimType%7CCertification
                            </control-param>
                        </control>
                    </field>


                    <field id="bcpg:ingListComments" set="2-col-1" />

                    <field id="bcpg:ingListIsProcessingAid" set="2-col-1" />
                    <field id="bcpg:ingListIsSupport" set="2-col-1" />
                    <field id="bcpg:ingListIsGMO" set="2-col-1" />
                    <field id="bcpg:ingListIsIonized" set="2-col-1" />

                    <field id="bcpg:parentLevel" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:ingList&#38;attributeName=bcpg:ingListIng&#38;extra.showFullPath=true
                            </control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>

                    <field id="bcpg:ingListDeclType" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isStoreable">true</control-param>
                            <control-param name="options">Declare|data.declarationtype.declare,DoNotDetails|data.declarationtype.donotdetails,Detail|data.declarationtype.detail,Omit|data.declarationtype.omit,DoNotDeclare|data.declarationtype.donotdeclare
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:linkedSearchAssociation" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing?extra.getByAssoc=bcpg:linkedSearchAssociation
                            </control-param>
                            <control-param name="parentAssoc">bcpg_ingListIng</control-param>
                        </control>
                    </field>
                    
                    <field id="bcpg:diluentRef" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing</control-param>
                        </control>
                    </field>
                    <field id="bcpg:targetReconstitutionRef" set="1-col-2">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:toxList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:toxListTox" />
                    <show id="bcpg:toxListValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:toxListTox">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:toxListTox" />
                    <show id="bcpg:toxListValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:toxListTox">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:toxListValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isManualListItem">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:toxList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:toxListTox" />
                    <show id="bcpg:toxListValue" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:toxListTox">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>



    <!-- bcpg:microbioList type -->
    <config evaluator="model-type" condition="bcpg:microbioList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:mblMicrobio" />
                    <show id="bcpg:mblValue" />
                    <show id="bcpg:mblUnit" />
                    <show id="bcpg:mblMaxi" />
                    <show id="bcpg:mblTextCriteria" />
                    <show id="bcpg:mblControlStep" />
                    <show id="bcpg:mblMethod" />
                    <show id="rep:reportKinds" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:mblMicrobio">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/microbio</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblTextCriteria">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:mblMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>

                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:mblMicrobio" />
                    <show id="bcpg:mblValue" />
                    <show id="bcpg:mblUnit" />
                    <show id="bcpg:mblType" />
                    <show id="bcpg:mblMaxi" />
                    <show id="bcpg:mblTextCriteria" />
                    <show id="bcpg:mblControlStep" />
                    <show id="bcpg:mblMethod" />
                    <show id="rep:reportKinds" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:mblType" read-only="true" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:mblMicrobio" />
                    <show id="bcpg:mblValue" />
                    <show id="bcpg:mblMaxi" />
                    <show id="bcpg:mblType" />
                    <show id="bcpg:mblMaxi" />
                    <show id="bcpg:mblControlStep" />
                    <show id="bcpg:mblMethod" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:mblMicrobio">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/microbio</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblType">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblControlStep">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblMaxi">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:microbioList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:microbioList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:mblMicrobio" />
                    <show id="bcpg:mblValue" />
                    <show id="bcpg:mblUnit" />
                    <show id="bcpg:mblMaxi" />
                    <show id="bcpg:mblTextCriteria" />
                    <show id="bcpg:mblControlStep" />
                    <show id="bcpg:mblMethod" />
                    <show id="rep:reportKinds" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:mblMicrobio">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/microbio</control-param>
                        </control>
                    </field>
                    <field id="bcpg:mblTextCriteria">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:mblMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:nutList type -->
    <config evaluator="model-type" condition="bcpg:nutList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>

                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListValuePrepared" force="true" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:nutListLossPerc" />
                    <show id="bcpg:nutListMethod" />
                    <show id="bcpg:nutListMeasurementPrecision" />

                    <show id="rep:reportKinds" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:nutListNut">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/nut</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListValue">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">-</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListValuePrepared">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">-</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListMini" set="2-col" />
                    <field id="bcpg:nutListMaxi" set="2-col" />
                    <field id="bcpg:nutListLossPerc" set="2-col" />
                    <field id="bcpg:nutListMethod" set="2-col" />
                    <field id="bcpg:nutListMeasurementPrecision" set="2-col" />
                    <field id="bcpg:parentLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:nutList&#38;attributeName=bcpg:nutListNut</control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>
                    <field id="rep:reportKinds" set="2-col" />
                </appearance>
            </form>
            <form id="export">
                <field-visibility>
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListFormulatedValue" />
                    <show id="bcpg:nutListUnit" />
                    <show id="bcpg:nutListValuePrepared" force="true" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListFormulatedMini" />
                    <show id="bcpg:nutListFormulatedMaxi" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:nutListLossPerc" />
                    <show id="bcpg:nutListMethod" />
                    <show id="bcpg:nutListMeasurementPrecision" />
                    <show id="rep:reportKinds" />
                </field-visibility>
            </form>
            <form id="create">
                <field-visibility>
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListValuePrepared" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListLossPerc" />
                    <show id="bcpg:nutListMethod" />
                    <show id="bcpg:nutListMeasurementPrecision" />
                    <show id="bcpg:parentLevel" />
                    <show id="rep:reportKinds" force="true" />
                    <show id="bcpg:glopTarget" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:nutListNut">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/nut</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListValue">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">-</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:nutList&#38;attributeName=bcpg:nutListNut
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListRequirementType" force="true" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:nutListNut">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/nut</control-param>
                        </control>
                    </field>

                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListFormulatedValue" />
                    <show id="bcpg:nutListUnit" />
                    <show id="bcpg:nutListValuePrepared" />
                    <show id="bcpg:nutListFormulatedValuePrepared" force="true" />
                    <show id="bcpg:nutListUnitPrepared" force="true" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListFormulatedMini" />
                    <show id="bcpg:nutListFormulatedMaxi" />
                    <show id="bcpg:nutListReductionValue" />
                    <show id="bcpg:nutListReductionFormulatedValue" force="true" />
                    <show id="bcpg:nutListReferenceValue" />
                    <show id="bcpg:nutListValuePerServing" force="true" />
                    <show id="bcpg:nutListFormulatedValuePerServing" force="true" />
                    <show id="bcpg:variantColumn1" force="true" />
                    <show id="bcpg:variantColumn2" force="true" />
                    <show id="bcpg:variantColumn3" force="true" />
                    <show id="bcpg:variantColumn4" force="true" />
                    <show id="bcpg:variantColumn5" force="true" />
                    <show id="bcpg:nutListRoundedValue" />
                    <show id="bcpg:nutListRoundedValuePrepared" />
                    <show id="bcpg:nutListGDAPerc" force="true" />
                    <show id="bcpg:nutListLossPerc" />
                    <show id="bcpg:nutListMethod" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:nutListIsFormulated" />
                    <show id="bcpg:nutListFormulaErrorLog" />
                    <show id="entity_bcpg:nutListNut_bcpg:nut" force="true" />
                    <show id="rep:reportKinds" />
                    <show id="bcpg:nutListSources" />
                    <show id="dataList_bcpg:reqCtrlList" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="bcpg:nutListFormulatedValue" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedMaxi" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedMini" label="hidden" read-only="true" />
                    <field id="bcpg:nutListUnit" read-only="true" label="hidden" />
                    <field id="bcpg:nutListFormulatedValuePrepared" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedValuePerServing" label="hidden" read-only="true" />
                    <field id="bcpg:nutListReductionFormulatedValue" label="hidden" read-only="true" />
                    <field id="bcpg:nutListGDAPerc" help="{&quot;width&quot;:200}" />
                    <field id="bcpg:nutListReferenceValue" />
                    <field id="bcpg:nutListUnitPrepared" read-only="true" label="hidden" />
                    <field id="bcpg:nutListRoundedValue" read-only="true" />
                    <field id="bcpg:nutListRoundedValuePrepared" read-only="true" />
                    <field id="bcpg:variantColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn5" read-only="true" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:nutListIsFormulated" label="hidden" />
                    <field id="bcpg:nutListFormulaErrorLog" label="hidden" />
                    <field id="dataList_bcpg:reqCtrlList" label="hidden" />
                    <field id="bcpg:nutListSources" label="hidden" />
                </appearance>
            </form>
            <form id="datagrid-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListRequirementType" force="true" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListFormulatedValue" />
                    <show id="bcpg:nutListUnit" />

                    <show id="bcpg:nutListValuePerServing" force="true" />
                    <show id="bcpg:nutListFormulatedValuePerServing" force="true" />
                    <show id="bcpg:nutListRoundedValue" />
                    <show id="bcpg:nutListGDAPerc" force="true" />

                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:nutListIsFormulated" />
                    <show id="bcpg:nutListFormulaErrorLog" />
                    <show id="entity_bcpg:nutListNut_bcpg:nut" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="bcpg:nutListFormulatedValue" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedValuePerServing" label="hidden" read-only="true" />
                    <field id="bcpg:nutListUnit" read-only="true" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:nutListIsFormulated" label="hidden" />
                    <field id="bcpg:nutListFormulaErrorLog" label="hidden" />
                    <field id="bcpg:nutListRoundedValue" read-only="true" />
                </appearance>
            </form>
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:depthLevel" />
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListFormulatedValue" />
                    <show id="bcpg:nutListUnit" />
                    <show id="bcpg:nutListValuePrepared" />
                    <show id="bcpg:nutListFormulatedValuePrepared" force="true" />
                    <show id="bcpg:nutListUnitPrepared" force="true" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListFormulatedMini" />
                    <show id="bcpg:nutListFormulatedMaxi" />
                    <show id="bcpg:nutListValuePerServing" force="true" />
                    <show id="bcpg:nutListFormulatedValuePerServing" force="true" />
                    <show id="bcpg:nutListGDAPerc" force="true" />
                    <show id="bcpg:nutListLossPerc" />
                    <show id="bcpg:nutListMethod" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:nutListIsFormulated" />
                    <show id="bcpg:nutListFormulaErrorLog" />
                    <show id="entity_bcpg:nutListNut_bcpg:nut" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:depthLevel" label="hidden" />
                    <field id="bcpg:nutListFormulatedValue" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedValuePrepared" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedValuePerServing" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedMaxi" label="hidden" read-only="true" />
                    <field id="bcpg:nutListFormulatedMini" label="hidden" read-only="true" />
                    <field id="bcpg:nutListUnit" read-only="true" label="hidden" />
                    <field id="bcpg:nutListUnitPrepared" read-only="true" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:nutListIsFormulated" label="hidden" />
                    <field id="bcpg:nutListFormulaErrorLog" label="hidden" />
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="entity_bcpg:nutListNut_bcpg:product" for-mode="view" />
                    <show id="bcpg:nutListMethod" />
                    <show id="bcpg:nutListGroup" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:nutListMethod">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListGroup">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="insertBlank">true</control-param>
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:nutList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:nutList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListValue" />
                    <show id="bcpg:nutListValuePrepared" />
                    <show id="bcpg:nutListUnit" />
                    <show id="bcpg:nutListUnitPrepared" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListReductionValue" />
                    <show id="bcpg:nutListReferenceValue" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:nutListLossPerc" />
                    <show id="bcpg:nutListMethod" />
                    <show id="bcpg:nutListMeasurementPrecision" />

                    <show id="rep:reportKinds" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:nutListNut">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/nut</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListValue">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">-</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListValuePrepared">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">-</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListUnit" read-only="true" set="2-col" />
                    <field id="bcpg:nutListUnitPrepared" read-only="true" set="2-col" />
                    <field id="bcpg:nutListMini" set="2-col" />
                    <field id="bcpg:nutListMaxi" set="2-col" />
                    <field id="bcpg:nutListReductionValue" set="2-col" />
                    <field id="bcpg:nutListReferenceValue" set="2-col" />
                    <field id="bcpg:nutListLossPerc" set="2-col" />
                    <field id="bcpg:nutListMethod" set="2-col" />
                    <field id="bcpg:nutListMeasurementPrecision" set="2-col" />
                    <field id="bcpg:parentLevel" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=bcpg:nutList&#38;attributeName=bcpg:nutListNut</control-param>
                            <control-param name="urlParamsToPass">itemId</control-param>
                        </control>
                    </field>
                    <field id="rep:reportKinds" set="2-col" />
                </appearance>
            </form>
            <form id="edit-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:nutListNut" />
                    <show id="bcpg:nutListMini" />
                    <show id="bcpg:nutListMaxi" />
                    <show id="bcpg:nutListRequirementType" force="true" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:nutListNut">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/nut</control-param>
                        </control>
                    </field>
                    <field id="bcpg:nutListMini" />
                    <field id="bcpg:nutListMaxi" />
                    <field id="bcpg:nutListRequirementType" />
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:organoList type -->
    <config evaluator="model-type" condition="bcpg:organoList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:organoListOrgano" />
                    <show id="bcpg:organoListValue" />
                    <show id="bcpg:organoListMethod" />
                    <show id="rep:reportKinds" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:organoListOrgano">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:organoListValue">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>
                    <field id="bcpg:organoListMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>

                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:organoListOrgano" />
                    <show id="bcpg:organoListValue" />
                    <show id="bcpg:organoListMethod" />
                    <show id="fm:commentCount" force="true" />
                    <show id="rep:reportKinds" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:organoListOrgano" />
                    <show id="bcpg:organoListMethod" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:organoListOrgano">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:organoListMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:organoList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:organoList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:organoListOrgano" />
                    <show id="bcpg:organoListValue" />
                    <show id="bcpg:organoListMethod" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:organoListOrgano">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:organoListValue">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">2</control-param>
                        </control>
                    </field>

                    <field id="bcpg:organoListMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:physicoChemList type -->
    <config evaluator="model-type" condition="bcpg:physicoChemList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclValue" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="bcpg:pclTextCriteria" />
                    <show id="bcpg:pclMethod" />
                    <show id="rep:reportKinds" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:pclPhysicoChem">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/physicoChem</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pclTextCriteria">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:pclMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
            <form id="create">
                <field-visibility>
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclValue" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="bcpg:pclTextCriteria" />
                    <show id="bcpg:pclMethod" />
                    <show id="rep:reportKinds" force="true" />
                    <show id="bcpg:glopTarget" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:pclPhysicoChem">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/physicoChem</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pclTextCriteria">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:pclMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>

                </appearance>
            </form>
            <form id="create-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:pclPhysicoChem">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/physicoChem</control-param>
                        </control>
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclValue" />
                    <show id="bcpg:pclUnit" />
                    <show id="bcpg:pclType" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="bcpg:variantColumn1" force="true" />
                    <show id="bcpg:variantColumn2" force="true" />
                    <show id="bcpg:variantColumn3" force="true" />
                    <show id="bcpg:variantColumn4" force="true" />
                    <show id="bcpg:variantColumn5" force="true" />
                    <show id="bcpg:pclTextCriteria" />
                    <show id="bcpg:pclMethod" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:physicoChemIsFormulated" />
                    <show id="bcpg:physicoChemFormulaErrorLog" />
                    <show id="rep:reportKinds" />
                    <show id="dataList_bcpg:reqCtrlList" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:pclUnit" read-only="true" />
                    <field id="bcpg:pclType" read-only="true" />
                    <field id="bcpg:variantColumn1" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn2" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn3" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn4" read-only="true" label="hidden" />
                    <field id="bcpg:variantColumn5" read-only="true" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                    <field id="bcpg:physicoChemIsFormulated" label="hidden" />
                    <field id="bcpg:physicoChemFormulaErrorLog" label="hidden" />
                </appearance>
            </form>
            <form id="datagrid-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:physicoChemIsFormulated" />
                    <show id="bcpg:physicoChemFormulaErrorLog" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="fm:commentCount" force="true" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:pclUnit" read-only="true" />
                    <field id="bcpg:pclType" read-only="true" />
                    <field id="bcpg:physicoChemIsFormulated" label="hidden" />
                    <field id="bcpg:physicoChemFormulaErrorLog" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclValue" />
                    <show id="bcpg:pclUnit" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:physicoChemIsFormulated" />
                    <show id="bcpg:physicoChemFormulaErrorLog" />
                    <show id="rep:reportKinds" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:pclUnit" read-only="true" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:physicoChemIsFormulated" label="hidden" />
                    <field id="bcpg:physicoChemFormulaErrorLog" label="hidden" />
                </appearance>
            </form>
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:variantIds" force="true" />
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclValue" />
                    <show id="bcpg:pclUnit" />
                    <show id="bcpg:pclType" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="bcpg:pclTextCriteria" />
                    <show id="bcpg:pclMethod" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:physicoChemIsFormulated" />
                    <show id="bcpg:physicoChemFormulaErrorLog" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:variantIds" label="hidden" />
                    <field id="bcpg:pclUnit" read-only="true" />
                    <field id="bcpg:pclType" read-only="true" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:physicoChemIsFormulated" label="hidden" />
                    <field id="bcpg:physicoChemFormulaErrorLog" label="hidden" />
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:pclType" />
                    <show id="entity_bcpg:pclPhysicoChem_bcpg:product" for-mode="view" />
                    <show id="bcpg:pclPhysicoChem" for-mode="create" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:pclType">
                        <control template="/org/alfresco/components/form/controls/checkboxmany.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pclPhysicoChem">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/physicoChem</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

        </forms>
    </config>
    <!-- bcpg:physicoChemList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:physicoChemList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclValue" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />
                    <show id="bcpg:pclTextCriteria" />
                    <show id="bcpg:pclMethod" />
                    <show id="rep:reportKinds" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:pclPhysicoChem">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/physicoChem</control-param>
                        </control>
                    </field>
                    <field id="bcpg:pclTextCriteria">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:pclMethod">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/qa:controlMethod</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="edit-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:pclPhysicoChem" />
                    <show id="bcpg:pclMini" />
                    <show id="bcpg:pclMaxi" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:pclPhysicoChem">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/physicoChem</control-param>
                        </control>
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:forbiddenIngList type -->
    <config evaluator="model-type" condition="bcpg:forbiddenIngList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:filReqType" />
                    <show id="bcpg:filReqMessage" />
                    <show id="bcpg:filIngs" />
                    <show id="bcpg:filQtyPercMaxi" />
                    <show id="bcpg:filQtyPercMini" />
                    <show id="bcpg:filQtyPercMaxiUnit" />
                    <show id="bcpg:filQtyPercType" />
                    <show id="bcpg:filIngLevel" />
                    <show id="bcpg:filIsGMO" />
                    <show id="bcpg:filIsIonized" />
                    <show id="bcpg:filGeoOrigins" />
                    <show id="bcpg:filRequiredGeoOrigins" />
                    <show id="bcpg:filGeoTransfo" />
                    <show id="bcpg:filBioOrigins" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:filReqType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Forbidden|data.reqtype.forbidden,Tolerated|data.reqtype.tolerated,Info|data.reqtype.info,Authorized|data.reqtype.authorized
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filReqMessage">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:filQtyPercMaxi" />

                    <field id="bcpg:filIsGMO">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,false|data.boolean.false,true|data.boolean.true
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIsIonized">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,false|data.boolean.false,true|data.boolean.true
                            </control-param>
                        </control>
                    </field>

                    <field id="bcpg:filIngLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">|data.level.all,1|1,2|2,3|3,4|4
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIngs">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filRequiredGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filGeoTransfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filBioOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:filIngLevel" />
                    <show id="bcpg:filReqType" />
                    <show id="bcpg:filReqMessage" />
                    <show id="entity_bcpg:filIngs_bcpg:ing" />
                    <show id="bcpg:filIngs" />
                    <show id="bcpg:filGeoOrigins" />
                    <show id="bcpg:filRequiredGeoOrigins" />
                    <show id="bcpg:filBioOrigins" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:filIngLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">|data.level.all,1|1,2|2,3|3,4|4
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filReqType">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:filReqMessage">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:filIsGMO">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIsIonized">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIngs">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filIngLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">|data.level.all,1|1,2|2,3|3,4|4
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                    <field id="bcpg:filRequiredGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filGeoTransfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filBioOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:filReqType" />
                    <show id="bcpg:filReqMessage" />
                    <show id="bcpg:filIngs" />
                    <show id="bcpg:filQtyPercMaxi" />
                    <show id="bcpg:filQtyPercMini" />
                    <show id="bcpg:filQtyPercMaxiUnit" />
                    <show id="bcpg:filQtyPercType" />
                    <show id="bcpg:filIngLevel" />
                    <show id="bcpg:filIsGMO" />
                    <show id="bcpg:filIsIonized" />
                    <show id="bcpg:filGeoOrigins" />
                    <show id="bcpg:filRequiredGeoOrigins" />
                    <show id="bcpg:filGeoTransfo" />
                    <show id="bcpg:filBioOrigins" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                    <show id="entity_bcpg:filIngs_bcpg:ing_asColumn" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:filIngLevel" read-only="true" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
            
            <form id="datagridWUsed">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:filReqType" />
                    <show id="bcpg:filReqMessage" />
                    <show id="bcpg:filIngs" />
                    <show id="bcpg:filQtyPercMaxi" />
                    <show id="bcpg:filQtyPercMini" />
                    <show id="bcpg:filQtyPercMaxiUnit" />
                    <show id="bcpg:filQtyPercType" />
                    <show id="bcpg:filIngLevel" />
                    <show id="bcpg:filIsGMO" />
                    <show id="bcpg:filIsIonized" />
                    <show id="bcpg:filGeoOrigins" />
                    <show id="bcpg:filRequiredGeoOrigins" />
                    <show id="bcpg:filGeoTransfo" />
                    <show id="bcpg:filBioOrigins" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                    <show id="entity_bcpg:filIngs_bcpg:ing_asColumn" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:glopTarget" />
                    <show id="bcpg:glopValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:filIngLevel" read-only="true" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:forbiddenIngList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:forbiddenIngList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:filReqType" />
                    <show id="bcpg:filReqMessage" />
                    <show id="bcpg:filIngs" />
                    <show id="bcpg:filQtyPercMaxi" />
                    <show id="bcpg:filQtyPercMini" />
                    <show id="bcpg:filQtyPercMaxiUnit" />
                    <show id="bcpg:filQtyPercType" />
                    <show id="bcpg:filIngLevel" />
                    <show id="bcpg:filIsGMO" />
                    <show id="bcpg:filIsIonized" />
                    <show id="bcpg:filGeoOrigins" />
                    <show id="bcpg:filRequiredGeoOrigins" />
                    <show id="bcpg:filGeoTransfo" />
                    <show id="bcpg:filBioOrigins" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:filReqType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Forbidden|data.reqtype.forbidden,Tolerated|data.reqtype.tolerated,Info|data.reqtype.info,Authorized|data.reqtype.authorized
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filReqMessage">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:filQtyPercMaxi" />

                    <field id="bcpg:filIsGMO">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,false|data.boolean.false,true|data.boolean.true
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIsIonized">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">,false|data.boolean.false,true|data.boolean.true
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIngLevel">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">|data.level.all,1|1,2|2,3|3,4|4
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:filIngs">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filRequiredGeoOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filGeoTransfo">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:filBioOrigins">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>

                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:reqCtrlList type -->
    <config evaluator="model-type" condition="bcpg:reqCtrlList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:rclReqType" />
                    <show id="bcpg:rclReqMessage" />
                    <show id="bcpg:rclSourcesV2" />
                    <show id="bcpg:rclDataType" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:rclReqMessage">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:rclReqType" />
                    <show id="bcpg:rclReqMessage" />
                    <show id="bcpg:rclSourcesV2" />
                    <show id="bcpg:rclDataType" />
                </field-visibility>
                <appearance>
                    <field label="hidden" id="bcpg:rclReqType" />
                    <field label="hidden" id="bcpg:rclDataType" />
                    <field label="hidden" id="bcpg:rclSourcesV2" />
                </appearance>
            </form>

            <form id="sub-datagrid">
                <field-visibility>
                    <show id="bcpg:rclReqType" />
                    <show id="bcpg:rclDataType" />
                    <show id="bcpg:rclReqMessage" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:rclReqMaxQty" />
                    <show id="bcpg:rclSourcesV2" />
                </field-visibility>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:rclReqType" />
                    <show id="bcpg:rclSourcesV2" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <!-- bcpg:reqCtrlList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:reqCtrlList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:rclReqType" />
                    <show id="bcpg:rclReqMessage" />
                    <show id="bcpg:rclSourcesV2" />
                    <show id="bcpg:rclDataType" />
                </field-visibility>

                <appearance>

                    <field id="bcpg:rclReqMessage">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:contactList type -->
    <config evaluator="model-type" condition="bcpg:contactList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:contactListJobTitle" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:contactListFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:contactListType" set="2-col" />
                    <field id="bcpg:contactListFirstName" set="2-col" />
                    <field id="bcpg:contactListLastName" set="2-col" />
                    <field id="bcpg:contactListEmail" set="2-col" />
                    <field id="bcpg:contactListJobTitle" set="2-col" />
                    <field id="bcpg:contactListPhoneOffice" set="2-col" />
                    <field id="bcpg:contactListPhoneMobile" set="2-col" />
                    <field id="bcpg:contactListFax" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:contactListNotes" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" set="2-col" />
                    </field>
                    <field id="bcpg:eanCode" set="2-col" />
                </appearance>
            </form>
            <form id="create-systemEntity">
                <field-visibility>
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:contactListJobTitle" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:contactListFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:contactListType" set="2-col" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="bcpg:contactListFirstName" set="2-col" />
                    <field id="bcpg:contactListLastName" set="2-col" />
                    <field id="bcpg:contactListEmail" set="2-col" />
                    <field id="bcpg:contactListJobTitle" set="2-col" />
                    <field id="bcpg:contactListPhoneOffice" set="2-col" />
                    <field id="bcpg:contactListPhoneMobile" set="2-col" />
                    <field id="bcpg:contactListFax" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="sec:readGroups" set="2-col" />
                    <field id="bcpg:erpCode" set="2-col" />
                    <field id="bcpg:isDeleted" set="2-col" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:contactListNotes" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" set="2-col" />
                    </field>
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:contactListJobTitle" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:contactListFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="bcpg:contactListFirstName" set="2-col" />
                    <field id="bcpg:contactListLastName" set="2-col" />
                    <field id="bcpg:contactListEmail" set="2-col" />
                    <field id="bcpg:contactListJobTitle" set="2-col" />
                    <field id="bcpg:contactListPhoneOffice" set="2-col" />
                    <field id="bcpg:contactListPhoneMobile" set="2-col" />
                    <field id="bcpg:contactListFax" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationCity" set="2-col" />
                    <field id="bcpg:locationZip" set="2-col" />
                    <field id="bcpg:locationState" set="2-col" />
                    <field id="bcpg:locationCountry" set="2-col" />
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col" />
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col" />
                    <field id="bcpg:locationAddress3" set="2-col" />
                    <field id="bcpg:contactListNotes" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" />
                    </field>
                    <field id="bcpg:contactListType" set="2-col">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:supplierAccountRef" force="true" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:supplierAccountRef" read-only="true" />
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>
            </form>
            <form id="datagrid-systemEntity">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="fm:commentCount" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:httpLink1" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" label-id="becpg.forms.field.website3" />
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:contactList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:contactList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:contactListJobTitle" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:contactListFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:contactListType" set="2-col" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="bcpg:contactListFirstName" set="2-col" />
                    <field id="bcpg:contactListLastName" set="2-col" />
                    <field id="bcpg:contactListEmail" set="2-col" />
                    <field id="bcpg:contactListJobTitle" set="2-col" />
                    <field id="bcpg:contactListPhoneOffice" set="2-col" />
                    <field id="bcpg:contactListPhoneMobile" set="2-col" />
                    <field id="bcpg:contactListFax" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:contactListNotes" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" set="2-col" />
                    </field>
                </appearance>
            </form>
            <form id="edit-systemEntity">
                <field-visibility>
                    <show id="bcpg:contactListType" />
                    <show id="bcpg:contactListFirstName" />
                    <show id="bcpg:contactListLastName" />
                    <show id="bcpg:contactListEmail" />
                    <show id="bcpg:contactListJobTitle" />
                    <show id="bcpg:contactListPhoneOffice" />
                    <show id="bcpg:contactListPhoneMobile" />
                    <show id="bcpg:contactListFax" />
                    <show id="bcpg:httpLink1" force="true" />
                    <show id="bcpg:httpLink2" force="true" />
                    <show id="bcpg:httpLink3" force="true" />
                    <hide id="bcpg:httpLink4" />
                    <hide id="bcpg:httpLink5" />
                    <show id="bcpg:contactListNotes" />
                    <show id="bcpg:locationAddress1" force="true" />
                    <show id="bcpg:locationAddress2" force="true" />
                    <show id="bcpg:locationAddress3" force="true" />
                    <show id="bcpg:locationCity" force="true" />
                    <show id="bcpg:locationZip" force="true" />
                    <show id="bcpg:locationState" force="true" />
                    <show id="bcpg:locationCountry" force="true" />
                    <show id="bcpg:locationCountryRef" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                    <show id="bcpg:eanCode" force="true" />
                </field-visibility>

                <appearance>
                    <set id="2-col" template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpg:contactListType" set="2-col" />
                    <field id="bcpg:eanCode" set="2-col" />
                    <field id="bcpg:contactListFirstName" set="2-col" />
                    <field id="bcpg:contactListLastName" set="2-col" />
                    <field id="bcpg:contactListEmail" set="2-col" />
                    <field id="bcpg:contactListJobTitle" set="2-col" />
                    <field id="bcpg:contactListPhoneOffice" set="2-col" />
                    <field id="bcpg:contactListPhoneMobile" set="2-col" />
                    <field id="bcpg:contactListFax" set="2-col" />
                    <field id="bcpg:httpLink1" set="2-col" label-id="becpg.forms.field.website1" />
                    <field id="bcpg:httpLink2" set="2-col" label-id="becpg.forms.field.website2" />
                    <field id="bcpg:httpLink3" set="2-col" label-id="becpg.forms.field.website3" />
                    <field id="bcpg:locationCity" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationZip" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationState" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountry" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationCountryRef" set="2-col">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="sec:readGroups" set="2-col" />
                    <field id="bcpg:erpCode" set="2-col" />
                    <field id="bcpg:isDeleted" set="2-col" />
                    <field id="bcpg:locationAddress1" help-id="becpg.forms.help.locationAddress1" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress2" help-id="becpg.forms.help.locationAddress2" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:locationAddress3" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:contactListNotes" set="2-col">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl" set="2-col" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:labelClaimList type -->
    <config evaluator="model-type" condition="bcpg:labelClaimList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lclLabelClaim" />
                    <show id="bcpg:lclClaimValue" />
                    <show id="bcpg:lclPercentClaim" />
                    <show id="bcpg:lclPercentApplicable" />
                    <show id="bcpg:lclCertification" />
                <!-- <show id="bcpg:certificateDate" force="true" />  -->
                    <show id="bcpg:lclComments" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="rep:reportKinds" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lclComments">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lclCertification" help-id="becpg.forms.help.lclCertification">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:lclLabelClaim" />
                    <show id="bcpg:lclClaimValue" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lclComments">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lclCertification">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:lclLabelClaim" for-mode="create" />
                    <show id="entity_bcpg:lclLabelClaim_bcpg:product" for-mode="view" />
                    <show id="bcpg:lclType" />
                    <show id="bcpg:lclClaimValue" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lclType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lclClaimValue">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>


                </appearance>
            </form>

            <form id="customListDatagrid">
                <field-visibility>
                    <show id="bcpg:lclLabelClaim" />
                    <show id="bcpg:lclType" />
                    <show id="bcpg:lclClaimValue" />
                </field-visibility>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:entityDataListState" force="true" />
                    <show id="bcpg:lclLabelClaim" />
                    <show id="entity_bcpg:lclLabelClaim_bcpg:labelClaim" />
                    <show id="bcpg:lclType" />
                    <show id="bcpg:lclClaimValue" />
                    <show id="bcpg:lclPercentClaim" />
                    <show id="bcpg:lclPercentApplicable" />
                    <show id="bcpg:lclCertification" force="true" />
                    <show id="bcpg:lclMissingLabelClaims" force="true" />
                    <show id="bcpg:lclComments" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:lclIsFormulated" />
                    <show id="bcpg:lclFormulaErrorLog" />
                    <show id="rep:reportKinds" />
                    <show id="dataList_bcpg:reqCtrlList" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:entityDataListState" label="hidden" />
                    <field id="bcpg:lclMissingLabelClaims" read-only="true" />
                    <field id="entity_bcpg:lclLabelClaim_bcpg:labelClaim" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                    <field id="bcpg:lclIsFormulated" label="hidden" />
                    <field id="bcpg:lclFormulaErrorLog" label="hidden" />
                </appearance>
            </form>
            <form id="datagrid-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:lclLabelClaim" />
                    <show id="bcpg:lclClaimValue" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                </appearance>
            </form>
            <form id="datagridWused">
                <field-visibility>
                    <show id="bcpg:lclLabelClaim" />
                    <show id="entity_bcpg:lclLabelClaim_bcpg:labelClaim" />
                    <show id="bcpg:lclType" />
                    <show id="bcpg:lclClaimValue" />
                    <show id="bcpg:lclPercentClaim" />
                    <show id="bcpg:lclMissingLabelClaims" force="true" />
                    <show id="bcpg:lclComments" force="true" />
                    <show id="fm:commentCount" force="true" />
                    <show id="bcpg:lclIsFormulated" />
                    <show id="bcpg:lclFormulaErrorLog" />
                    <show id="rep:reportKinds" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lclMissingLabelClaims" read-only="true" />
                    <field id="entity_bcpg:lclLabelClaim_bcpg:labelClaim" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="bcpg:lclIsFormulated" label="hidden" />
                    <field id="bcpg:lclFormulaErrorLog" label="hidden" />
                </appearance>
            </form>
        </forms>
    </config>
    <!-- bcpg:labelClaimList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:labelClaimList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lclLabelClaim" />
                    <show id="bcpg:lclClaimValue" />
                    <show id="bcpg:lclPercentClaim" />
                    <show id="bcpg:lclPercentApplicable" />
                    <show id="bcpg:lclCertification" />
                <!-- <show id="bcpg:certificateDate" force="true" />  -->
                    <show id="bcpg:lclComments" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="rep:reportKinds" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:lclComments">
                        <control template="/org/alfresco/components/form/controls/richtext.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:lclCertification" help-id="becpg.forms.help.lclCertification">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/certification</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="edit-productSpecification">
                <field-visibility>
                    <show id="bcpg:regulatoryType" force="true" />
                    <show id="bcpg:regulatoryText" force="true" />
                    <show id="bcpg:lclLabelClaim" />
                    <show id="bcpg:lclClaimValue" />

                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:regulatoryUsageRef" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:regulatoryUsageRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:dynamicCharactList type -->
    <config evaluator="model-type" condition="bcpg:dynamicCharactList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:dynamicCharactTitle" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:dynamicCharactColumn" />
                    <show id="bcpg:dynamicCharactFormula" />
                    <show id="bcpg:dynamicCharactGroupColor" />
                    <show id="bcpg:dynamicCharactSynchronisableState" />
                    <show id="bcpg:dynamicCharactExecOrder" />
                    <show id="bcpg:dynamicCharactMultiLevel" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:dynamicCharactFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:dynamicCharactGroupColor">
                        <control template="/org/alfresco/components/form/controls/selectcolorpicker.ftl" />
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:dynamicCharactGroupColor" />
                    <show id="bcpg:dynamicCharactTitle" />
                    <show id="bcpg:dynamicCharactColumn" />
                    <show id="bcpg:dynamicCharactErrorLog" />
                    <show id="bcpg:dynamicCharactValue" />
                    <show id="cm:title" force="true" />
                    <show id="fm:commentCount" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:dynamicCharactGroupColor" label="hidden" />
                    <field id="bcpg:dynamicCharactColumn" label="hidden" />
                    <field id="bcpg:dynamicCharactErrorLog" label="hidden" />
                    <field id="fm:commentCount" label="hidden" read-only="true" />
                    <field id="cm:title" label="hidden" read-only="true" />
                </appearance>
            </form>

            <form id="filter">
                <field-visibility>
                    <show id="bcpg:dynamicCharactGroupColor" />
                    <show id="bcpg:dynamicCharactSynchronisableState" />
                    <show id="bcpg:dynamicCharactExecOrder" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:dynamicCharactGroupColor">
                        <control template="/org/alfresco/components/form/controls/selectcolorpicker.ftl" />
                    </field>
                    <field id="bcpg:dynamicCharactSynchronisableState">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:dynamicCharactExecOrder">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

        </forms>
    </config>
    <!-- bcpg:dynamicCharactList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:dynamicCharactList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:dynamicCharactTitle" />
                    <show id="cm:title" force="true" />
                    <show id="bcpg:dynamicCharactColumn" />
                    <show id="bcpg:dynamicCharactFormula" />
                    <show id="bcpg:dynamicCharactGroupColor" />
                    <show id="bcpg:dynamicCharactSynchronisableState" />
                    <show id="bcpg:dynamicCharactExecOrder" />
                    <show id="bcpg:dynamicCharactMultiLevel" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:dynamicCharactFormula">
                        <control template="/org/alfresco/components/form/controls/spel-editor.ftl">
                            <control-param name="rows">10</control-param>
                        </control>
                    </field>
                    <field id="bcpg:dynamicCharactGroupColor">
                        <control template="/org/alfresco/components/form/controls/selectcolorpicker.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>



    <!-- beCPG ingTypeItem -->
    <config evaluator="node-type" condition="bcpg:ingTypeItem">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:lvValue" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:ingTypeDecThreshold" />
                    <show id="bcpg:ingTypeDoNotDeclare" />
                    <show id="bcpg:ingTypeIsLastGroup" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:ingTypeItem">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:lvValue" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:ingTypeDecThreshold" />
                    <show id="bcpg:ingTypeDoNotDeclare" />
                    <show id="bcpg:ingTypeIsLastGroup" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:lvValue" />
                    <show id="bcpg:ingTypeDecThreshold" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:lvValue" />
                    <show id="bcpg:legalName" />
                    <show id="bcpg:pluralLegalName" />
                    <show id="bcpg:ingTypeDecThreshold" />
                    <show id="bcpg:ingTypeDoNotDeclare" />
                    <show id="bcpg:ingTypeIsLastGroup" />
                    <show id="bcpg:regulatoryCode" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <!-- bcpg:productReportTemplate type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:productReportTemplate">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:productType" />
                    <show id="bcpg:prtIsSystem" />
                    <show id="bcpg:prtIsDefault" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:productType">
                        <control template="/org/alfresco/components/form/controls/becpg/product/productType.ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>


    <!-- Variant -->

    <config evaluator="node-type" condition="bcpg:variant">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:isDefaultVariant" />
                    <show id="bcpg:color" force="true" />
                    <show id="bcpg:variantColumn" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:color">
                        <control template="/org/alfresco/components/form/controls/selectcolorpicker.ftl">
                            <control-param name="textMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:variant">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:isDefaultVariant" />
                    <show id="bcpg:color" force="true" />
                    <show id="bcpg:variantColumn" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:color">
                        <control template="/org/alfresco/components/form/controls/selectcolorpicker.ftl">
                            <control-param name="textMode">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="duplicate">
                <field-visibility>
                    <show id="cm:name" />
                </field-visibility>
            </form>
        </forms>
    </config>



    <config evaluator="node-type" condition="bcpg:savedSearch">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:isGlobalSavedSearch" />
                </field-visibility>
                <appearance>
                  <field id="bcpg:isGlobalSavedSearch" read-only="true"/>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:savedSearch">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:isGlobalSavedSearch" />
                </field-visibility>
            </form>
            <form id="duplicate">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="bcpg:isGlobalSavedSearch" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="aspect" condition="bcpg:productTypeAspect">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:productType" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="aspect" condition="bcpg:supplierAspect">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:suppliers" force="true" />
                </field-visibility>
                <appearance />

            </form>
        </forms>
    </config>
    <config evaluator="aspect" condition="bcpg:permissionsTpl">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:consumerGroups" />
                    <show id="bcpg:editorGroups" />
                    <show id="bcpg:contributorGroups" />
                    <show id="bcpg:collaboratorGroups" />
                </field-visibility>
            </form>
        </forms>
    </config>


    <config condition="bcpgwf:productValidationAspect" evaluator="aspect">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpgwf:pvValidationDate" for-mode="view" />
                    <show id="bcpgwf:pvRDApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvPackagingApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvQualityApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvProductionApprovalActor" for-mode="view" />
                    <show id="bcpgwf:pvCallerActor" for-mode="view" />
                    <show id="bcpgwf:pvCaller2Actor" for-mode="view" />
                </field-visibility>
                <appearance>
                    <set id="productValidation" appearance="bordered-panel" label-id="becpg.forms.set.validation.label"
                        template="/org/alfresco/components/form/2-column-set.ftl" />
                    <field id="bcpgwf:pvValidationDate" set="productValidation">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpgwf:pvRDApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvPackagingApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvQualityApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvProductionApprovalActor" set="productValidation" />
                    <field id="bcpgwf:pvCallerActor" set="productValidation" />
                    <field id="bcpgwf:pvCaller2Actor" set="productValidation" />
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:storageConditions">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:storageConditionsMode" />
                    <show id="bcpg:storageConditionsTemperature" />
                    <show id="gs1:maximumTemperature" force="true" />
                    <show id="gs1:minimumTemperature" force="true" />
                    <show id="gs1:maximumToleranceTemperature" force="true" />
                    <show id="gs1:minimumToleranceTemperature" force="true" />
                    <show id="gs1:temperatureMeasurementUnit" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    <field id="bcpg:storageConditionsMode">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:storageConditionsTemperature">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="gs1:maximumToleranceTemperature" help-id="becpg.forms.help.gs1.maximumToleranceTemperature" />
                    <field id="gs1:minimumToleranceTemperature" help-id="becpg.forms.help.gs1.minimumToleranceTemperature" />
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:storageConditions">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:storageConditionsMode" />
                    <show id="bcpg:storageConditionsTemperature" />
                    <show id="gs1:maximumTemperature" force="true" />
                    <show id="gs1:minimumTemperature" force="true" />
                    <show id="gs1:maximumToleranceTemperature" force="true" />
                    <show id="gs1:minimumToleranceTemperature" force="true" />
                    <show id="gs1:temperatureMeasurementUnit" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                    <field id="bcpg:storageConditionsMode">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:storageConditionsTemperature">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="gs1:maximumToleranceTemperature" help-id="becpg.forms.help.gs1.maximumToleranceTemperature" />
                    <field id="gs1:minimumToleranceTemperature" help-id="becpg.forms.help.gs1.minimumToleranceTemperature" />
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:storageConditionsTemperature" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:storageConditionsTemperature">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="bcpg:storageConditionsMode" />
                    <show id="bcpg:storageConditionsTemperature" />
                    <show id="gs1:maximumTemperature" force="true" />
                    <show id="gs1:minimumTemperature" force="true" />
                    <show id="gs1:maximumToleranceTemperature" force="true" />
                    <show id="gs1:minimumToleranceTemperature" force="true" />
                    <show id="gs1:temperatureMeasurementUnit" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="node-type" condition="bcpg:precautionOfUse">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="bcpg:precautionOfUse">
        <forms>
            <!-- Create item form -->
            <form>

                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>

                <appearance>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="rows">4</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <!-- Data Grid view -->
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:charactName">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                    </field>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:charactName" />
                    <show id="cm:description" force="true" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
            </form>
        </forms>
    </config>   
    
    
    
    <!-- ecm:changeUnitList type -->
    <config evaluator="model-type" condition="bcpg:productSpecCompatibilityList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:psclSourceItem" />
                    <show id="bcpg:psclReqType" />
                    <show id="bcpg:psclReqDetails" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:psclReqType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Forbidden|data.reqtype.forbidden,Tolerated|data.reqtype.tolerated,Info|data.reqtype.info</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:psclRevision" />
                    <show id="entity_bcpg:psclSourceItem_bcpg:product" />
                    <show id="bcpg:psclReqType" />
                </field-visibility>
                <appearance>

                    <field id="bcpg:psclReqType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Forbidden|data.reqtype.forbidden,Tolerated|data.reqtype.tolerated,Info|data.reqtype.info</control-param>
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:psclSourceItem" />
                    <show id="bcpg:psclReqType" />
                    <show id="bcpg:psclReqDetails" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <!-- ecm:changeUnitList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:productSpecCompatibilityList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:psclSourceItem" />
                    <show id="bcpg:psclReqType" />
                    <show id="bcpg:psclReqDetails" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:psclReqType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="options">Forbidden|data.reqtype.forbidden,Tolerated|data.reqtype.tolerated,Info|data.reqtype.info</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>




    <config evaluator="model-type" condition="gs1:dutyFeeTax">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:description" />
                    <show id="gs1:dutyFeeTaxCategoryCode" />
                    <show id="gs1:dutyFeeTaxCode" />
                    <show id="gs1:dutyFeeTaxCountry" />
                    <show id="gs1:dutyFeeTaxRate" />
                    <show id="gs1:dutyFeeTaxAgencyCode" />
                    <show id="gs1:dutyFeeTaxTypeCode" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">70</control-param>
                        </control>
                    </field>
                    <field id="gs1:dutyFeeTaxCountry">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:description" />
                    <show id="gs1:dutyFeeTaxCategoryCode" />
                    <show id="gs1:dutyFeeTaxCode" />
                    <show id="gs1:dutyFeeTaxCountry" />
                </field-visibility>
                <appearance>

                    <field id="gs1:dutyFeeTaxCountry">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="datagrid">
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:description" />
                    <show id="gs1:dutyFeeTaxCategoryCode" />
                    <show id="gs1:dutyFeeTaxCode" />
                    <show id="gs1:dutyFeeTaxCountry" />
                    <show id="gs1:dutyFeeTaxRate" />
                    <show id="gs1:dutyFeeTaxAgencyCode" />
                    <show id="gs1:dutyFeeTaxTypeCode" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:isDeleted">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl" />
                    </field>
                </appearance>

            </form>
        </forms>
    </config>
    <config evaluator="node-type" condition="gs1:dutyFeeTax">
        <forms>
            <form>
                <field-visibility>
                    <show id="cm:name" />
                    <show id="cm:description" />
                    <show id="gs1:dutyFeeTaxCategoryCode" />
                    <show id="gs1:dutyFeeTaxCode" />
                    <show id="gs1:dutyFeeTaxCountry" />
                    <show id="gs1:dutyFeeTaxRate" />
                    <show id="gs1:dutyFeeTaxAgencyCode" />
                    <show id="gs1:dutyFeeTaxTypeCode" />
                    <show id="sec:readGroups" force="true" />
                    <show id="bcpg:erpCode" force="true" />
                    <show id="bcpg:isDeleted" />
                </field-visibility>
                <appearance>
                    <field id="cm:description">
                        <control template="/org/alfresco/components/form/controls/textarea.ftl">
                            <control-param name="maxLength">70</control-param>
                        </control>
                    </field>
                    <field id="gs1:dutyFeeTaxCountry">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>


    <config evaluator="model-type" condition="gs1:targetMarket">
		<forms>
			<form>
				<field-visibility>
					<show id="gs1:targetMarketCode" />
					<show id="bcpg:charactName" />
					<show id="gs1:targetMarketCountries" />
					<show id="bcpg:eanCode" force="true" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:erpCode" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
				<appearance>
					<field id="gs1:targetMarketCountries">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.eanCode" id="bcpg:eanCode" mandatory="false" read-only="false" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl">
                             <control-param name="maxLength">13</control-param>
                        </control>
                        <constraint-handlers>
                            <constraint event="keyup,change" type="MANDATORY" validation-handler="beCPG.forms.validation.GTIN"/>
                        </constraint-handlers>
                    </field>
				</appearance>
			</form>
			<form id="filter">
				<field-visibility>
					<show id="bcpg:charactName" />
					<show id="gs1:targetMarketCountries" />
					<show id="bcpg:eanCode" force="true" />
				</field-visibility>
				<appearance>
					<field id="gs1:targetMarketCountries">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
				</appearance>
			</form>
			<form id="datagrid">
				<field-visibility>
					<show id="gs1:targetMarketCode" />
					<show id="bcpg:charactName" />
					<show id="gs1:targetMarketCountries" />
					<show id="bcpg:eanCode" force="true" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:erpCode" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
				<appearance>
					<field id="bcpg:isDeleted">
						<control template="/org/alfresco/components/form/controls/boolean.ftl" />
					</field>
				</appearance>
			</form>
		</forms>
	</config>
	<config evaluator="node-type" condition="gs1:targetMarket">
		<forms>
			<form>
				<field-visibility>
					<show id="gs1:targetMarketCode" />
					<show id="bcpg:charactName" />
					<show id="gs1:targetMarketCountries" />
					<show id="bcpg:eanCode" force="true" />
					<show id="sec:readGroups" force="true" />
					<show id="bcpg:erpCode" force="true" />
					<show id="bcpg:isDeleted" />
				</field-visibility>
				<appearance>
					<field id="gs1:targetMarketCountries">
						<control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
							<control-param name="showLink">false</control-param>
						</control>
					</field>
					<field help-id="becpg.forms.help.eanCode" id="bcpg:eanCode" mandatory="false" read-only="false" >
                        <control template="/org/alfresco/components/form/controls/textfield.ftl">
                            <control-param name="maxLength">13</control-param>
                        </control>
                        <constraint-handlers>
                            <constraint event="keyup,change" type="MANDATORY" validation-handler="beCPG.forms.validation.GTIN"/>
                        </constraint-handlers>
                    </field>
				</appearance>
			</form>
		</forms>
	</config>



    <config evaluator="model-type" condition="gs1:dutyFeeTaxList">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:dutyFeeTaxRef" force="true" />
                    <show id="gs1:dutyFeeTaxAmount" force="true" />
                    <show id="gs1:dutyFeeTaxAmountUnit" force="true" />
                    <show id="gs1:dutyFeeTaxAgencyCode" force="true" />
                    <show id="gs1:dutyFeeTaxTypeCode" force="true" />
                    <show id="gs1:dutyFeeTaxCategoryCode" force="true" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="gs1:dutyFeeTaxAgencyCode" force="false" />
                    <show id="gs1:dutyFeeTaxTypeCode" force="false" />
                    <show id="gs1:dutyFeeTaxCategoryCode" force="false" />
                </field-visibility>
                <appearance>
                    <field id="gs1:dutyFeeTaxRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="gs1:dutyFeeTaxRef" />
                </field-visibility>
                <appearance>
                    <field id="gs1:dutyFeeTaxRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="datagrid">
                <field-visibility>
                    <show id="gs1:dutyFeeTaxRef" force="true" />
                    <show id="gs1:dutyFeeTaxAmount" force="true" />
                    <show id="gs1:dutyFeeTaxAmountUnit" force="true" />
                    <show id="gs1:dutyFeeTaxAgencyCode" force="false" />
                    <show id="gs1:dutyFeeTaxTypeCode" force="false" />
                    <show id="gs1:dutyFeeTaxCategoryCode" force="false" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                    <show id="gs1:dutyFeeTaxAgencyCode" force="false" />
                    <show id="gs1:dutyFeeTaxTypeCode" force="false" />
                    <show id="gs1:dutyFeeTaxCategoryCode" force="false" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <config evaluator="node-type" condition="gs1:dutyFeeTaxList">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:dutyFeeTaxRef" force="true" />
                    <show id="gs1:dutyFeeTaxAmount" force="true" />
                    <show id="gs1:dutyFeeTaxAmountUnit" force="true" />
                    <show id="gs1:dutyFeeTaxAgencyCode" force="false" />
                    <show id="gs1:dutyFeeTaxTypeCode" force="false" />
                    <show id="gs1:dutyFeeTaxCategoryCode" force="false" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
                <appearance>
                    <field id="gs1:dutyFeeTaxRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="create">
                <field-visibility>
                    <show id="gs1:dutyFeeTaxRef" force="true" />
                    <show id="gs1:dutyFeeTaxAmount" force="true" />
                    <show id="gs1:dutyFeeTaxAmountUnit" force="true" />
                    <show id="gs1:dutyFeeTaxAgencyCode" force="false" />
                    <show id="gs1:dutyFeeTaxTypeCode" force="false" />
                    <show id="gs1:dutyFeeTaxCategoryCode" force="false" />
                    <show id="bcpg:startEffectivity" force="true" />
                    <show id="bcpg:endEffectivity" force="true" />
                </field-visibility>
            </form>
        </forms>
    </config>

    <config evaluator="model-type" condition="gs1:tradeItemPriceList">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:tradeItemPriceType" />
                    <show id="gs1:tradeItemPrice" />
                    <show id="gs1:tradeItemPriceUnit" />
                    <show id="gs1:priceBasisQuantity" />
                    <show id="gs1:priceBasisQuantityUnit" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="gs1:tradeItemPriceType" />
                </field-visibility>
                <appearance>

                    <field id="gs1:tradeItemPriceType">
                        <control template="/org/alfresco/components/form/controls/selectone.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="insertBlank">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="datagrid">
                <field-visibility>
                    <show id="gs1:tradeItemPriceType" />
                    <show id="gs1:tradeItemPrice" />
                    <show id="gs1:tradeItemPriceUnit" />
                    <show id="gs1:priceBasisQuantity" />
                    <show id="gs1:priceBasisQuantityUnit" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <config evaluator="node-type" condition="gs1:tradeItemPriceList">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:tradeItemPriceType" />
                    <show id="gs1:tradeItemPrice" />
                    <show id="gs1:tradeItemPriceUnit" />
                    <show id="gs1:priceBasisQuantity" />
                    <show id="gs1:priceBasisQuantityUnit" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>





    <config evaluator="model-type" condition="gs1:collectionPriceList">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:cplProduct" />
                    <show id="gs1:cplPriceTaxIncl" />
                    <show id="gs1:tradeItemPriceUnit" />
                    <show id="gs1:dutyFeeTaxRef" />
                    <show id="gs1:priceBasisQuantity" />
                    <show id="gs1:priceBasisQuantityUnit" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="gs1:cplProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:productList&#38;attributeName=bcpg:productListProduct
                            </control-param>
                        </control>
                    </field>

                    <field id="gs1:dutyFeeTaxRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>

                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=gs1:collectionPriceList&#38;attributeName=gs1:cplProduct
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="gs1:cplProduct" />
                    <show id="gs1:tradeItemPriceType" />
                    <show id="gs1:dutyFeeTaxRef" />
                </field-visibility>
                <appearance>
                    <field id="gs1:cplProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:productList&#38;attributeName=bcpg:productListProduct
                            </control-param>
                        </control>
                    </field>
                    <field id="gs1:dutyFeeTaxRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
            <form id="datagrid">
                <field-visibility>
                    <show id="gs1:cplProduct" />
                    <show id="gs1:cplPriceTaxIncl" />
                    <show id="gs1:tradeItemPrice" />
                    <show id="gs1:tradeItemPriceUnit" />
                    <show id="gs1:dutyFeeTaxRef" />
                    <show id="gs1:dutyFeeTaxAmount" />
                    <show id="gs1:priceBasisQuantity" />
                    <show id="gs1:priceBasisQuantityUnit" />
                    <show id="gs1:cplUnitTotalCost" />
                    <show id="gs1:cplProfitabilityRatio" />
                    <show id="gs1:cplTurnover" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
            </form>
        </forms>
    </config>
    <config evaluator="node-type" condition="gs1:collectionPriceList">
        <forms>
            <form>
                <field-visibility>
                    <show id="gs1:cplProduct" />
                    <show id="gs1:cplPriceTaxIncl" />
                    <show id="gs1:tradeItemPriceUnit" />
                    <show id="gs1:dutyFeeTaxRef" />
                    <show id="gs1:priceBasisQuantity" />
                    <show id="gs1:priceBasisQuantityUnit" />
                    <show id="bcpg:parentLevel" />
                    <show id="bcpg:startEffectivity" />
                    <show id="bcpg:endEffectivity" />
                </field-visibility>
                <appearance>
                    <field id="gs1:cplProduct">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/DataListCharact?className=bcpg:productList&#38;attributeName=bcpg:productListProduct
                            </control-param>
                        </control>
                    </field>
                    <field id="gs1:dutyFeeTaxRef">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="showLink">false</control-param>
                        </control>
                    </field>

                    <field id="bcpg:startEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>
                    <field id="bcpg:endEffectivity" mandatory="false" read-only="false">
                        <control template="/org/alfresco/components/form/controls/date.ftl">
                            <control-param name="showTime">false</control-param>
                        </control>
                    </field>

                    <field id="bcpg:parentLevel" help-id="becpg.forms.help.parentLevel">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/ParentValue?className=gs1:collectionPriceList&#38;attributeName=gs1:cplProduct
                            </control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    <config evaluator="model-type" condition="bcpg:ingRegulatoryList">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:irlIng" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:irlUsages" />
                    <show id="bcpg:irlResultIndicator" />
                    <show id="bcpg:irlRestrictionLevels" />
                    <show id="bcpg:irlCitation" />
                    <show id="bcpg:irlPrecautions" />
                    <show id="bcpg:irlSources" />
                </field-visibility>
            </form>
            <form id="filter">
                <field-visibility>
                    <show id="bcpg:irlIng" />
                    <show id="bcpg:regulatoryCountries" />
                    <show id="bcpg:irlUsages" />
                    <show id="bcpg:irlResultIndicator" />
                    <show id="bcpg:irlRestrictionLevels" />
                    <show id="bcpg:irlCitation" />
                    <show id="bcpg:irlPrecautions" />
                    <show id="bcpg:irlSources" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:irlIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete.ftl">
                            <control-param name="ds">becpg/autocomplete/targetassoc/associations/bcpg:ing
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:regulatoryCountries">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl" />
                    </field>
                    <field id="bcpg:irlUsages">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
                    </field>
                    <field id="bcpg:irlResultIndicator">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
                    </field>
                    <field id="bcpg:irlRestrictionLevels">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
                    </field>
                    <field id="bcpg:irlCitation">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
                    </field>
                    <field id="bcpg:irlPrecautions">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl"/>
                    </field>
                    <field id="bcpg:irlSources">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">becpg/autocomplete/product</control-param>
                            <control-param name="showTooltip">true</control-param>
                            <control-param name="pageLinkTemplate">entity-data-lists?list=View-properties&amp;nodeRef={nodeRef}</control-param>
                        </control>
                    </field>
                </appearance>

            </form>
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:irlIng" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:irlUsages" />
                    <show id="bcpg:irlResultIndicator" />
                    <show id="bcpg:irlRestrictionLevels" />
                    <show id="bcpg:irlCitation" />
                    <show id="bcpg:irlPrecautions" />
                    <show id="bcpg:regulatoryComment" force="true" />
                    <show id="bcpg:irlSources" />
                    <show id="dataList_bcpg:reqCtrlList" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:irlIng" read-only="true" />
                    <field id="bcpg:regulatoryCountries" read-only="true" />
                    <field id="bcpg:irlUsages" read-only="true" />
                    <field id="bcpg:irlResultIndicator" read-only="true" />
                    <field id="bcpg:irlRestrictionLevels" read-only="true" />
                    <field id="bcpg:irlCitation" read-only="true" />
                    <field id="bcpg:irlPrecautions" read-only="true" />
                    <field id="bcpg:regulatoryComment" read-only="true" />
                    <field id="bcpg:irlSources" read-only="true" />
                    <field id="dataList_bcpg:reqCtrlList" label-id="hidden" />
                </appearance>
            </form>
        </forms>
    </config>
    <config evaluator="node-type" condition="bcpg:ingRegulatoryList">
        <forms>
            <form>
                <field-visibility>
                    <show id="bcpg:irlIng" />
                    <show id="bcpg:regulatoryCountries" force="true" />
                    <show id="bcpg:irlUsages" force="true" />
                    <show id="bcpg:irlResultIndicator" force="true" />
                    <show id="bcpg:irlRestrictionLevels" />
                    <show id="bcpg:irlCitation" />
                    <show id="bcpg:irlPrecautions" />
                    <show id="bcpg:regulatoryComment" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:irlIng" read-only="true" />
                    <field id="bcpg:regulatoryCountries" read-only="true" />
                    <field id="bcpg:irlResultIndicator" read-only="true" />
                    <field id="bcpg:irlRestrictionLevels" read-only="true" />
                    <field id="bcpg:irlCitation" read-only="true" />
                    <field id="bcpg:irlPrecautions" read-only="true" />
                    <field id="bcpg:regulatoryUsageRef" read-only="true" />
                    <field id="bcpg:regulatoryComment" read-only="true" />
                </appearance>
            </form>
        </forms>
    </config>
    
    
    <!-- bcpg:svhcList type -->
    <config evaluator="model-type" condition="bcpg:svhcList">
        <forms>
            <!-- Create item form -->
            <form>
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>
                <appearance>
                    <field id="bcpg:svhcListIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/bcpg:ing?filter=bcpg:isSubstanceOfVeryHighConcern%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcListQtyPerc">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isManualListItem" />
                </appearance>
            </form>

            <form id="packagingMaterial">
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:svhcListMigrationPerc" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:svhcListIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/bcpg:ing?filter=bcpg:isSubstanceOfVeryHighConcern%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcListQtyPerc">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                </appearance>
            </form>


            <form id="datagrid-packagingMaterial">
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:svhcListMigrationPerc" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>
            </form>
            
            <!-- Data Grid view -->
            <form id="datagrid">
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>
            </form>


            <form id="filter">
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:isManualListItem" force="true" />
                    <show id="bcpg:svhcReasonsForInclusion" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:svhcListIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/bcpg:ing?filter=bcpg:isSubstanceOfVeryHighConcern%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcListQtyPerc">
                        <control template="/org/alfresco/components/form/controls/numberrange.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:isManualListItem">
                        <control template="/org/alfresco/components/form/controls/boolean.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcReasonsForInclusion">
                        <control template="/org/alfresco/components/form/controls/selectmany.ftl">
                            <control-param name="isSearch">true</control-param>
                            <control-param name="forceEditable">true</control-param>
                        </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    
    <!-- bcpg:svhcList type (existing nodes) -->
    <config evaluator="node-type" condition="bcpg:svhcList">
        <forms>
            <!-- Data List pop-up edit form -->
            <form>
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:svhcListIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/bcpg:ing?filter=bcpg:isSubstanceOfVeryHighConcern%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcListQtyPerc">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

            <form id="packagingMaterial">
                <field-visibility>
                    <show id="bcpg:svhcListIng" />
                    <show id="bcpg:svhcListQtyPerc" />
                    <show id="bcpg:svhcListMigrationPerc" />
                    <show id="bcpg:isManualListItem" force="true" />
                </field-visibility>

                <appearance>
                    <field id="bcpg:svhcListIng">
                        <control template="/org/alfresco/components/form/controls/autocomplete-association.ftl">
                            <control-param name="ds">
                                becpg/autocomplete/targetassoc/associations/bcpg:ing?filter=bcpg:isSubstanceOfVeryHighConcern%7Ctrue
                            </control-param>
                        </control>
                    </field>
                    <field id="bcpg:svhcListQtyPerc">
                        <control template="/org/alfresco/components/form/controls/number-unit.ftl">
                            <control-param name="unit">perc</control-param>
                        </control>
                    </field>
                </appearance>
            </form>

        </forms>
    </config>

</alfresco-config>
