Posted: 25 May 2016 21:40 EDT Last activity: 31 May 2016 8:35 EDT
Visibility condition on selected audit logs
The audit log is written on pyMessagekey. I want to keep visibility condition for selected audit logs based on work status and access group. Please share your thought to what I keep visibility condition.
The work object uses pyCaseHistoryContent section in order to display the Audit tab information. Here if you want to filter the list of Audit history based on some condition for example based on pyMessageKey value with “Item created.” log needs to be displayed then you can follow below steps:
Open pyCaseHistoryContent section then do the private edit.
Open the properties of 1st Repeat Grid in the section.
Add the When condition in General tab for row visibility with HistoryMssgKeyFilter inbuilt when rule as follows:
4. Save the pyCaseHistoryContent section.
5. Now open HistoryMssgKeyFilter when rule and do private edit with the condition as follows and save it:
6. Now open the work object which contains log information “Item created.” and also the other log informations in it. Then check the list of logs displayed in the Audit section which contains only log related to “Item created” after applying our filter as shown below with before and after applying result:
This way you can implement your own requirement accordingly Gyan.
Kindly let me know if this is what you are looking to implement.
Thank you for your reply. The dropdown for when rule picks the when rules from History-Work- Class or its parent classes in the inheritance path like History- and @baseclass and no when rule is visible from any other class. Please advise.
The standard harness Work-.HistoryandAttachments supports the standard display of history and attachments. You can override this rule for your applications, to change the layout, contents, or functions available. Alternatively, you can present the history section or attachments sections within a user form.
The standard section Work-.HistoryListView executes a standard list view ruleHistory-.HistoryListView.ALL. To change the columns or presentation, override this list view rule in the History-ZZZZ class, where ZZZZ is the name of a class group or work type in your application. (Do not override the section unless you are making advanced changes; it is not auto-generated.)