I have built a dataset that requires user updates on a regular basis. I am using page code to update individual fields in the dataset because they need calculation and I can control the timing of the ‘database update’ all in one place for all processes I am working on.
I have encountered situations where $w(“#dataset1”).setFieldValue, even though it is properly formatted and working in some rows of the dataset, ceases to work in other rows with the same data. Console.logs show that the data is being correctly manipulated and placed into the correct variable for loading, as in: $w(“#dataset1”).setFieldValue(“fieldName”, calculatedvalue).
I use ‘next’ and ‘back’ buttons to move through the dataset.
Any idea why this would stop working when it was working properly before? My console.logs show everything seems fine, but the dataset does not update, and if I try to use dataset.save() i get a timing error on the console.