03-25-2017 05:09 AM
I have created custom data list and it works fine, but data list columns are showing randomly not as per given code in config file.
above image shows the data grid coding.
Here is the data list and it showing the all column's randomly not as per given code in data grid.
03-27-2017 01:19 AM
The data grid configuration you did(form id="datagrid") is NOT for what to show when you create new item. This config is for the columns to be shown in list after you add/update any item.
Try adding another form config without any id and add your appearance settings there.
03-27-2017 06:01 AM
thanks for the reply, could you please provide any example regarding that.
03-27-2017 07:16 AM
03-27-2017 07:37 AM
sir, i have used that code but nothing changes, data list still remains same.
05-15-2020 11:17 PM
Hi,
You need to arrange your field in node-type and model-type evaluator where you have given condition of your datalist.
Ex.
<config evaluator="node-type" condition="my:datalist"> <forms> <form> <field-visibility> <show id="my:name" /> //Here you need to arrange column </field-visibility> <edit-form template="../data-lists/forms/dataitem.ftl" /> <appearance> </appearance> </form> </forms> </config> <config evaluator="model-type" condition="my:datalist"> <forms> <form> <field-visibility> <show id="my:name" /> //Here you need to arrange column </field-visibility> <create-form template="../data-lists/forms/dataitem.ftl" /> <appearance> </appearance> </form> <!-- Data Grid view --> <form id="datagrid"> <field-visibility> <show id="my:name" /> </field-visibility> </form> </forms> </config>
Explore our Alfresco products with the links below. Use labels to filter content by product module.