i have a table
Fields
class 1
class 2
class 3
class 4a1
10
240
340
401a2
12
270
340
405a3
12
270
340
405a4
15
270
360
405a5
17
720
530
450
i have this in grid as well as in Json.store , what i have to do is perform mathematical calculation each time the grid is refreshed by “table name”.reconfigure(….. , ….)
consider the column “class1” ,
value(a5) = ( value(a1)+ 2*value(a2) + 3*value(a3) ) /value(a4)
can anybody please help he on this problem ,
I will be very very Thankful for help 🙂
As I’m not sure what aspect of the problem you are having difficulty with, I’ll address both at a high level.
Generally speaking you want to have your reconfigure method update the Ext Store, which will then trigger an event that the Grid should handle. Basically, change the Store and your Grid will be updated automatically.
As far as generating the correct new row… it seems fairly straightforward – a rough pass: