Server side scripting matching columns from ajax request
Server side scripting matching columns from ajax request
Hi,
I am trying to return a query from a server side database, and add a calculated field to the results. The only issue is that when you add the fields to the javascript request you have to match the requested fields exactly to the database fields. Has anyone written anything like this?
I'm thinking that I'm going to have to intercept the column list in some way, and fake it.
Thanks
Shaun
I am trying to return a query from a server side database, and add a calculated field to the results. The only issue is that when you add the fields to the javascript request you have to match the requested fields exactly to the database fields. Has anyone written anything like this?
I'm thinking that I'm going to have to intercept the column list in some way, and fake it.
Thanks
Shaun
This discussion has been closed.
Replies
You can add as many columns as you want coming back from the server-side - they don't need to 1:1 map to the database. Here is an example which adds a link tag: http://datatables.net/forums/comments.php?DiscussionID=1388
Allan