I have written a script to calculate a foreign currency amount based on an exchange rate. I store the exchange rate as a global field.
I allow the user to specify whether to do the calculation to all records in the found set or only the current record.
If I specify current record only and add a value for exchange rate, everything works fine.
However, if I specify all records in the found set and specify a value for the exchange rate, the value used is the value stored in the field prior to invoking the script and the new value is not stored. Adding a commit step after the calculation does nothing. I have also tried Set Field instead of Insert Calculated Result and that does not work either.
The script above has the custom dialog with TLSA_ExchangeRate as the Input Field.