cancel
Showing results for 
Search instead for 
Did you mean: 

Customize datalist's element name

alf_kin
Champ in-the-making
Champ in-the-making
Hi all,

i have created a custom datalist. The datalist's Elements is associated to a custom type: CustomType. When i navigate to select the datalist's element to bind to CustomType, in my datalist there is a list of nodeId (i suppose) of the datalist's elements.

[img]http://s7.postimage.org/k57yaothz/Cattura.jpg[/img]

The Question for you is:

can i customize that id with some prior choosen property?

Regards all,

Bye
2 REPLIES 2

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

In datalist element, at the time of creation we not provide name, so alresco generates random name for it. That looks like nodeid, but that is not a node-id, if you want to change it, either show the name field in creation form or apply a rule to set some property of your datalist item as name, so you can the datalist item with some name rather than random id in selection picker.

mtw999
Champ in-the-making
Champ in-the-making
I had similar issue and just exposed the name property via share-custom-config:

<config evaluator="node-type" condition="dl:dataList">
<forms>
<form>
<field-visibility>
<show id="cm:name" force="true" />
</field-visibility>
<appearance>
<field id="cm:name" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />


Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.