How to set filter value from client side code in report

Hello All

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

Thank you



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/q-bgmVKD-zwJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 


I have tried something like this but its not working

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


On Friday, September 14, 2012 7:26:49 PM UTC+5:30, Madhukar Bansode wrote:

Hello All

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

Thank you



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@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,

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

On 14-Sep-2012, at 7:38 PM, Madhukar Bansode <ma...@indictranstech.com> wrote:


I have tried something like this but its not working

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


On Friday, September 14, 2012 7:26:49 PM UTC+5:30, Madhukar Bansode wrote:
Hello All

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

Thank you



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@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.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

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…!!!






On Sat, Sep 15, 2012 at 10:02 AM, Rushabh Mehta <rm…@gmail.com> wrote:

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

On 14-Sep-2012, at 7:38 PM, Madhukar Bansode <ma...@indictranstech.com> wrote:


I have tried something like this but its not working

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


On Friday, September 14, 2012 7:26:49 PM UTC+5:30, Madhukar Bansode wrote:
Hello All

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

Thank you



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@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.







You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
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.



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.