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.
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.
thanks for the reply, could you please provide any example regarding that.
sir, i have used that code but nothing changes, data list still remains same.
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>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.