04-01-2019 02:39 AM
Hello,
I have created the process with three task. In ADF i'm trying to parse the form like
after parsing my page looks like
I have referred the following documentation
https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/core/form.component.md
I want to update the fields information, so I tried doing this.
Please anyone help me to resolve this.
Thanks & Regards
Amruta Wandakar
04-01-2019 05:26 AM
Hello,
Here you can see an example of the definition you need to use to parse a form from a json:
alfresco-ng2-components/demo-form.json at development · Alfresco/alfresco-ng2-components · GitHub
Anyway, ¿is your workflow deployed on APS/Activity 7 or in ACS?. FormService only works with APS workflows.
Regards
04-01-2019 05:30 AM
Thanks i just found the above link one hour ago, i'm trying to update the field definitions in the form, for example if field.type == readonly make that field as text, like field.type = text. Do you have any idea regarding this.
Thanks & Regards
Amruta W
04-01-2019 05:48 AM
Hello,
I usually use custom classes to implement my form definition model . You could pass in the constructor the info you have and from that apply the necesary logic to generate the structure you need to parse the form
Of course, you can implement methods to update the fields once the definition is generated but i never have found a situation that required it.
Regards
Explore our Alfresco products with the links below. Use labels to filter content by product module.