WOToOneRelationship dataSource conflict

From: wolip..atos.de
Date: Tue Mar 29 2005 - 05:26:13 EST

  • Next message: Daniel Muller: "Re: WOLips and OS X 10.3"

    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 - 05:27:14 EST