cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Custom datalist column's

sathesh
Champ in-the-making
Champ in-the-making

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 5

hardik1512
Star Contributor
Star Contributor

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.

sathesh
Champ in-the-making
Champ in-the-making

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

sathesh
Champ in-the-making
Champ in-the-making

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>