Lapas

Tuesday 13 September 2016

Lotusscript and Computed for Display fields

Problem description:
Have a computed for display field in notes form. Add button to form with lotusscript code like:
1) get value with getItemValue - you have value from computed for display
2) refresh ui document
3) get value with getItemValue - you have no value from computed for display field
4) repeat operation with the same result

Resolution:
Put @Getfield("AnyField") formula in PostRecalc event
1) get value with getItemValue - you have value from computed for display
2) refresh ui document
3) get value with getItemValue - you have the actual value (if changes) from computed for display