If I instantiate an object that has no custom class (so, an
EOEnterpriseObject), I can access its keys through valueFromKey(). How do I
access its relationships?
So, if I have a User object with a toCompany relationship, a custom class
would allow me to just call User.toCompany.companyName for instance.
However, if I try to do that with an EOEnterpriseObject, they don't exist.
No surprises really. Unfortunately, valueFromKey("toCompany"); doesn't get
me an EOEnterpriseObject containing the company record, so I'm somewhat at a
loss. There doesn't seem to be any obvious accessor methods for
relationships in EOGenericRecord, but ... I assume I'm just missing it. A
pointer to this would be appreciated. Doesn't need to be a complex answer
as long as it lets me look up what I want in the help.
As well, when I had problems with that, decided to just pass an
EOEnterpriseObject from one page to another using, essentially:
nextPage.setUser( userOb );
It seemed to like that well enough, but on the other end, accessing
properties of that object didn't seem to work. While the strings I had
previously passed bound quite nicely to WOStrings in the new page, binding
the EOEnterpriseObject's properties to it leaves me with blank strings. Am
I not allowed to pass an EnterpriseObject this way, or did I do something
wrong?
I'll be watching on the list, but you can feel free to email me directly if
that's better.
Standard disclaimer: New to WO, solid but rusty on Java, reasonable
programming experience not yet bolstered by much WO/EO work, so no need to
worry that I know nothing, just assume that I need to be pointed in the
right direction and will go from there.
Thanks to all the people who responded to my last question: I ended up using
EOQualifier and EOFetchSpecification instead of EOUtilities after
considering my options, and I'm happy with that.
- Geoffrey
--
Geoffrey Wiseman,
New Media Developer, Medium One Productions
[EMAIL PROTECTED] http://www.mediumone.com/ (416)361-2030
"here is little effie's head whose brains are made of gingerbread"