1. como ven el campo ID, necesito q no se pueda ingresar datos si no q se auto genere incrementalmente.Para ello puedes implementar la siguiente lógica :
2. Fecha de creación tb no quiero q sea para seleccionar, si no q al momento de guardar el elemento se obtenga la fecha de la creación automáticamenteEn este sentido puedes utilizar el mismo script anterior para indicar el valor de esta propiedad (document.properties["prefix:nombre_campo_fecha"]=now(). Para que el usuario no pueda visualizar dicho campo solo tendrás que omitir la declaración del mismo en el formulario de creación/edición :
<field-visibility>
<show id="dl:todoTitle" />
<show id="dl:todoDueDate" />
<show id="dl:todoPriority" />
<show id="dl:todoNotes" />
<show id="dl:assignee" />
<show id="dl:attachments" />
</field-visibility>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
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.