Reports can be created and saved using the Report Builder. A report is saved in a record of type “Search Criteria”
A Report is a SQL query that runs on the server side. The report builder builds the SQL query:
Using the Search Criteria you can customize this query by adding
Filters appear in the report on fields where “In Filter” is checked in DocType
Once you have selected the columns, you can save the report by the “Save” button on the toolbar. After saving you can open the “Search Criteria” record by the “Advanced” button.
In the Search Criteria, you can customize various parts of the report by setting the fields
To see the query that has been generated, check the “Show Query” check box at the bottom of the “Result” section.
If you want to join the selected table with another table, then you can add the table in the “Additional Tables” field. Note all tables in the database are named as “tab” + DocType name
Note
Whenever you add tables, conditions, use the standard way of naming the fields as tablename.`fieldname`
You can completely customize a query using the Override field. Note, when you write a query it has to be in the Standard Query format.
Using scripts, you can: