Activity Report Use Case
Sections
Prerequisites
- TypeScript
- Access to Datex Studio
- Create a feature branch in organization's report component package
Overview
The following are instructions to create a user activity report. It is meant as an example to enhance understanding of the report creation process.
This example will walk through the creation of the datasources and the report design for a user activity report. This report will be a recreation of a SSRS report that summarized the number of completed tasks per operation code by user. It utilizes inputs to generate the data - a single select warehouse, a multi-select operation code, and finally to/from date ranges for the completed activities.
Create the report
Start with creating the report to work with.
1. Click Reports in the left Datex Studio menu.
Existing reports for the component package will be listed.
3. Enter a unique Reference ID. Follow this naming convention: [component or verb-noun]_report. This example will use custom_user_activity_report. The Display name should be more end-user friendly. In this case, it will be User activity report.
The Description should indicate the report's intended use and differentiate it from other potentially similar reports.
4. Set the Access modifier to public to allow access across all component packages.
5. Select Continuous Layout for the report Type. This will allow the report to dynamically adjust to different data amounts without predefined boundaries, wrapping content across pages as needed.
Once all fields are completed, click the Create report button. The report editor will open automatically.
Create the data source
Before further work can be done on the report, the data for it needs to be defined for use in the report itself.
1. Inside in the new report, click on the Data dropdown and select Datasources.
This will open the Owned Datasources for this specific report.
3. Enter a unique Reference ID. Follow the naming convention: ds_[component or noun-verb]_[context]. For this use case, custom_ds_user_activity_report will be used. The Display name can mirror the Reference ID.
The Description should indicate the intended use for the datasource; in this case, it's for a user activity report and the description will indicate it.
4. Has onInit will not be toggled on for this datasource, while the Access modifier will be set to public. The option of private would also work as it won't be referenced outside of the report component being worked in, however for the sake of this example public will be used.
5. Select oData query for the Type. When the API URL field populates as a result, select FootPrintAPI. If the display name doesn't match exactly or populate automatically, choose the closet matching FootPrint API option.
Once all fields are completed, click the Create datasource button.
The Datasource configuration editor will open.
6. From the toolbar along the top of the screen click the Inputs buttons to open the Input parameters flyout.
7. Click the + Add button to open a row to start configuring.
8. Define the input parameters for the datasource that will be used in the report. This example will use Warehouse, Operation codes, Start Date and End Date.
Set these input parameters as follows:
-
Warehouse = warehouse_id
-
Type: number
-
-
Operations Codes = operation_code_ids
-
Type: number
-
Toggle on Allows multiple
-
-
Start Date = date_from
-
Type: string
-
Toggle on Required
-
-
End Date = date_to
-
Type: string
-
Toggle on Required
-
9. One all inputs have been defined, click the Apply button.
The flyout will close, returning focus to the datasource configuration editor.
10. From the Set of entities dropdown, select Tasks.
Tasks is selected here since the focus of the report is user activity. Activities such as picking, receiving, and inventory adjustments in Footprint are tracked as tasks, making this the ideal entity for this report.
11. About three lines down locate and click the + Apply transformation button.
Transformations are broken up by filters, group by, and aggregations.
12. From the Apply dropdown that takes the place of the + Apply transformation button, select Filter.
13. In the first empty field under Include results where..., start defining the filter conditions for the previously set input parameters.
Start with warehouse:
'WarehouseId eq ${$datasource.inParams.warehouse_id}'
Since the warehouse is an optional field, toggle off the Always apply condition button to turn on the Only apply condition when... setting. This will open an additional field to define the conditions under which the warehouse filter is to be applied. In this case only when it's selected.
$utils.isDefined($datasource.inParams.warehouse_id)
14. Under the warehouse filter just defined, click the + Add condition button to add an additional field for defining filtering conditions.
This field will be for operations codes, keeping in mind it will be for selecting and displaying multiple values:
'OperationCodeId in ${$utils.odata.formatValue($datasource.inParams.operation_code_ids)}'
Toggle off the Always apply condition button to turn on the Only apply condition when... setting since this is also an option field. This will open an additional field to define the conditions under which the operation code filter is to be applied. In this case, the operation filter will only be applied when it's selected.
$utils.isDefined($datasource.inParams.operation_code_ids)
15. Under the operation code filter just defined, click the + Add condition button to add an additional field for defining filtering conditions.
This field represents the start date. For the selected set of entities, Tasks, the relevant data point will be the task’s completion date and time CompletedDateTime. Since this value defines the beginning of the selected date range, it will be defined as greater than or equal to the specified "from date".
'CompletedDateTime ge ${$datasource.inParams.date_from}'
This input is required, so the Always apply condition setting can be left on and no additional definition is needed.
16. Under the start date filter just defined, click the + Add condition button to add an additional field for defining filtering conditions.
This field represents the end date. For the selected set of entities, Tasks, the relevant data point will be the task’s completion date and time CompletedDateTime. Since this value defines the end of the selected date range, it will be defined as less than or equal to the specified "from date".
'CompletedDateTime le ${$datasource.inParams.date_to}'
This input is also always required, so the Always apply condition setting can be left on and no additional definition is needed.
17. Under the end date filter just defined, click the + Add condition button to add an additional field for defining filtering conditions.
This field will be used to define the state all tasks filtered by should be in - completed. To do so StatusId will be used, meaning the system id of the status must be used. In this case it is 2.
'StatusId eq 2'
While this isn't an input, it is always required, so the Always apply condition setting can be left on and no additional definition is needed.
This is the last of the input filters.
18. At the end of the filter conditions section, locate and click the + Then apply button to open a drop down. Select Group by.
19. As this datasource is used for a report that displays activities grouped by individual Footprint users and selected operation codes, open the Group by field just under the previously selected field and select Employee from the dropdown.
20. Under the previously set Group by, click the + Then group by button to open another field. Select OperationCode from the dropdown field, and in the additional dropdown field that opens after selecting OperationCode, select Name.
This completes the grouping.
21. In the Aggregations section under the Group by fields, set Aggregate to $count and return as to total_completed_tasks to pull the data needed for the sum column of the report.
24. In the preview window, click the Input tab and set test input parameters. Remember that these are using IDs for warehouse and operation codes, not lookup codes so the values will be numerical.
Warehouse IDs will vary by organization; however, the operation code IDs are consistent. For this example, the following operation codes were used: receiving (2), putaway (3), picking (8), and shipment loading (24).
25. Once the input parameters are set, click the Preview tab. After the preview loads, click the onscreen Execute button to verify there are no errors and the data generated is accurate.
Once the datasource is verified, it's ready to be applied to the report.
Configure the report
Once the datasource is defined and tested the report configuration can begin using the datasource as the report data.
1. On the report editor toolbar, locate and click the Inputs button.
The input parameters flyout will open.
2. Click the + Add button to open a row and define an input. These will ultimately mirror the inputs defined when making the datasource:
-
Warehouse = warehouse_id
-
Type: number
-
-
Operations Codes = operation_code_ids
-
Type: number
-
Toggle on Allows multiple
-
-
Start Date = date_from
-
Type: string
-
Toggle on Required
-
-
End Date = date_to
-
Type: string
-
Toggle on Required
-
Once complete, click the Apply button.
3. Back in the report editor, save the change by clicking the Save button, before clicking the Datasource button.
This datasource flyout will open.
4. Click the + Add datasource button to open the Alias and Datasource fields. Type Data in the Alias field, then select the user activity datasource made in the previous section from the Datasource dropdown field.
This will open all the input parameters defined when creating the datasource.
5. Map the datasource input parameters to the previously defined report input parameters.
-
warehouse_id - $report.inParams.warehouse_id
-
operation_code_ids - $report.inParams.operation_code_ids
-
date_from - $report.inParams.from_date
-
date_to - $report.inParams.to_date
Once all fields have been completed, click the Apply button.
6. In the left-side toolbar, locate and click Tablix.
This will open the editor for the tablix. The group by and aggregation entities defined in the datasource will be displayed in under the Data Sets section.
7. Data sets can be dragged and dropped into where they apply in the tablix layout editor.
The report displays operation code task completion activity by employee with a total of tasks completed in the final column.
With this in mind, the data sets should be dragged and dropped as follows:
-
Employee - Row Groups
-
OperationCode_Name - Column Groups
-
total_completed_tasks - Values
Finally, check the Totals for Column Groups option in the Totals section.
8. After the data sets have been set, click on the equation "Σ" button within the total_completed_tasks Values field. This opens a menu of equation options. As the aggregation for this data set was applied in the datasource, no calculation is needed. Select the None option.
Once done, click OK. The editor will close and the tablix will be inserted into the report.
9. In the report layout editor, click on the inserted tablix if it isn't automatically selected. Use the move icon in the top left corner to drag the tablix where it's needed in the report. In this case, leave room at the top of the report for a title and filters.
10. Once the tablix has been moved to make space for the header and filters, locate and click on TextBox in the left-hand menu. This will insert a text box.
Like the tablix, the text box can be dragged where it needs to go in the report layout. Additionally, it can be resized by dragging the edges as needed. Once the textbox is in place type the report title "User activity report".
The toolbar along the top of the editor can be used to adjust the size of the font and boldness of the text insides the text box.
11. Continue to use the TextBox button to add three more boxes. Arrange the boxes that will be added together in the same row. These will be the from and to filters as well as the hyphen between.
12.Click on the far left text box to select, then click the option menu button (…) to open and select the Expression option.
The expression editor window will open.
13. In the expression editor window, open the Parameters menu on the left and select from_date. In the Expression textbox on the right, enter (@from_date), and click the Save button.
The window will close and the expression will be inserted into the text box.
14. Select the third text box from the left, and just as done in Step 16, open the menu with the ... button and select Expression.
The expression editor will open.
15. In the expression editor window, open the Parameters menu on the left and select to_date. In the Expression textbox on the right, enter (@to_date), and click the Save button.
The window will close and the expression will be inserted into the text box.
16. Select the second text box from the left, and enter a "-".
Adjust the text box size and placement as needed.
17. Return to the tablix and, for additional visual refinement, select and highlight all six visible cells.
In the Properties menu to the right, locate the Border section and select the Solid option.
18. Highlight just the top three rows of the table and use the top toolbar to bold and center the text.
Drag the edges of cells to expand the width of columns. As some operation codes may be a little longer, ensure they have enough space to populate.
19. Select the third from the left field on the bottom row and click on the option menu button, ..., when it's available to open the menu. Select the Cell Expression option.
The expression editor window will open.
20. In the expression editor, updated the value in the Expression field to (Sum(total_completed_tasks)) and click Save.
The expression editor will close and the displayed value in the tablix field will reflect the change made.
22. In the design preview window, click the Inputs tab if it is not already selected. Complete the preview input fields, keeping in mind that—just like the datasource—these inputs use IDs for warehouses and operation codes rather than lookup codes, so all values will be numerical.
Warehouse IDs may vary by organization; however, operation code IDs are consistent. For this example, the following operation codes were used: receiving (2), putaway (3), picking (8), and shipment loading (24).
23. Once all inputs have been entered, click on the Preview tab and the report preview will load. Review the output for accuracy and field orientation and placement.
Adjust textbox and tablix placement and styling as needed. Save and preview as needed to refine.
The user activity report is complete.
| Last Updated: |
| 05/14/2026 |













































