1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Development Standards
  3. Data processing
  4. Data processing and modification

Writing events to the user operations history

  • Data processing and modification
    • Transactions: rules of use
    • Using managed lock mode
    • Locking object data for editing from code
    • Responsible data reading
    • Reading specific object attributes from the database
    • Writing events to the user operations history

Scope: managed applications.

User history automatically records events of interactive adding or change of infobase objects (documents, catalog items, and other). We recommend that you also record in the history other user actions that result in writing objects. For example: "Put file" command for the Files catalog item.

To add events to user history, use the UserHistory object of the UserHistoryManager type. Example:

&AtClient
Procedure PutFile(Command)
  // Placing a file in the database
  // …
  // Adding the event to the user history
  UserHistory.Add(GetURL(Object.Ref));
EndProcedure

© 2020-2021 1C INTERNATIONAL LLC www.1Ci.com Support policy