Re: Limit WORepetition Sourced From Relationship
Re: Limit WORepetition Sourced From Relationship
- Subject: Re: Limit WORepetition Sourced From Relationship
- From: Geoff Hopson <email@hidden>
- Date: Sun, 29 Aug 2004 20:05:54 +0100
There is a 'count' binding on WORepetition. Never used it myself, always
done the array trick. I guess you will have to bounds check it, maybe?
Geoff
On Sun, 2004-08-29 at 19:19, Hunter Hillegas wrote:
> Yeah, this will work fine and is simple - I was just wondering if there
> was a WO trick I was missing for this seemingly common task.
>
> On Aug 29, 2004, at 11:13 AM, Kaj Hejer wrote:
>
> > At 10:59 -0700 29-08-04, Hunter Hillegas wrote:
> >> I am a little reluctant to ask this question as it seems like it must
> >> have been covered before. I tried a mailing list search and a look at
> >> WOCode but didn't find what I was looking for...
> >>
> >> Anyway, I have a WORepetition that gets its data from a entity
> >> relationship. I want to limit the number of related objects
> >> displayed. Is there an easy way to do this?
> >
> >
> >
> > Hi!
> >
> > One way of doing this is to ccreate a method which returns a NSArray
> > in the class for the entity or the component and bind this method to
> > the the list of the WORepetition. This method reads the objects for
> > the entity relationship and just returns the number you want.
> >
> >
> > -Kaj :)
> _______________________________________________
> 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.
_______________________________________________
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.