Calculate.override bugs; LC ARE 2; Acrobat/Reader 9.4 9.4

Hi all

I met any bugs in calculate.override.

It seems that I can't turn it off and allow the user to type freely, and then turn it back on.

The simplified situation:

1) there are 3 text boxes, A, B and C.

(2) A and B are normal text boxes, without typing.

(3) C is defined as "Calculated - read-only", the calculation is A.rawValue + B.rawValue

Now I want to enable the user to type something they want in C (by pressing a button), so I have to disable the calculation (and the only attribute read, put to open).

I also want to restore calculation, if I want (by pressing a button).

I discovered several problems here:

==========

Disable the Calc

==========

(1) C.calculate.override = "disabled"; / / turn off calc

As this line does nothing, the calculation still occurs, nothing has changed.

Note that C is always read-only and the user cannot type in the box, but for now, I'm just pointing out that the calculation should have stopped.

(2) C.calculate.override = "disabled"; / / disable calc
C.Access = "open"; allow the user to type

It seems to work a little, but the calculation is ALWAYS done UNTIL the user actually type something in C.

So I tried to add this line to change the value of C, which prevents the user to type in C:

C.rawValue = 0;

This does not work, the rawValue of C does not change, the calculation is ALWAYS done UNTIL the user actually type something in C.

(3) I tried messing around with the code nothing works:

C.access = "open"; / / allow the user to type
C.rawValue = 0;
C.Calculate.override = "disabled"; disable the calc

* It seems that C.calculate.override done something only when C.access is used. *

==========

Select Calc

==========

(4) C.calculate.override = 'error'; / / restore calc

Does nothing.

(5) C.access = "readOnly"; / / the user cannot type
C.Calculate.override = 'error '; restoration of calc

Yet once does nothing.

(6) C.calculate.override = 'error'; / / restore calc
C.Access = "readOnly"; the user cannot type

Nothing more.

I tried almost everything, mixing the code, try 'warning' instead of the error and so on.

* I can't restore the calculation after you stop it *.

Am I missing something here?

I can't attach files, I could email the PDF file so that you guys can waste his time with her.

LC ARE 2; Acrobat/Reader 9.4 9.4

Thank you very much

Concerning

Shivan

I got it

This will restore the initial calculation in the digital field.

NumericField1.access = "readOnly";

NumericField1.calculate.override = 'error ';

NumericField1.value.overide = '0 '.

NumericField1.execCalculate ();

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for