Alfresco Custom datalist column's

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Alfresco Custom datalist column's

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.

in the image, it has data gird coding.

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.

5 Replies
Highlighted
Established Member II

Re: Alfresco Custom datalist column's

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.

Highlighted
Member II

Re: Alfresco Custom datalist column's

thanks for the reply, could you please provide any example regarding that.

Highlighted
Established Member II

Re: Alfresco Custom datalist column's

Highlighted
Member II

Re: Alfresco Custom datalist column's

sir, i have used that code but nothing changes, data list still remains same.

Highlighted
Senior Member II

Re: Alfresco Custom datalist column's

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>
Thanks & Regard,
Sanjay