WHEN-MOUSE-LEAVE and WHEN-VALIDATE-ITEM on Forms 10g block
Hello,
I am working on upgrading a form (6i to 10g) that has both WHEN-MOUSE-LEAVE and WHEN-VALIDATE-ITEM triggers.
The block is structured as follows:
item A item B item C item D result 1 result 2
====================================
result 1: computed based on item A,B,C,D
result 2: computed based on item A,B,C,D and result1
User can change values in item A,B,C and D. Somehow, the computations were duplicated on each item using WHEN-MOUSE-LEAVE and WHEN-VALIDATE-ITEM triggers at item level.
Question 1: Is moving the computation to a block level WHEN-VALIDATE-ITEM necessary. Requirement is that the user should be able to see the changes on RESULT1 and RESULT2 before saving the form, meaning that as soon as the value in item A, B, C or D changes, user should be able to see the new value of RESULT1, RESULT2.
In addition, this should happen whether the user is working with the mouse or keyboard.
Any pointers ?