[PATCH 1/4] Add calculate script result handling
AbandonedPublic

Authored by aheinecke on Jan 23 2018, 1:49 PM.

Details

Summary

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.

Test Plan

Unittest in seperate revision.

Diff Detail

Repository
R223 Okular
Lint
Lint Skipped
Unit
Unit Tests Skipped
aheinecke requested review of this revision.Jan 23 2018, 1:49 PM
aheinecke created this revision.
aheinecke planned changes to this revision.Jan 23 2018, 2:29 PM

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.

aheinecke abandoned this revision.Jan 24 2018, 12:22 PM

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.