How to set filter in listing

Hi,

What we have?
We have added a select field named as Type in Lead with values Lead and First Timer. 
Now we are providing two different links on dashboard named as  
1. Lead 
2. First Timer 
which are linked to Lead Doctype 

What we want to do?
on click of first timer, list should display only those leads whose type is First Timer and on click of Lead only those records should get displayed whose type is lead.

Regards,
Saurabh



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



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

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
You can set filters before opening a list / report

https://github.com/webnotes/erpnext/blob/master/projects/doctype/project/project.js#L7


On Thursday, October 10, 2013 11:22:51 PM UTC+5:30, saurabh palande wrote:
Hi,

What we have?
We have added a select field named as Type in Lead with values Lead and First Timer. 
Now we are providing two different links on dashboard named as  
1. Lead 
2. First Timer 
which are linked to Lead Doctype 

What we want to do?
on click of first timer, list should display only those leads whose type is First Timer and on click of Lead only those records should get displayed whose type is lead.

Regards,
Saurabh



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



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

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

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


On Fri, Oct 11, 2013 at 10:11 AM, rushabh <rm...@gmail.com> wrote:
You can set filters before opening a list / report



On Thursday, October 10, 2013 11:22:51 PM UTC+5:30, saurabh palande wrote:
Hi,

What we have?
We have added a select field named as Type in Lead with values Lead and First Timer.
Now we are providing two different links on dashboard named as
1. Lead
2. First Timer
which are linked to Lead Doctype

What we want to do?
on click of first timer, list should display only those leads whose type is First Timer and on click of Lead only those records should get displayed whose type is lead.

Regards,
Saurabh



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



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

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

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




--
S.S.Palande



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



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

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

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