Tool for Used Objects

RemcoRemco Member Posts: 81
Hello,

Does anybody know about a tool that can analyze if a object is being used by the users. So which reports are being used and which are not. I'm not talking about the Code Coverage. I also don't want to modify every object to create a logrecord when a object is being used.

Comments

  • matttraxmatttrax Member Posts: 2,309
    I'm not sure there is a way other than modifying the objects. When you run a report, or any code for that matter, it is accessing the compiled BLOB field from the object table. I guess if you could somehow look at that you could. I think others have tried unsuccessfully, though.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Maybe you can add code in function FindPrinter in codeunit 1, to log the ReportID? This function is executed, whenever a report is printed.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • nromainnromain Member Posts: 57
    Hi all,

    i know this is an old request but i'm facing exactly the same request. I have to count the number of times reports are launched so i decided to create a new table and to fill it in function FindPrinter of the codeunit 1. But the system return an error "you cannot make any changes until a transaction has been started..."

    So i understand the error message but i don't find another way to do. (I clearly cannot modify all reports)

    Thank you for your help

    Best regards,
  • mdPartnerNLmdPartnerNL Member Posts: 802
    I think Mark created a sample for this, please do a search. It has been done. The trick is use a temp table and when logging out save the data.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • nromainnromain Member Posts: 57
    Thank you !!
Sign In or Register to comment.