• 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: when is derived column resolved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: when is derived column resolved


  • Subject: Re: when is derived column resolved
  • From: Paul Hoadley <email@hidden>
  • Date: Wed, 13 Jan 2016 08:11:38 +1030

Hi Ted,

On 13 Jan 2016, at 6:49 am, Theodore Petrosky <email@hidden> wrote:

> I have an Entity with a derived column. Entity Person, real attributes firstName, lastName, derived column fullName firstName || ' ' || lastName.
>
> the derived column only shows up when I first run the app. when I add new people, the derived column is blank. even login out and back in does nothing. But when I stop the app and relaunch it, the derived column resolves and I see what I expect.

Derived attributes are computed by the database, and so only updated when the EO is fetched into memory. To update the derived attribute, you would need to cause the EO to be re-fetched from the database.

> 1. should I go back to creating a method on Entity Person fullName that returns a string concatenating first and last names?

Probably, yes.


--
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
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


  • Follow-Ups:
    • Re: when is derived column resolved
      • From: Theodore Petrosky <email@hidden>
References: 
 >when is derived column resolved (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: when is derived column resolved
  • Next by Date: Re: when is derived column resolved
  • Previous by thread: when is derived column resolved
  • Next by thread: Re: when is derived column resolved
  • Index(es):
    • Date
    • Thread