Skip to main content
Celentano Fabio
Participant
December 27, 2021
解決済み

Java Script Blocking till clicked button

  • December 27, 2021
  • 返信数 1.
  • 938 ビュー

German:

Hallo zusammen,

 

ich habe eine PDF Datei mit über 80 berechnenden Feldern. Diese habe ich ganz normal mit den Formularoptionen "Berechnen" eingestellt. Jetzt möchte Adobe aber nach jedem Feldwechsel alle 80 Felder aktualisieren und berechnen. Das macht die gesamte PDF Datei sehr langsam.

 

Meine Idee war jetzt die Berechnungen direkt am Anfang zu stoppen und zwar solange, bis ein Button am Ende der PDF geklickt wurde auf dem "Berechnen" steht. Dann sollen alle Berechnungen einmal durchgeführt werden und anschließend wieder alles gestoppt werden.

 

Hat hier jemand Erfahrung und kann mir evtl. weiterhelfen?

 

Vielen Dank im Voraus.

 

English:

Hey there, i have a PDF File with over 80 calculating fields. These fields are programmed with normal field calculation of Adobe-Reader. 

 

The problem is, that the pdf is really slow because Adobe-Reader wants to calculate every field after skipping to the next field.

 

I thought of the following solution: Block whole calculating until the customer clicks a button at the end of the page with "Calculate".

 

Could you help me with that?

 

このトピックへの返信は締め切られました。
解決に役立った回答 Bernd Alheit

Hey thank for that tip,

 

how can i calculate:

 

field1 * field2 and set the solution in field 3?


this.getField("field3").value = this.getField("field1").value * this.getField("field2").value;

返信数 1

Bernd Alheit
Community Expert
Community Expert
December 27, 2021

Use a "Calculate" button and put all calculations on this button.

Celentano Fabio
Participant
January 1, 2022

Hey,

tried it, but i dont find the calculations?

See attachment 🙂

 

Could you help me there?

Celentano Fabio
Participant
January 4, 2022

this.getField("field3").value = this.getField("field1").value * this.getField("field2").value;


Thank you so much! That worked fine"