In Prolaborate, users such as reviewers can review diagrams that have been modified recently by their teams via Reports Widget.
Reports Widget is a reporting functionality of Prolaborate. Using this widget, users can fetch data from the model and display them in a table format. The Reports widget can be added to the dashboard for ease of access.
Though the Reports widget can be used in various scenarios, this article will focus on how the recently modified diagrams are reported and how users can view those diagrams by clicking on the name of the diagram on the report.
Users can write a query and save it as a Report. They can then represent the same result in a different format by reusing the same report on different types of charts & reports.
To create a profile, click on Menu > Report Configuration.
On the Report Configuration page click on Create Report.
Click Skip to Query to navigate to the query section. Enter the query and Save the Report.
The clickable attribute allows the user to view the Properties of a specific attribute, from Properties window upon clicking on the attribute name. Through the Properties window, users can locate the diagram on the repository browser and more.
To enable Name attribute as Clickable attribute, add “ea_guid as classguid” in the query.
Query if you are using the MSSQL server
select top 10 name, ea_guid as classguid, 'Diagram' as type, ModifiedDate from t_diagram where ModifiedDate >= DATEADD(day,-7, GETDATE()) order by ModifiedDate desc
select top 10 name as clickable_DiagramName, ea_guid as classguid, 'Diagram' as type, ModifiedDate from t_diagram where ModifiedDate >= DATEADD(day,-7, GETDATE()) order by ModifiedDate desc
Query for MySQL server
select name, ea_guid as classguid, 'Diagram' as type, ModifiedDate from t_diagram where ModifiedDate BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE() order by ModifiedDate desc limit 0, 10
The above query generates reports capturing the top 10 diagrams that have been modified, updated or newly added in the last 7 days. To increase the time, change the day count “7 Day” in MySQL server and “day-7” in MSSQL.