diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts index a9e41f2d6..213e638bd 100644 --- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts +++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts @@ -197,6 +197,19 @@ getPDFormDetailsWithID(pdID, formID ):Observable { ) } + // save Pd form details + savePDFormDetailsWithID(saveData: any): Observable { + saveData.fk_createdby = this._aws.getlocale(); + saveData.fk_createdon = currentdate; + // saveData[0].fk_updatedby = this._aws.getlocale(); + // saveData[0].updatedon = currentdate; + + return this._http.post(this.apiUrl+"savePDFormDetails",{"records":saveData}) + .pipe( + catchError(this.handleError('operation', [])) + ) + } + // save pd answers savePDQuestions(saveData: any): Observable { saveData.createdby = this._aws.getlocale();