how to show datatable in a form?

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

how to show datatable in a form?

Hello, 

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

3 Replies
amruta_w
Senior Member

Re: how to show datatable in a form?

can you explain in detail where you're looking for datatable?

prachi_shah_c2
Active Member II

Re: how to show datatable in a form?

Hi  Cyrine,

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 Communityhttps://community.alfresco.com/community/bpm/blog/2016/11/23/activiti-enterprise-developer-series-cu...  

OR 

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>

Thanks,

prachi shah

ContCentric

mdtabrezmca
Established Member II

Re: how to show datatable in a 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

ADF Component Catalog 

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.