diff --git a/dmp-frontend/src/app/datasets/dataset.component.ts b/dmp-frontend/src/app/datasets/dataset.component.ts index b880e00b1..ebbcf3362 100644 --- a/dmp-frontend/src/app/datasets/dataset.component.ts +++ b/dmp-frontend/src/app/datasets/dataset.component.ts @@ -129,7 +129,7 @@ export class DatasetsComponent implements OnInit { } selectDataset(item) {debugger; - this.ngZone.run(() => this.router.navigate(['dynamic-form', {id: item.profileId}])); + this.ngZone.run(() => this.router.navigate(['dynamic-form', {id: item.profileId, datasetId:item.id, datasetProperties:item.properties}])); } SaveNewDataset() { diff --git a/dmp-frontend/src/app/form/dynamic-form.component.ts b/dmp-frontend/src/app/form/dynamic-form.component.ts index 5e20e54df..6988de433 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.ts +++ b/dmp-frontend/src/app/form/dynamic-form.component.ts @@ -30,7 +30,9 @@ export class DynamicFormComponent implements OnInit { // pagination object @Input() pagination: any = {}; id:string; - + datasetId:string; + datasetProperties:string; + private fragment: string; xml2jsonOBJ: any; @@ -52,8 +54,10 @@ export class DynamicFormComponent implements OnInit { //let id = this.route.snapshot.paramMap.get('id'); //get the project id - let sub = this.route.params.subscribe(params => { + let sub = this.route.params.subscribe(params => {debugger; this.id = params.id; + this.datasetId = params.datasetId; + this.datasetProperties = params.datasetProperties }); this.serverService.getDatsetsProfile(this.id).subscribe(