---
title: "doo.report"
url: "https://help.tabidoo.cloud/en/article/dooreport"
language: "en"
last_updated: "2025-12-23T10:52:22.792Z"
---

# doo.report

In JavaScript, it is possible to open a predefined data report in a pop-up window. You need to know the report ID (required) and, if applicable, the record ID (optional) for which you want to load the report (if it is a single-record report).

You can open the report form from, for example, the FreeHtml widget or another client script (in the edit form, WF button, etc.).

## Functions

-   **`async openReport(options: IOpenReportOptions): Promise<void>`**  
    Open report in a modal window.   
    *options (IOpenReportOptions):*  
    \- reportId: string; // Report identifier.  
    \- title?: string; // Report window title.  
    \- reportId: string; // Report identifier.recordIds?: string | string\[\]; // One Record ID string or list of Record IDs strings to generate the report for.

  

Example #1 - open a report for two selected records (single-record report with multiple records allowed) 

```typescript
await doo.report.openReport({ 
	reportId: 'ba3054f0-4f42-468f-879d-c83f5cc939ac', 
	title: 'My report title', 
	recordIds: [doo.model.id,'4afb7462-f72a-44dd-bec5-ed5c65dc6fd4'] 
});
```

Example #2 - open a report for the entire table (or a predefined filter in the report) with minimal options

```typescript
await doo.report.openReport({ 
	reportId: 'ba3054f0-4f42-468f-879d-c83f5cc939ac' 
});
```
