From: David H. <pro...@ma...> - 2009-07-10 23:06:28
|
I had been using this code successfully and for some reason it no longer works: public WOActionResults showExcelAction() { ListPageInterface lpi = (ListPageInterface)D2W.factory ().pageForConfigurationNamed("ListExcelPerson", session()); EOArrayDataSource ds = new EOArrayDataSource(null, session ().defaultEditingContext()); System.out.println("this is the person list for the excel spreadsheet" +(NSArray)aProject.persons()); ds.setArray((NSArray)aProject.persons()); lpi.setDataSource(ds); lpi.setNextPage(this.context().page()); return (WOActionResults)lpi; } The System.out.println prints out the array, but when the excel spreadsheet generates, there are headers present, but no content. Is there something I have messed up? David |