This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Mar 3, 2014, 1:22 PM
10 Posts

User Activity Deletions (with code)?

  • Category: Application Development
  • Platform: All Platforms
  • Release: 9.0
  • Role: Administrator,Developer
  • Tags:
  • Replies: 3

Hi!

I have to get some statistics about Traveler usage and I believe that the "User Activity" info would be a good start.

There are some "C-api code" floating around, but I have not found any which get the Deletion info which is present since ODS48/8.0.

Has anybody seen some code or tool with this (or do I have to hack it myself)?

 

/*----- From C-API documention ----- */

typedef struct {
TIMEDATE Time; /* Time of record */
ACTIVITY_ENTRY_DETAILS_DUP AEDetails;
DWORD UserNameOffset;       /* Offset of the user name from the beginning of this memory block */
/* User names follow -- '\0' terminated */
} DBACTIVITY_ENTRY_EXTENDED;

 

typedef struct {
WORD DataReads; /* # of data notes read */
WORD DataAdds; /* # of data notes added */
WORD DataUpdates; /* # of data notes updated */
WORD DataDeletes; /* # of data notes deleted */
WORD NonDataReads; /* # of nondata notes read */
WORD NonDataAdds; /* # of nondata notes added */
WORD NonDataUpdates; /* # of nondata notes updated */
WORD NonDataDeletes; /* # of nondata notes deleted */
} ACTIVITY_ENTRY_DETAILS_DUP;
Mar 3, 2014, 11:44 PM
10 Posts
Any docunention of it?

... and IBM's site not working. 

This service is temporarily unavailable. Please try again later.

message code: 40

When I trying to download the C-API toolkit (to maybe get something from there about those undocumented structs which I need to use to get the deletion info from User Activity).

Is IBM's homepage some kind of playhouse for junior wannabes or why is it so often problems (very bad pr for an "IT company"!)?

For a long time, the only way to find my way in to passport was through Google... (new navigation and stuff once a week)!

 

Anyway, does anybody know if it's the Flags (- Reserved for future use. Specify 0L) of NSFDbGetUserActivity I have to fiddle with to reach DBACTIVITY_ENTRY_EXTENDED (and ACTIVITY_ENTRY_DETAILS_DUP)?

Mar 4, 2014, 3:21 PM
10 Posts
"www14" is up now, and i found something...

... in nsfdb.h (from "the Toolkit"):

STATUS LNPUBLIC NSFDbGetUserActivityExtended(DBHANDLE hDB, DWORD Flags, DBACTIVITYEXTENDED far *retDbActivity,
                                    DHANDLE far *rethUserInfo, WORD far *retUserCount);

 

There is no tracks of NSFDbGetUserActivityExtended in the "Documention databases" (IBM what are you doing, quality of documention is not so good nowadays?)!!

I'ill give it a try some day (I've allready delivered my "Traveler report" without any details of updates and deletions from the mobile units).

 

Apr 24, 2016, 12:01 PM
21 Posts
NotesUserActivity Class

This NotesUserActivity Class is a customizable LotusScript library that returns database user activity summary information. The usage statistics for the prior day, week, and month since user activity recording began is provided. The number of documents a user or server has read, added, updated or deleted during each session, with the most recent activity first, is returned.

This class returns information that is available from the Notes user interface via the File/Database/Properties menu item, Information tab, Activity section, User Detail button selection. User activity for the specified database must be enabled for this function to work.

The sample application containing the NotesUserActivity class is freely available with full source code. You can use it to immediately retrieve user activity for all / selected databases on a server. You can also customize the sample application or copy the NotesUserActivity class file into your own application.

It can be freely downloaded from our website at:

http://www.agecom.com.au/useractivity

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal