How to set filter value from client side code in report

Skip to first unread message

Madhukar Bansode

Sep 14, 2012, 9:56:49 AM9/14/12
Hello All

I m looking for set the dynamic value to filter in a report and load report for given filter.

Thank you

Madhukar Bansode

Sep 14, 2012, 10:08:56 AM9/14/12

I have tried something like this but its not working

this.filter_fields_dict['KAM Report'+FILTER_SEP +'KAM'].value='Smita Mahile';

Rushabh Mehta

Sep 15, 2012, 12:32:40 AM9/15/12

It is really difficult for me to comment on something like this, because I don't really know the sequence of what you are trying to do.

Look at sample reports in erpnext (in the search_criteria folders for how it is done in other reports).

Also take a look at the code (report_builder.js) and understand how it works.


T: @rushabh_mehta

You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to
To unsubscribe from this group, send email to
To view this discussion on the web visit
For more options, visit

Madhukar Bansode

Sep 15, 2012, 1:58:28 AM9/15/12
Thank you rushabh for your reply,

But i got the solution, actually i am trying linking of reports based on the parameters sent from one report to another, those parameters will be set as filters value.

i found the solution, i used method
set_filter(doctype, label, value)

 thats Working..!!!!

Thanks and Regards,
Madhukar S Bansode
New Indictrans technologies PVT.LTD.
Cell No.+91-7709199414

This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit  to know more about New Indictrans Technologies Private Limited. This email is not spam. We follow 'US Unsolicited Electronic Mail Act of 2000', which states that an e-mail cannot be considered SPAM if it contains contact/removal information, which this e-mail does. This e-mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If, by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or it's attachment(s) other than by its intended recipient(s) is strictly prohibited. Any opinions expressed in this email are those of the individual and not necessarily of the organisation. Before opening attachment(s), please scan the attachment for viruses.". In case & if you do not wish to receive e-mail (the way you have received it today for what so ever cause or reasons) in near future? Reply back to this emai l saying "Remove e-mail ID". Within two working days your ID will be removed.

Reply all
Reply to author
0 new messages