Report: Setting value for filter field

Hello;

In the reports: I need to set the value of filter field from javascript or python, I need it to be set automatically based on the selection of another filter field.

Example: I need to set the customer_name field once the customer field is selected.

Normally we do this in the document using cur_frm.add_fetch('customer', 'customer_name', 'customer_name') but how can we do this in the reports code?

Regards
Bilal

are you got solution???

frappe.query_report.filters[2].set_input(“Your filter data”);

filters[“your filter position”]

					frappe.query_report.filters[11].set_input("my_data");
					frappe.query_report.set_filter_value("my_data", my_data);

Same situation i faced

I tried both methods

In the first method
Uncaught TypeError: Cannot read properties of undefined (reading ‘set_input’)

In the second method

When i load doesn’t get loads, but automatically gets load at the second time and show’s the data