3.2.0

Updating cell value of a dynamic table

Hi,
The data for my ActiveWidget table comes from a URL as shown below
table.setURL("http://server:port/abc/xyz.do");
table.request();


I now want to update the value of a particular cell in the table and later save it back to the server.

I found some links on this forum for directly manipulating the cell value, but that's only applicable to static data.
myData[1][1] = "some text"; 
obj.getRowTemplate(1).getItemTemplate(1).refresh();


How can I update value of a particular cell when the table is formed from dynamic data?
How do I send this info back to the server to be able to save it?
Ram
November 11,
Beta 3 is supposed to add the add/delete/update rows functionality that will update the AW.XML.Table, but not the database. Updating the database itself is independent from AW.
You might want to look at the following posting to get an idea of how to communicate from Javascript to your database as a possible solution.

/javascript.forum.7911.5/server-side-filtering-ajax-style.html
Rick Villela
November 11,
Thanks for the update, Rick.

Would it also be possible to make changes to multiple grid cells and send all these changes in one shot to the server to update the data?
Ram
November 14,
Certainly. You would write a function to retrieve the changes to the cells and pass them to your sendRequest() function. Then you would write a backend (aspx, php, ...) handler to handle the request and update your database, then wait for the handleResponse() to wrap things up. It's probably worth waiting for AW 2.0 b3 to determine what additional functionality AW will have with regards to add/delete/update rows.
Rick Villela
November 15,
Thanks Rick.
That's nice. So, when is AW 2.0 likely to be released?
Ram
November 16,
AW 2.0 release schedule is posted on the website at:

http://www.activewidgets.com/general.faq.releases/2-0.html
Rick Villela
November 16,

This topic is archived.

See also:


Back to support forum