• 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
[RESOLVED]Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RESOLVED]Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship


  • Subject: [RESOLVED]Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • From: email@hidden
  • Date: Tue, 17 May 2011 11:28:16 +0200 (CEST)
  • Message-context: email-message

Hi All,

I converted my project in wonder, and TB method work great.

Thanks a lot
========================================

Message du : 16/05/2011
De : "Travis Britt " <email@hidden>
A : email@hidden
Copie à : email@hidden
Sujet : Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship


On May 16, 2011, at 10:00 AM, email@hidden wrote:
So what about this ? including a variable in a url :
in WOD 
picture : WOImage {
src = ""http://webserver/person/mini/">http://webserver/person/mini/"${^person.id}".jpg";
}

Quick and dirty, lots of assumptions, top of my head, might not compile, non-Wonder solution follows. But, really, use Wonder. Even its implementation of acquiring the pk has a lot of advantages over the old busted impl in EOUtilities.

picture : WOImage {
    src = "">}

Component's java class:

public String urlForImage() {
    Object primaryKey = EOUtilities.primaryKeyForObject(person.editingContext(), person).valueForKey("id");
    return "http://webserver/person/mini/" + String.valueOf(primaryKey) + ".jpg";
}

ERAttachment makes stuff like this really easy. It's in Wonder:

http://www.wocommunity.org/podcasts/WOWODC09E-PracticalWonder.mov

tb


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)

  • Prev by Date: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • Next by Date: Re: build.xml: Content is not allowed in prolog.
  • Previous by thread: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • Next by thread: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • Index(es):
    • Date
    • Thread