The scripter object now stores the result of the last script
execution so that text fields which have a calculate script
can be updated according to the result of the script execution.
Details
Details
- Reviewers
- None
- Group Reviewers
Okular - Maniphest Tasks
- T7805: Okular: Add support for JavaScript AFSimple_Calculate and textfield content calculation
Unittest in seperate revision.
Diff Detail
Diff Detail
- Repository
- R223 Okular
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
This is wrong. Looking at more javascripts we need to have an event object available in the javascript and then set a return value as "event.value". I will change this.
Comment Actions
Using the result of a JavaScript execution is not the "Adobe" way to communicate the results of a calculation. An Event Object should be used instead.