Support Article
Unable to display team name in audit trail instead of work group
SA-56434
Summary
The requirement is to display the team name in the audit trail instead of the work group name that the user is assigned to.
For example, the audit displays 'MyWorkgroup@org'. However, the requirement is to display 'MyWorkgroup'.
Error Messages
Not Applicable.
Steps to Reproduce
Launch the application and view the audit trail.
Root Cause
The pyAssignedToWorkGroup value is used to display the data in the audit trail. The audit history can be modified to display the data as desired.
Resolution
Perform the following local-change:
- Use a SQL function in the pyGetWorkHistoryWithLatLong report. There are two existing SQL function alias rules that are helpful: pxSubstring and pxFind
- Create a new function alias based on the two SQL alias rules which returns the index and string prior to the @ character
Use a custom property and Declare Expression. To optimize the new property, add the exposed column to the database table manually and restart the server.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.