Render problem

Render problem

CdyaCdya Posts: 12Questions: 5Answers: 0

Hello supports

Now I need to sum targets: 5 in render 2 like this

return (+row.subjects_d.Exam4 + +row.subjects_d.ExamFinal, target5);
{
                "render": function ( data, type, row ) {
                    return (Math.round((+row.subjects_d.Exam1*3 + +row.subjects_d.Exam2*3 + +row.subjects_d.Exam3*3)/3));
                },
                
                    "targets": 5,   
            },
            {
                "render": function ( data, type, row ) {
                    return (+row.subjects_d.Exam4 + +row.subjects_d.ExamFinal);
                },
                
                    "targets": 6,   
            },

Answers

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    That doesn't look like valid Javascript to me - the + + should be throwing an error in your browser's console. Is it?

    Allan

This discussion has been closed.