Select all check box on select of one check box in filter

Hi all,

I have check box in each row of of report.
 
Required Functionality:
  On the check of check box named as "Select All" in filter all check boxes in report should get selected.

Steps performed by me:   
  I have added a filter named as 'select_all'  in report.
  With jquery i am trying to access it like $('#select_all') ie. field_name

Problem:
  I am not getting access to check box

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.
See slickgrid examples / help to understand how checkboxes work.



On Saturday, October 5, 2013 12:37:12 PM UTC+5:30, saurabh palande wrote:
Hi all,

I have check box in each row of of report.
 
Required Functionality:
  On the check of check box named as "Select All" in filter all check boxes in report should get selected.

Steps performed by me:   
  I have added a filter named as 'select_all'  in report.
  With jquery i am trying to access it like $('#select_all') ie. field_name

Problem:
  I am not getting access to check box

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

I have gone through a example


then I have tried to implement it with erpnext for report

py code: http://pastebin.com/45LnYnrn for report. here I have inserted check boxes.

js code: http://pastebin.com/rgAa8rQN. Inserted a filter with field type as check box.

but I getting an error
"Uncaught TypeError: undefined is not a function"


What should i do?



On Sat, Oct 5, 2013 at 4:39 PM, rushabh <rm...@gmail.com> wrote:
See slickgrid examples / help to understand how checkboxes work.



On Saturday, October 5, 2013 12:37:12 PM UTC+5:30, saurabh palande wrote:
Hi all,

I have check box in each row of of report.

Required Functionality:
On the check of check box named as "Select All" in filter all check boxes in report should get selected.

Steps performed by me:
I have added a filter named as 'select_all' in report.
With jquery i am trying to access it like $('#select_all') ie. field_name

Problem:
I am not getting access to check box

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

I can't do all the leg work for your but your approach here is totally wrong.

Slickgrid has its own way of doing things and the checkboxes are not "permanent" - you can also see how checkboxes are generated here:

https://github.com/webnotes/wnframework/blob/master/public/js/wn/views/reportview.js#L316

https://github.com/webnotes/wnframework/blob/master/public/js/wn/views/reportview.js#L459

The trick is to catch the row that is checked / unchecked

- Rushabh


On Monday, October 7, 2013 3:56:37 PM UTC+5:30, saurabh palande wrote:
hi,

I have  gone through a example 


then I have tried to implement it with erpnext for report

py code: http://pastebin.com/45LnYnrn for report. here I have inserted check boxes.

js code: http://pastebin.com/rgAa8rQN. Inserted a filter with field type as check box.  

but I getting an error
 "Uncaught TypeError: undefined is not a function"


What should i do?



On Sat, Oct 5, 2013 at 4:39 PM, rushabh <rm...@gmail.com> wrote:
See slickgrid examples / help to understand how checkboxes work.



On Saturday, October 5, 2013 12:37:12 PM UTC+5:30, saurabh palande wrote:
Hi all,

I have check box in each row of of report.
 
Required Functionality:
  On the check of check box named as "Select All" in filter all check boxes in report should get selected.

Steps performed by me:   
  I have added a filter named as 'select_all'  in report.
  With jquery i am trying to access it like $('#select_all') ie. field_name

Problem:
  I am not getting access to check box

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.