AnsweredAssumed Answered

How to parseForm?

Question asked by amruta.w on Apr 1, 2019
Latest reply on Apr 1, 2019 by roberto.gamiz

Hello,

 

I have created the process with three task. In ADF i'm trying to parse the form like 

this.formService.getTaskForm(this.currentTaskId).subscribe(
data => {
for(let i = 0; i < data.fields.length ; i++) {
this.fields2 = data.fields[i].fields;
let count = 0;
count = Object.keys(this.fields2).length;
for ( let j= 1; j <= count ; j++) {
let fields3 = this.fields2[j];
for (let k=0 ; k<fields3.length ; k++) {
this.customData.push(fields3[k]);
}
}
}
this.form = this.formService.parseForm(this.customData);

 

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

Outcomes