As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
How can I detect that a file was added then display a message to the share, then save the filename and username to a database in a table that I create ? What are the steps ?
Based on this question you asked about how to fetch data from a database via JavaScript, I'm going to assume you figured this out. Looks like you chose to use a Behavior, which is a good approach, but, as I noted in my response, you really ought to write to a separate database and stay out of Alfresco's schema.