Any Example Code for Report Styling

report.beforerowprint = function(row){
  if(row.data[‘Amount’] > 20000) {
    row.style.color = ‘GREEN’;
  }
}
Please elaborate,,,,,, how to use it....? how to pass 'row' parameter how to get 'row'.. parameter???



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

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

 

 

Madhukar,

You are working on a very old version :) - I am sure you can look up the framework code and figure / fix it. Use grep on "beforerowprint" 

Seems like this function is called from the report widget with the row parameter passed when the report is being rendered..

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 21-Aug-2012, at 8:02 PM, Madhukar Bansode <ma...@indictranstech.com> wrote:

report.beforerowprint = function(row){
  if(row.data[‘Amount’] > 20000) {
    row.style.color = ‘GREEN’;
  }
}
Please elaborate,,,,,, how to use it....? how to pass 'row' parameter how to get 'row'.. parameter???



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

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.