parameters for dynamic form
This commit is contained in:
parent
d3754d31c3
commit
873b204b3f
|
@ -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() {
|
||||
|
|
|
@ -30,6 +30,8 @@ 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(
|
||||
|
|
Loading…
Reference in New Issue