In my current set up, I am working with a large On-Premise Database data set; TRUCKLOG : 40,000 records. I display a limited amount of this data in a gallery, TRUCKGALLERY, based on filtered criteria where LOADS<>INVOICED. From here, I have users "form fill" other information with some editable TEXT INPUTS. The user then clicks the UPDATE button, which saves all updated information by creating a collection TRUCKCOLLECTION, and then click the SUBMIT button, which patches everything through to back to the database.
Problem: The above works fine, UNTIL my TRUCKGALLERY has more than 15 records. It takes forever because it is patching the whole TRUCKCOLLECTION, even if there was no change in the record. I was wondering of there is any way to identify and ONLY collect records that have been changed in the TRUCKGALLERY.
Attempts: I added a label "RECORDCHANGE", and set this to "N". I am currently trying to change it to "Y" whenever there is a change to any of the editable fields. This is so that when the user clicks UPDATE, the app can just collect the TRUCKGALLERY where RECORDCHANGE = "Y". I have not been successful in doing this, because can not find anything that changes RECORDCHANGE to "Y". The closest I have reached with no errors was by adding 'CHANGERECORD'.Text = "Y" , to the OnChange field of the Editable Text Inputs, but it does absolutely nothing.
Is there another property that can successfully change RECORDCHANGE to "Y"?
Is there perhaps another way to identify and ONLY collect records that have been changed in the TRUCKGALLERY?