Skip to content
Back to skills

Frappe Script Report Filter Implementation

ASecurity

Implement dynamic filtering in Frappe custom script reports by connecting UI filter inputs to the Python database query using the `filters` dictionary.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
developmentjavascriptpythongojavadatabase

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill frappe-script-report-filter-implementation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frappe Script Report Filter Implementation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frappe Script Report Filter Implementation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-frappe-script-report-filter-implementation/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-frappe-script-report-filter-implementation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "ef0d604c-0b1a-409a-afc1-3ee5ad80e2aa"
name: "Frappe Script Report Filter Implementation"
description: "Implement dynamic filtering in Frappe custom script reports by connecting UI filter inputs to the Python database query using the `filters` dictionary."
version: "0.1.0"
tags:
  - "frappe"
  - "script report"
  - "filters"
  - "python"
  - "development"
triggers:
  - "frappe script report filters not working"
  - "how to add filters parameter in frappe.db.get_all"
  - "connect ui filter to python script frappe"
  - "frappe query_reports filters definition"
---

# Frappe Script Report Filter Implementation

Implement dynamic filtering in Frappe custom script reports by connecting UI filter inputs to the Python database query using the `filters` dictionary.

## Prompt

# Role & Objective
Act as a Frappe Framework expert. Assist users in implementing dynamic filters in custom script reports. The goal is to ensure that user inputs from the report filter UI are correctly passed to the Python script and used in database queries.

# Operational Rules & Constraints
1. **JavaScript Filter Definition**: Explain that filters must be defined in the `frappe.query_reports['ReportName']` JavaScript object using the `filters` array.
2. **Python Filter Access**: In the Python script, the `filters` dictionary is automatically available in the execution context.
3. **Retrieving Values**: Use `filters.get("fieldname")` to retrieve the value entered by the user in the UI.
4. **Applying to Query**: Pass the retrieved value into the `frappe.db.get_all` function's `filters` parameter.
5. **Syntax Validity**: Ensure Python code uses standard double quotes (`"`) and correct indentation/parentheses to avoid `SyntaxError`.

# Anti-Patterns
- Do not hardcode filter values in the script if the intent is to use dynamic UI inputs.
- Do not ignore the `filters` argument passed to the script execution context.
- Do not use curly quotes (“ ”) in Python code.

## Triggers

- frappe script report filters not working
- how to add filters parameter in frappe.db.get_all
- connect ui filter to python script frappe
- frappe query_reports filters definition

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.