Hi Doug,
Can you check something.
check the dataset read/write permission.
Calling onCurrentIndexChanged() on a write-only dataset causes an error.
Next what you should try is :
add the dataset.onReady() inside the populateCalculatedFields function.
Let me know how it works out.