Sako -
I used the supplied source and created a version that will use the
relationship instead. If you would like I could send it to you
-James Cicenia
On Mar 29, 2005, at 4:26 AM, wolip..atos.de wrote:
> Hello,
> the user in my application has the ability to choose some products(on
> the runtime).
> the products are objects from custom
> �
> ... class Product extends EOGenericRecord ...
> �
> to relate other objects to products i thought to use
> WOToOneRelationship component as a comboBox.
> �
> the problem is:
> WOToOneRelationship.dataSource needs EODatabaseDataSource Objects. in
> somehow its possible to create a fetch to fetch the products objects
> again from the Database.
> but...! why should i do that if it could go easier like
> �
> ��� // this is the relationship method in Customer class.
> ��� public NSArray products()���� {
> ������� return (NSArray)storedValueForKey("products");
> ��� }
> �
> of course the problem here that customer().products() method returns
> objects from type Product and not EODatabaseDataSource.
> �
> 1. i cant understand why should WOToOneRelationship use
> EODatabaseDataSource at all?
> 2. what's wrong on using objects from type EOGenericRecord
> respectively custom classes like Product.
> 3. what is the solution for using the custom objects from class
> Product in the WOToOneRelationship component without fetch the objects
> from the database using EODatabaseDataSource.
> �
> thanks in advance,
> �
> Sako.
This archive was generated by hypermail 2.0.0 : Tue Mar 29 2005 - 09:33:35 EST