djavaui / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Additional parameters in form data on update #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Thanks for this great plugin.

I'm facing the requirement that when a cell is updated and sumbitted to a 
service, I need to add to that request a timestamp with the r
etrieval date of the original request of the the table. This is needed to do a 
server side staleness check of the metadata of the table
. I found no way to accomplish this except in a fnOnEditing function adding the 
timestamp to the submitted value as VALUE::1310741518719, but that gives me all 
sorts of headaches in both the client and the service. 
It would be nice if there would be a way of adding additional parameters to the 
form data that get submitted for an update.
Is there a way to do this?

I'm using version 1.3 of jquery.dataTables.editable.js with 1.8.1 of DataTables.

Paul

Original issue reported on code.google.com by p.bak...@sourcesense.com on 15 Jul 2011 at 3:41

GoogleCodeExporter commented 8 years ago
I'm sorry for originally posting this as a defect. I couldn't find how to set 
is as an enhancement.
As a follow-up to myself, I'm sending a patch file (based on version 1.3) that 
adds an oUpdateParameters property to the initialization that would allow to 
provide extra parameters to an update service call, similar to the 
oDeleteParameters property.
Could you have a look and see if it makes sense to adopt?

Cheers,
Paul

Original comment by p.bak...@sourcesense.com on 26 Jul 2011 at 6:35

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Paul,

Sorry for this very late response but I have been away for a longer time and I 
didn'thave a chance to answer ont he issues.

Thank you very much for this patch. I really appreciate when someone post me 
enchancement. I'm preparing the verison 2.0 of plugin and in this verison I 
have included your patch. I'm still testing this version.

Thanks,
Jovan

Original comment by joc...@gmail.com on 15 Sep 2011 at 9:25

GoogleCodeExporter commented 8 years ago
Version 2.0 with your patch is placed on the site.

Original comment by joc...@gmail.com on 16 Sep 2011 at 7:32

GoogleCodeExporter commented 8 years ago

Original comment by joc...@gmail.com on 22 Sep 2011 at 8:42