Я создал пользовательский список данных в Alfresco и заполнил его модель желаемыми столбцами данных. Однако, когда я просматриваю список в share из Alfresco, заказ полностью отключен, и есть элементы, которые я не определил в модели.Alfresco custom data list layout
Я подробно искал, как исправить это, и не был успешным. Насколько я понимаю, мне нужно определить расположение в акционерном-конфиг-custom.xml, который я пытался ниже (фрагмент только то, что я добавил):
<config evaluator="model-type" condition="orpdl:orpList">
\t \t <forms>
\t \t \t <form>
\t \t \t \t <field-visibility>
\t \t \t \t \t <show id="orpdl:programName" />
\t \t \t \t </field-visibility>
\t \t \t \t <create-form template="../data-lists/forms/dataitem.ftl" />
\t \t \t \t <appearance>
\t \t \t \t \t <field id="orpdl:programName">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
\t \t \t \t \t </field>
</appearance>
\t \t \t </form>
\t \t </forms>
\t </config>
\t
\t <config evaluator="node-type" condition="orpdl:orpList">
\t \t <forms>
\t \t \t <form>
\t \t \t \t <field-visibility>
\t \t \t \t \t <show id="orpdl:programName" />
\t \t \t \t </field-visibility>
\t \t \t \t <create-form template="../data-lists/forms/dataitem.ftl" />
\t \t \t \t <appearance>
\t \t \t \t \t <field id="orpdl:programName">
<control template="/org/alfresco/components/form/controls/textarea.ftl" />
\t \t \t \t \t </field>
</appearance>
\t \t \t </form>
\t \t </forms>
\t </config>
Содержимое модели :
<?xml version="1.0" encoding="UTF-8"?>
<!-- Definition of new Model -->
<model name="orpdl:orpDataListModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
\t <!-- Optional meta-data about the model -->
\t <description>Information retrieved from the Opportunity Registration Process workflow form.</description>
\t <author>Alan George</author>
\t <version>1.0</version>
\t <!-- Imports are required to allow references to definitions in other models -->
\t <imports>
\t \t <!-- Import Alfresco Dictionary Definitions -->
\t \t <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
\t \t <!-- Import Alfresco Content Domain Model Definitions -->
\t \t <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
\t \t <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
\t \t <import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl" />
\t </imports>
\t <!-- Introduction of new namespaces defined by this model -->
\t <namespaces>
\t \t <namespace uri="http://www.test.com/model/orpDataListModel/1.0" prefix="orpdl" />
\t </namespaces>
\t
\t <constraints>
<constraint name="orpdl:contractTypeList" type="LIST">
\t \t \t <parameter name="allowedValues">
\t \t \t \t <list>
\t \t \t \t <value>T&M</value>
\t \t \t \t <value>FFP</value>
\t \t \t \t <value>CPFF</value>
\t \t \t \t <value>CPIF</value>
\t \t \t \t </list>
\t </parameter>
\t \t </constraint>
\t </constraints>
\t
\t <types>
\t \t <type name="orpdl:orpList">
\t \t \t <title>Opportunity Registration Process</title>
\t \t \t <description>Information retrieved from the Opportunity Registration Process workflow form.</description>
\t \t \t <parent>dl:dataListItem</parent>
\t \t \t <properties>
\t \t \t \t <property name="orpdl:programName">
\t \t \t \t \t <title>Program Name</title>
\t \t \t \t \t <type>d:text</type>
\t \t \t \t \t <mandatory>true</mandatory>
\t \t \t \t </property>
\t \t \t \t <property name="orpdl:programDescription">
\t \t \t \t \t <title>Program Description</title>
\t \t \t \t \t <type>d:text</type>
\t \t \t \t \t <mandatory>true</mandatory>
\t \t \t \t </property>
\t \t \t \t <property name="orpdl:client">
\t \t \t \t \t <title>Client</title>
\t \t \t \t \t <type>d:text</type>
\t \t \t \t \t <mandatory>true</mandatory>
\t \t \t \t </property>
\t \t \t \t <property name="orpdl:contractType">
\t \t \t \t \t <title>Contract Type</title>
\t \t \t \t \t <type>d:text</type>
\t \t \t \t \t <mandatory>true</mandatory>
\t \t \t \t \t <constraints>
\t \t \t \t \t \t <constraint ref="orpdl:contractTypeList" />
\t \t \t \t \t </constraints>
\t \t \t \t </property>
\t \t \t \t <property name="orpdl:value">
\t \t \t \t \t <title>Value</title>
\t \t \t \t \t <type>d:text</type>
\t \t \t \t \t <mandatory>true</mandatory>
\t \t \t \t </property>
\t \t \t </properties>
\t \t </type>
\t </types>
</model>
цель этого кода иметь только р Появится текстовое поле rogramName. Но это то, что я вижу:
Что мне не хватает?
Пожалуйста, добавьте контент (модель Где вы определили DataList), а также. –
@ KrutikJayswal Просто добавил. – Alan