update values of changed cells into database using
Hi all,
I have to design a page which looks like a metrics i.e. in the column part it has all the headers like PLExplanation, Date, BookName1, BookName2, BookName3, BookName4 etc. listed and in the row part it is having the row number. now the intersecting cell will contain the datas. Upon Clicking that cell, user will be presented with a Menuwindow in which he can select the options like Edit or Audit. In the menuwindow when you select edit option, the cell becomes editable and the user can change the value. But, it should not update immediately into the database but it should store that value for that cell temporarily and when user presses finally the Submit button all the values stored into these table cells should be updated. But the catch here is, only those cell values which are changed should be updated, not all the cell values.
The Problem is we need to store the temporary value for the cells and in one shot when Admin presse the Submit button it should Update all the Updated cellls. Difficulty lies in storing the values for cell, bcoz we need to use something like structure to store the values and in Javascript there is nothing like structure. Also there is problem in keeping track of which cells are updated. bcoz lets say, we have a 50 by 50 metrics then we can not update all the 2500 cells, wherein user might have chnged just a very few Cell values.
I am searching for the solution from past 4 days and still I haven't come to any conclusion. I hope u guys have understood my Problem and will try to help me in finding the solution for this, incase u or your colleage have worked on similiar kind of problem.
Thanks a lot for atlest reading my Problem. incase you have an elegant solution for this then please provide it.
chandru
|