Hi,
David den Boer a écrit :
[...]
2. You can fetch using :
public static NSArray rawRowsForStoredProcedureNamed
(EOEditingContext ec, String name,NSDictionary args)
This will return an array of NSDictionary (raw rows).
If this is being used to display results, you are best to leave
them as raw rows and just put a repetition over the array of rows.
Bind your iterator to a dictionary and then use key value coding to
get columns out of the dictionary (be sure to use column names as
the key, not your fancy attribute names). When a user needs to
inspect a row from this list, turn that one row back to an EO using :
public static EOEnterpriseObject objectWithPrimaryKeyValue
(EOEditingContext ec, String entityName, Object value)
You can also use EOEditingContext method to turn a raw row into an EO:
public EOEnterpriseObject faultForRawRow(NSDictionary row,
String entityName)
Francis Labrie, System Architect, OS communications informatiques -
Your communication engine
[EMAIL PROTECTED] | Phone: (450) 676-1238 ext. 27 | Fax: (450) 676-5276
_______________________________________________
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to archive@mail-archive.com