Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  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

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Frappe Script Report Filter Implementation с