diff --git a/src/frontend/app/indexation/indexation.component.html b/src/frontend/app/indexation/indexation.component.html
index 3488832cd331132cf1514a87238f6145e4d58c09..42466335adffc62c87040f0df82dec4eb2f47e32 100644
--- a/src/frontend/app/indexation/indexation.component.html
+++ b/src/frontend/app/indexation/indexation.component.html
@@ -119,7 +119,7 @@
         </div>
         <div class="document-container" [class.fullContainer]="appService.getViewMode()">
             <div class="content">
-                <app-document-viewer #appDocumentViewer [editMode]="true" [tmpFilename]="tmpFilename"
+                <app-document-viewer #appDocumentViewer [editMode]="true" [tmpFilename]="tmpFilename" (refreshDatas)="refreshDatas()"
                     style="height:100%;width:100%;">
                 </app-document-viewer>
             </div>
diff --git a/src/frontend/app/indexation/indexation.component.ts b/src/frontend/app/indexation/indexation.component.ts
index 643467e4896bb1a799e5ff4dd9e59fe12a8539f6..ab44e6e420bf96b3710c09149b7d113c0a9f54ce 100644
--- a/src/frontend/app/indexation/indexation.component.ts
+++ b/src/frontend/app/indexation/indexation.component.ts
@@ -58,6 +58,8 @@ export class IndexationComponent implements OnInit {
 
     subscription: Subscription;
 
+    test: any = 'toto';
+
     constructor(
         private route: ActivatedRoute,
         private _activatedRoute: ActivatedRoute,
@@ -298,4 +300,8 @@ export class IndexationComponent implements OnInit {
         }
     }
 
+    refreshDatas() {
+        this.appDocumentViewer.setDatas(this.formatDatas(this.indexingForm.getDatas()));
+    }
+
 }
\ No newline at end of file
diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts
index ae2ce197445caeca0f8e8de6a1c3816d55784caf..8581e17cd8e1dcf93a603acfdadee92a1feba9e8 100644
--- a/src/frontend/app/viewer/document-viewer.component.ts
+++ b/src/frontend/app/viewer/document-viewer.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, Input, ViewChild } from '@angular/core';
+import { Component, OnInit, Input, ViewChild, EventEmitter, Output } from '@angular/core';
 import { HttpClient, HttpEventType } from '@angular/common/http';
 import { LANG } from '../translate.component';
 import { NotificationService } from '../notification.service';
@@ -26,6 +26,7 @@ import { templateVisitAll } from '@angular/compiler';
 export class DocumentViewerComponent implements OnInit {
 
     @Input('tmpFilename') tmpFilename: string;
+    @Output('refreshDatas') refreshDatas = new EventEmitter<string>();
 
     lang: any = LANG;
 
@@ -57,6 +58,7 @@ export class DocumentViewerComponent implements OnInit {
     @Input('editMode') editMode: boolean = false;
     @Input('title') title: string = '';
     @Input('mode') mode: string = 'mainDocument';
+    resourceDatas: any;
 
     loadingInfo: any = {
         mode: 'indeterminate',
@@ -472,12 +474,14 @@ export class DocumentViewerComponent implements OnInit {
     }
 
     editTemplate(templateId: number) {
+        this.refreshDatas.emit();
         const template = this.listTemplates.filter(template => template.id === templateId)[0];
         this.editInProgress = true;
-        const jnlp = {
+        const jnlp: any = {
             objectType: 'resourceCreation',
             objectId: template.id,
-            cookie: document.cookie
+            cookie: document.cookie,
+            data: this.resourceDatas,
         };
         this.http.post('../../rest/jnlp', jnlp).pipe(
             tap((data: any) => {
@@ -487,6 +491,10 @@ export class DocumentViewerComponent implements OnInit {
         ).subscribe();
     }
 
+    setDatas(resourceDatas: any) {
+        this.resourceDatas = resourceDatas;
+    }
+
     checkLockFile(id: string, template: any) {
         this.intervalLockFile = setInterval(() => {
             this.http.get('../../rest/jnlp/lock/' + id)