Hi,
I am new to DHIS2 and I am still trying to figure out how it works.
In particular, I would like to get notified through the audit mechanism about new DataValue.
So, I have entered the DataEntry app, and I was updating some values.
I noticed the following behavior.
If I click on a cell and enter a value, change the focus and then double click on the first cell, I cannot see any audit in the audit list. Instead, I would expect to see at least one audit entry which tells me that I have updated the content of that cell. To actually see an audit entry I have to re-enter the first cell, modify it and then change focus and reset focus on it. And, in this case, the value shown in the audit entry is not the
current data value, but the previous one.
If, instead of changing focus after entering a new value in the cell, I double click and just do something in the dialog (for instance saving a comment, even an empty one) then the audit event is fired with value the one I have entered.
So, I was wondering if this is the expected behavior. I mean, I would expect that any time I enter a new value in a DataEntry cell, and then I change focus, an audit event is fired, without the need to enter the comment dialog with a double click on the cell and modify it in some way.
Or am I missing something?
Hello James,
thank you for your reply. I am using DHIS2 version 2.33.0. I am using the docker image for it, which I have set up following the instructions at https://dhis2.github.io/2019/10/dhis2-and-docker/
Here are some screenshots which illustrate the two cases I was talking about.
I have entered the DataEntry app, select the OrganisationUnit, the DataSet and the period
I have entered a value in the first cell and changed focus going on another cell
I then have double-clicked again on the first cell and went to the audit list of the dialog, which is, as you can see empty. Here, instead, I would expect to see my first modification.
Then I went to another cell and entered a value, and double-clicked there and just saved an empty comment
Then I changed focus and went back to that cell, double-click and opened the audit list, which now shows my first modification to the cell.
So, at the end, what it seems weird to me is that I cannot see an audit entry when I first modify a cell without doing something in the comment/audit dialog, but I can only see it if I first make some modifications in the dialog.
I had to merge all the screenshot in one image because I am not allowed to upload more than 2 images, so apologies for the quality of the file.
It’s okay @isalvadori. Please try entering the test_data again and once you have finished, click on Complete under there. Try and revisit the cells to see if the audit trails are all visible or still not showing on the cell you entered data on…??
So I have tried it out on play demo server and the audit trail captures the previous values that the cell had. If you delete a value from the cell and replace it with a different value, the original value that was deleted shows up on the audit trail. it doesn’t just capture values entered; there has to be a modification to the cell for it to register the change on the audit trail. (for my case I had 4, then replaced it with 1 and below is my screenshot)
Ok, but isn`t a modification to the cell also passing from no value to a certain value?
I would expect an audit entry with value “null” (since the value in the audit is the previous one and not the current one).
If I wanted to react to changes in the cell, this means that I will never be notified from the audit list that a change has been made when I first enter a new value in a cell, but only when this value will be further modified. This seems a bit counter intuitive to me.