How to set filter value from client side code in report

57 views
Skip to first unread message

Madhukar Bansode

unread,
Sep 14, 2012, 9:56:49 AM9/14/12
to erpnext-dev...@googlegroups.com
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

unread,
Sep 14, 2012, 10:08:56 AM9/14/12
to erpnext-dev...@googlegroups.com

I have tried something like this but its not working

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

Rushabh Mehta

unread,
Sep 15, 2012, 12:32:40 AM9/15/12
to erpnext-dev...@googlegroups.com
Madhukar,

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.

best,
Rushabh



W: https://erpnext.com
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 erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ZyNC4VPns7IJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Madhukar Bansode

unread,
Sep 15, 2012, 1:58:28 AM9/15/12
to erpnext-dev...@googlegroups.com
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
www.indictranstech.com


DECLAIMER
This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit http://www.indictranstech.com/  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
Forward
0 new messages