I'm trying to build a pivot-table javascript application with jQuery, and I want to let the user defines its own calculated fields (just as seen on Excel!).
So, if f1, f2, f3 are the columns of the table, users can define a custom field as c1 = (f1 + f2)/f3 just by typing (as I can do with Excel).
I guess I need a parser, to make sure that:
- f1, f2, f3 are valid table fields (while f4 is not)
- there are no invalid symbols.
Any suggestion (ready-to-use plugins, examples,...?)?
Thank you