I have a table PROJECT.
I have a table HOUR to record hours for each project
My project static hasMany = [hours:Hour]
My hour static belongsTo = [project:Project]
To link to all items of hours that belong to a project:
In the detail.list, I used
gui:dataTable id="myDataTable"
controller="hour"
action="byProjectJSON"
columnDefs
however, the params.id is not preserved....
so I need to add the params.id here in order to select the project:
params='[id:"${params.id}"]'
sortedBy="person"draggableColumns="true"
the following posts had enlightened me:
http://n4.nabble.com/gui-dataTable-td1461918.html
http://stackoverflow.com/questions/689375/yui-datatable-howto-have-just-one-paginator
Tuesday, April 20, 2010
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment