Skip to main content

Insert and modify data with dojo editable table (etable)

1 reply [Last post]
cronico
Offline
Joined: 2008-02-18
Points: 0

Hi, i want to create a simple application that insert and modify date from a table.

It's possible to use a Dojo Editable Table for update exsisting data in a table? If it's possible how can i do it?

To insert a new row in a Dojo Editable Table i can create a button 'new row' that create a blank new row and than with the 'update process' i fill in the data. How can i do that?

Sorry but i don't speakk very well english.
Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carlavmott
Offline
Joined: 2005-02-10
Points: 0

You can see examples of this in the functional tests which you can download. Look at the index.jsp file for how to specify the actions on the buttons which addRows, clear or updateRows. Look at the glue.js file which shows how to build the publish messages for the table. Get the tests from: https://ajax.dev.java.net/servlets/ProjectDocumentList?folderID=6844&exp...

Get the file called jmaki-tableModel-jsp.zip

The data is hard coded in the test but you can access a server side component using the jmaki.doAjax call which returns JSON formated data for the table. The format needs to follow what is specified on the data model wiki pages.

See http://wiki.java.net/bin/view/Projects/jMakiTableDataModel for the data format.