You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.8 KiB

  1. Creating Reports
  2. ================
  3. Reports can be created and saved using the Report Builder. A report is saved in a record of type
  4. "Search Criteria"
  5. A Report is a SQL query that runs on the server side. The report builder builds the SQL query:
  6. * Column selector
  7. * Filters
  8. * Sorting
  9. Using the Search Criteria you can customize this query by adding
  10. * more tables
  11. * more conditions
  12. * post-processing server side code
  13. * styling the report with HTML by setting color etc.
  14. Filters
  15. -------
  16. Filters appear in the report on fields where "In Filter" is checked in DocType
  17. Saving a Report
  18. ---------------
  19. Once you have selected the columns, you can save the report by the "Save" button on the toolbar. After saving
  20. you can open the "Search Criteria" record by the "Advanced" button.
  21. In the Search Criteria, you can customize various parts of the report by setting the fields
  22. Seeing the Query
  23. ----------------
  24. To see the query that has been generated, check the "Show Query" check box at the bottom of the "Result"
  25. section.
  26. Adding Joins
  27. ------------
  28. If you want to join the selected table with another table, then you can add the table in the "Additional
  29. Tables" field. Note all tables in the database are named as "tab" + DocType name
  30. .. note::
  31. Whenever you add tables, conditions, use the standard way of naming the fields as `tablename`.`fieldname`
  32. Over-riding the query
  33. ---------------------
  34. You can completely customize a query using the Override field. Note, when you write a query it has to be in
  35. the :term:`Standard Query` format.
  36. Adding Scripts
  37. --------------
  38. Using scripts, you can:
  39. #. Add / remove filters
  40. #. Add columns (for example row totals)
  41. #. Add rows (for example column totals)
  42. #. Modify values
  43. #. Get values from other tables etc
  44. #. Add color to the values (from client side)