Parcourir la source

Merge pull request #2188 from rohitwaghchaure/query_report_documentation

[Documentation] Fixed images in how to make report
version-14
Nabin Hait il y a 8 ans
committed by GitHub
Parent
révision
d71986c173
3 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. BIN
      frappe/docs/assets/img/script-report.png
  2. +3
    -3
      frappe/docs/user/en/guides/reports-and-printing/how-to-make-query-report.md
  3. +2
    -2
      frappe/docs/user/en/guides/reports-and-printing/how-to-make-script-reports.md

BIN
frappe/docs/assets/img/script-report.png Voir le fichier

Avant Après
Largeur: 1171  |  Hauteur: 403  |  Taille: 61 KiB

+ 3
- 3
frappe/docs/user/en/guides/reports-and-printing/how-to-make-query-report.md Voir le fichier

@@ -6,7 +6,7 @@ To create a new Query Report:


### 1. Create a new Report ### 1. Create a new Report


![Query Report](/assets/frappe_io/images/how-to/query-report.png)
![Query Report](/assets/query-report.png)


1. Set type as "Query Report" 1. Set type as "Query Report"
1. Set the reference DocType - Users that have access to the reference DocType will have access to the report 1. Set the reference DocType - Users that have access to the reference DocType will have access to the report
@@ -35,11 +35,11 @@ You can define complex queries such as:


### 3. Check the Report ### 3. Check the Report


![Query Report](/assets/frappe_io/images/how-to/query-report-out.png)
![Query Report](/assets/query-report-out.png)


### 4. Advanced (adding filters) ### 4. Advanced (adding filters)


If you are making a standard report, you can add filters in your query report just like [script reports](https://frappe.io/kb/reports/how-to-make-script-reports) by adding a `.js` file in your query report folder. To include filters in your query, use `%(filter_key)s` where your filter value will be shown.
If you are making a standard report, you can add filters in your query report just like [script reports](https://frappe.github.io/frappe/user/en/guides/reports-and-printing/how-to-make-script-reports) by adding a `.js` file in your query report folder. To include filters in your query, use `%(filter_key)s` where your filter value will be shown.


For example For example




+ 2
- 2
frappe/docs/user/en/guides/reports-and-printing/how-to-make-script-reports.md Voir le fichier

@@ -6,11 +6,11 @@ You can create tabulated reports using server side scripts by creating a new Rep


Since these reports give you unrestricted access via Python scripts, they can only be created by Administrators. The script part of the report becomes a part of the repository of the application. If you have not created an app, [read this](/developers/guide). Since these reports give you unrestricted access via Python scripts, they can only be created by Administrators. The script part of the report becomes a part of the repository of the application. If you have not created an app, [read this](/developers/guide).


> Note: You must be in [Developer Mode](/developers/how-to/enable-developer-mode) to do this
> Note: You must be in [Developer Mode](https://frappe.github.io/frappe/user/en/guides/app-development/how-enable-developer-mode-in-frappe) to do this


### 1. Create a new Report ### 1. Create a new Report


![Query Report](/assets/frappe_io/images/how-to/script-report.png)
![Query Report](/assets/img/script-report.png)


1. Set Report Type as "Script Report" 1. Set Report Type as "Script Report"
1. Set "Is Standard" as "Yes" 1. Set "Is Standard" as "Yes"


Chargement…
Annuler
Enregistrer