Skip to main content

dynamic yahoo.dataTable

1 reply [Last post]
robertomz
Offline
Joined: 2008-04-15
Points: 0

hi, I´m developing a web application and I get data from multiple database table so that have no specific order, so I ordered them by columns, rows and data information between every column and row, I filled a string[] array with the columns headers other string[] with the row headers, and a string[rows][columns] with the data from row[0],row[1], etc and column[0], column[1], etc, now that I have this information I would like to know how can I dynamically create a dataTable and the model for the dataTable considering that each rows[], columns[] and data[][] arrays depend on a method that receives as a parameter the title of a group.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

You can dynamically create a data table. It's pretty easy and the column names can be customized. The format is described at:

http://wiki.java.net/bin/view/Projects/jMakiTableDataModel

By what you describe you should be able to easily feed data into a table with a little modification or using a jMaki Filter.

The wiki page also discusses the crud operations you can do on a table

Arun has a screencast on this topic at:

http://weblogs.java.net/blog/arungupta/archive/2007/11/screencast_web1.html

If you still have problems let us know.

Regards,

-GReg