So, I think Form.Updates is broken and has been for a long time. The docs say it should only hold values of changes to a form. Not true for me. Appears to hold values for the entire record.
Goal: To easily detect if changes have occurred to a form being edited.
- I'd like to avoid setting code to every field's OnChange property to detect changes.
- Especially if Forms *appear* to have a built in function that handles this (Form.Updates).
- Form.Unsaved also appears to be broken. It always returns true for me in an Edit form. Even after Resetting the form.
As a work around, I thought I'd set a variable OnVisible of the form screen to
- Set(varOriginalRecord, Form.Updates).
- Form.Updates is a Record data type. This works fine.
But this does not:
- DisplayMode of Submit button
If(varOriginalRecord = Form.Updates, DisplayMode.Disabled, DisplayMode.Edit)
I get the error: "Invalid argument type"
