On Apr 13, 2012, at 9:19 AM, Ron X wrote:

>     @Override
>     public WOActionResults defaultAction() {
>         NSArray<Chart> result = 
> EOUtilities.rawRowsForSQL(session().defaultEditingContext(), 
> Chart.ENTITY_NAME, "SELECT count(*), sum(size)");
>         
>         return pageWithName(Main.class);
>     }
> 

> ERROR 47.15 MB used/33.91 MB free [WorkerThread0] 
> (ERD2WDirectAction.java:480) (Error) - Error with action 
> default:com.webobjects.eoaccess.EOObjectNotAvailableException: 

The second argument is the Model name, not the entity / table:

> databaseContextForModelNamed: cannot find model named Chart associated with 
> this EOEditingContext, formValues:{}

and the sql must be a complete sentence; SELECT ... FROM table;

HG



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to