Design problem (EOF Gurus) [WO 4.5 ObjC & Win2000]

Sigthor Hrafnsson <[email protected]> Tue, 18 Mar 2003 12:15:46 +0000
Newsgroups gmane.comp.web.webobjects.devel,gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hi

I'm designing a system where the user can create an web-interface by making 
tables (HTML) and putting attributes to them.
The tables are then used as a bases for page design, a table can be 
inserted into a TD another table into
the inserted TD and so on. When a table is put into a TD, the table is 
selected from a popup and the TD with a checkbox.

1. The EO setup I have at the current time is Table 1---* TableRow 1---* 
TableData, this is used to construct the table it self. (and its fine)
2. For the insertion of table into a TD I have Table *---* TableData. 
(problematic)

Now for the problem (with an example).

Let's say I have 3 tables, A, B and C. They all have two TD, let's call 
them 1 and 2. (no need to involve the TRs)
1. I set A as the root table on the page.
2. I add table B to A1 and A2. (here the problem surfaces, B in A1 & A2 is 
the same instance)
3. I add table C to B1. (Here the problem appears)

Table C is added to both B tables because the (B) instance used when the 
relationship was done (with A) is the same one.
What I would like to happen is for C to only appear in one B table.

A possible solution is to create a new instance of every table added to TD, 
or copy. But this is problematic because
the user is selecting a table to be added to TD from popup, I do not want 
to replicate the same table name in the popup, so the
user could be seeing 5 table A's in the popup. I have also heard something 
about copying EOs is not a good idea? (anybody)

Sorry for the complex explenation, I could not find a simpler one :)


   __    Með kveðju / Regards
/__/\   Sigthor Hrafnsson
\__\/   [email protected]
                 IPSoft inc.