Hi, Is it possible to detect (with an API) if a user updated, inserted or deleted a record somewhere in the application? I put the save-icon on the panel and each time the user clicks it, api_application.doCommit is called. However, if there are no changes are pending, i would like to give a message that there is nothing to commit. Kind regards, Jan Willem |
Sorry, already found: api_datasource.isdmlnecessary. If Y a commit is necessary, otherwise it gives N. It appears that these checks are needed in master-detail forms. When you navigate to a new master, the details are queried, however BEFORE doing so, the form should check if the user modified a detail and give an alert. I have not yet seen that in any example and it's something to quickly overlook. KR Jan Willem |