My AC events appear in the “DEV: live events” tab in the management client ; they appear in the smart client when I select “Live update” ; actions configured are performed, alarms are triggered, etc… But in the event view, when I choose something else than “Live update”, they’re gone and don’t appear anywhere else. They don’t seem to be recorded.
This is not consistent with what the Demo AC does. I’ve found nothing relevant in the documentation.
Any hint on that issue would be greatly appreciated.
Thank you for the test, then please verify if you can see the events on Smart Client.
How to verify:
Please start Smart Client and go to Alarm Manager tab. Then click Setup and go to the setup mode. Click the bottom list and check if “Event” is selected on the left pane. IF not, please change it to Event. Then go out from the setup mode and see if you can see your events.
Thanks again. My events there are correctly displayed in that window (even older ones). So, they are indeed recorded.
I have the feeling there’s something I misunderstand on how the access control tab works.
I can see access events from the Demo AC plugin there, but not from mine, unless in Live Update mode as stated earlier. But even in Live Update, I see old events from the Demo AC plugin. Could it be related to the Search cardholders field ?
(even with “all events” selected in the filter there, I only see access events in the list from the Demo AC plugin. They are displayed even when the demo server is not running)
In the SearchCredentialHolders() method of my CredentialHolderManager, I run an async task to retrieve the card holders and immediately return an empty list. When the results come back, I fire events with FireCredentialHoldersInvalidated(). I have the feeling that this is why nothing appears (the filter returning immediately “no card holders”).
If I’m right, what would be the right method to do it ?
I thought I had the answer with the “partial” parameter of the search result, but I was wrong. So, I still have no idea of what is the right way to handle this :-/
Note: I modified my SearchCredentialHolders() method to run synchronously, and the behaviour is now even stranger.
When I enter in the Smart Client with the Access Control tab pre-opened, SearchCrendentialHolder() is called for everybody (a search with an empty string).
The Cardholders sub-tab contains the result with the persons after a little while.
The Events sub-tab still displays nothing, even if I change the date filter or click on the refresh button near the “search cardholders” field.
But when I select a card holder in the Cardholders sub-tab and then click on the “View cardholder events” button, I do see the results in the Events sub-tab.
And furthermore, if I then clear the search cardholders field, I’ve got all the results in the history, even those not related to a card holder !
But this is still not consistent with what I see from the Demo AC.
Edit: this is consistent with the Demo AC if I simulate an immediate answer (not asking the AC system, but providing mock-up data from the plug-in itself) : I get the access events for the persons I provide immediately, but nothing else. I begin to suspect this is a bug in the Smart Client :-/
Thank you for updating the post. I have asked AC expert team to see regarding this issue so you will get better help from them. Please wait for their reply. Thank you.
I’ve followed the example from GitHub at the beginning. I’ve then developed a complete plugin loosely based on that (and the project template).
I will try to explain the weird behaviour, which I think is part of the Smart Client with a few screenshots and a little narrative. Please, bear in mind that these are screenshots from a test AC system, with very few events.
When I open the Smart Client, the event screen displays some events which are always the same (NOT the result of the last session). Notice that no card holder appears in the search box.
Then I click on the ‘x’ to clear the search field. And I get the following result, totally different from the one I got when I opened the Smart client. Note that there are events not related to any cardholder.
This is the complete event history (although in the screenshot here, there’s only one person displayed).
What I don’t understand is the initial display. Intuitively, I would think that it should be either empty or the complete history, like the one I get after clearing the search.