I would like to know how can I display a datatable with several columns in a form?
This will be used in a workflow. The table will be filled with values where the user can add lines
Thank you in advance
can you explain in detail where you're looking for datatable?
I think you need to create custom form field,
Here is a document for custom form field this may solve your problem
Developer Series - Custom Form Fields | Alfresco CommunityDeveloper Series - Custom Form Fields
You can use custom ftl to display your table in workflow
It should be present in the <field-visibility> section and ensure, you've the set also exists in the section.
<form><field-visibility>............<show id="mswf:userDetails" />................</field-visibility><appearance>............<set id="userDetails" appearance="title" label="User Details" />.............<field id="mswf:userDetails" set="userDetails" label="User Details" read-only="true"><control template="/org/alfresco/components/form/controls/workflow/userdetails.ftl" /></field></appearance></form>
I think the better appproach is to use alfresco ADF with custom stencil where your custom datable can be one of the componenet present in the ADF itself.
For ADF data table you can refer
ADF Component Catalog
For custom component you can refer
I think custom form fields here Developer Series - Custom Form Fields will be referring to angular js where as ADF framework is built on latest Angular.
Retrieving data ...