• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How shall I...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How shall I...?


  • Subject: Re: How shall I...?
  • From: Ricardo Strausz <email@hidden>
  • Date: Fri, 3 Jan 2003 17:47:01 -0600

I am tring to figure out how shall i create and connect (inside Interface Builder) the DisplayGroups of a 3-level relation > one-to-many:
A<-->>B<-->>C


I had try many different approches, but always ending with an unusable project.

I think that the model most be fine becouse it works inside D2J as it should.

I have never built a JavaClient app, so I don't know the issues involved. But I have built OPENSTEP/EOF apps using IB and display groups. I don't know what problems you're having, but maybe you need to connect the display groups with master-peer rather than master-detail associations (assuming this choice still exists :-) If I recall, master-detail associations fetch through their parent display group. I don't know whether this would work across 2 relationships.

In fact, I do also come from a similar background (NeXTStep 3.3) but in X many things has changed (e.g., the connections are in the opposite direction). The option master-peer do not exists. There are only the following:
master-detail, master-copy and detail-selection... i had try the 3 of them iin different configurations. Nothing until now!



Also, in order for detail objects to be fetched, the parent display group must have a non-null selected object. So detail B objects are fetched based on the selected A object. But then detail C objects are fetched based on the selected B object. Are you certain that the first B object is automatically selected after it's fetched so that the appropriate C objects can be fetched? This may be something that can be set programmatically but not in IB's Test Interface mode.

In fact, when in a "simple" one-to-many relation, after the "master DG" performs its fetch, the first element of the "detail DG" is selected (I suppose that behind the scenes the EOF is sending a selectFirst: mesage).



You could launch IB from a shell prompt with "-EOAdaptorDebugEnabled YES" as a command-line argument. Then you should see the SQL being generated in Test Interface mode. Maybe that would provide a clue to solving your problem.

this sounds like a very good hint... so I did try it: SURPRISE!!!!! with this flag, the test-interface fuctions perfectly (with the master-detail assosiation from C to B)... wired isn' it.



Also, as wonderful and amazing as Test Interface mode is, it doesn't work in all cases. Have you actually tried running your JavaClient app?



I did but the results where, more or less, the same...

Thanks Art, yours,
dino
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How shall I...? (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: How shall I...?
  • Next by Date: Apologies & Thanks
  • Previous by thread: Re: How shall I...?
  • Next by thread: Apologies & Thanks
  • Index(es):
    • Date
    • Thread