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.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
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
- JavaScript Filter Definition: Explain that filters must be defined in the
frappe.query_reports['ReportName']JavaScript object using thefiltersarray. - Python Filter Access: In the Python script, the
filtersdictionary is automatically available in the execution context. - Retrieving Values: Use
filters.get("fieldname")to retrieve the value entered by the user in the UI. - Applying to Query: Pass the retrieved value into the
frappe.db.get_allfunction'sfiltersparameter. - Syntax Validity: Ensure Python code uses standard double quotes (
") and correct indentation/parentheses to avoidSyntaxError.
Anti-Patterns
- Do not hardcode filter values in the script if the intent is to use dynamic UI inputs.
- Do not ignore the
filtersargument 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
Установить Frappe Script Report Filter Implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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.
Как установить скилл Frappe Script Report Filter Implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Frappe Script Report Filter Implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic