diff --git a/src/main/webapp/app/facet-composer/facet-composer.component.html b/src/main/webapp/app/facet-composer/facet-composer.component.html index a3fc0fc..486b28f 100644 --- a/src/main/webapp/app/facet-composer/facet-composer.component.html +++ b/src/main/webapp/app/facet-composer/facet-composer.component.html @@ -33,13 +33,14 @@

group {{ind}}

-
+
-
-

control {{i}} - - +

+

control {{i}} - +

-
+
+
diff --git a/src/main/webapp/app/facet-composer/facet-composer.component.ts b/src/main/webapp/app/facet-composer/facet-composer.component.ts index 5448217..95ce2da 100644 --- a/src/main/webapp/app/facet-composer/facet-composer.component.ts +++ b/src/main/webapp/app/facet-composer/facet-composer.component.ts @@ -34,6 +34,10 @@ export class FacetComposerComponent implements OnInit { myForm: FormGroup ; //form complessiva typeSpec: ITypeSpecification; + + + + facetGuis: any; // eslint-disable-next-line @typescript-eslint/member-ordering @@ -46,11 +50,10 @@ export class FacetComposerComponent implements OnInit { this.myForm = this.fb.group({ facets: this.fb.array([]), + facetGuis:this.fb.array([]), }); - } - - + ngOnInit(): void { this.guiService.getFormStructure(this.titlePath,this.titleType).subscribe(res => { this.typeSpec = res; @@ -69,12 +72,13 @@ export class FacetComposerComponent implements OnInit { ctrl = this.fb.control({ name: ['',Validators.required] }); - } - fGroup.addControl(''+String(j),ctrl); + //fGroup.addControl(''+String(j),ctrl); + fGroup.addControl('',ctrl); //AGGIUNGO FORMCONTROL AL FORMGROUP } - this.myForm.addControl('facetGui'+String(ind),fGroup); //AGGIUNGO FORMGROUP PER LA FACET + //this.myForm.addControl('facetGui'+String(ind),fGroup); //AGGIUNGO FORMGROUP PER LA FACET + this.myForm.addControl('',fGroup); //AGGIUNGO FORMGROUP PER LA FACET } }