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

asked 09 Sep '15, 09:14

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1231434
accept rate: 0%


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

link

answered 09 Sep '15, 10:33

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1231434
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9
×3

Asked: 09 Sep '15, 09:14

Seen: 641 times

Last updated: 09 Sep '15, 10:33


© Copyright Gerger 2017