Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Change Log History

2022-10-24
2022-12-16
  • duvanmoreno - 2022-10-24

    Hi fellas,
    We have a program running on the web, I was wondering if you know if there is any way to create a change log history, so that when any of the users make any change in the GUI (change any value, settings,etc.) is shown in a table saying who made it, what time was it and what was changed. thank you

     
    πŸ‘
    1
  • ignat - 2022-11-17

    the possible way could be using of EVENT messages for Alarm Logging, but you have to program it all.
    E.g., when you change some value with dialog, you can detect value changing and rise event (or just on dialog opened / dialog closed). And write new message in Alarm Logging (LATCH variable can be used for representation of analog values changed) from plc code.

    read more for about events on codesys help
    https://help.codesys.com/webapp/_cds_call_event_alarms;product=codesys;version=3.5.16.0

    to detect 'who made it' you have to write from Visu picture like GVL.wsCurrentUserName := VisuElems.CurrentUserName (but important to make it from picture) to some temp Variable and use it as another LATCH. So it could work for multiple users and multiple webVisu clients system.

     

    Last edit: ignat 2022-11-17
  • j-zauner - 2022-12-16

    Hi,

    maybe the OnValueChanged event is helpful for this kind of application.
    I think that you can implement a global event listener and pass the current client or the current user and so on.

    Regards
    Julian

     

Log in to post a comment.