Displaying only log of a specific type

By default, when adding the log to the report, every log entry is displayed, which can result in a very voluminous report. If you are only interested in some type of log, it is possible to filter all others.

For this tutorial, we want to display only the log of type Analysis modified (motivated change).

This is defined by the Action type of the log.

Possible Action value

Action

Value

FileCreation

0

FileImport

1

FileCopy

2

FileCopyFrom

3

FileMove

4

FileRename

5

FileExport

6

FileSetReadOnlyFlag

7

FileSetOwnership

8

FileSetCategory

9

FileDelete

10

MethodModified

11

AnalysisModified

12

MethodModifiedWithMotivatedChange

13

AnalysisModifiedWithMotivatedChange

14

ExportToComparison

15

ImagesExport

16

ProfileExport

17

StepExecution

18

InstrumentExecution

19

StepAccept

20

StepRedo

21

StepAbort

22

RedoAnalysis

23

ReportExport

24

ReportPrint

25

ImportFromAnalysis

26

PartialExport

27

MethodExecution

28

ComparisonModified

29

SubstanceVialChanged

30

FileSetNotes

31

FileRestore

32

FileSetESign

33

Simple filter

  1. If you don’t have an user template yet, please first duplicate an existing template (see Report templates).

  2. Then download it to an empty folder. You will get a file structure like in Report temporary files structure (expect that neither PDF file or index.html would be present).

  3. Edit the tlcLog.html file by adding a condition Action equal 14 (AnalysisModifiedWithMotivatedChange) on each log entry :

    {{#each TlcLogTree}}
         {{#ifCond Action 14}}
         <div class="tlcLogRoot">
             {{dateFormat Timestamp}} - {{User}} - {{Client}}: {{Message}}
             {{#each Children}}
             {{> tlcLogItem}}
             {{/each}}
         </div>
         {{/ifCond}}
    {{/each}}
    
  4. Upload the template in visionCATS and try it.

Filtering and only the motivated text

If you are only interested in the text entered for the motivated change, it is possible to remove every effective change from the report.

  1. If you don’t have an user template yet, please first duplicate an existing template (see Report templates).

  2. Then download it to an empty folder. You will get a file structure like in Report temporary files structure (expect that neither PDF file or index.html would be present).

  3. Edit the tlcLog.html file by adding a condition Action equal 14 (AnalysisModifiedWithMotivatedChange) on each log entry, and removing the Children iteration :

    {{#each TlcLogTree}}
         {{#ifCond Action 14}}
         <div class="tlcLogRoot">
             {{dateFormat Timestamp}} - {{User}} - {{Client}}: {{Message}}
         </div>
         {{/ifCond}}
    {{/each}}
    
  4. Upload the template in visionCATS and try it.