cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Form with dynamic controls

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

I am using Alfresco Share forms to display the details of a Task in an Advanced workflow. I would also like to display a form with some data that is out of the workflow context which comes from a custom database. The controls on this form needs to be rendered dynamically by querying the custom database, I cannot pre-configure them in share-custom-config.xml. Is there anyway I can mimic the configuration in share-custom-config.xml or use the FDK to populate the Freemarker objects required by the Forms template (Form, Field etc)?

Any help is appreciated on this.

Thank You!
1 REPLY 1

unknown-user
Champ on-the-rise
Champ on-the-rise
We could implement this requirement using Custom Form Processors.

Basically, we extended from Alfresco's out of the box FilteredFormProcessor.java and created our own form processor. The FieldDefinitions in this form are dynamically generated based on a custom database values. Its pretty easy to create and register custom form processors in Alfresco. Please follow the wiki link for further details on creating the form processors.

http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Customization

Thanks
Jerry