• 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 to skip items in a WORepetition ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to skip items in a WORepetition ?


  • Subject: Re: How to skip items in a WORepetition ?
  • From: Mark Morris <email@hidden>
  • Date: Thu, 29 Jun 2006 16:28:29 -0500

Hello Gavin,

This may not be elegant enough ;-) but you could just wrap the contents of the WORepetition in a WOConditional.

Regards,
Mark

On Jun 29, 2006, at 4:13 PM, Gavin Eadie wrote:

I want to display the contents of an NSArray and WORepetition is the perfect dynamic element to do that. However, I want to complicate the world and be able to suppress some of the entries based on some computation performed on each Array element.

It seems I can do this at least two ways:

(1) ... filter the original NSArray through the computation to make a new NSArray and use that.

(2) ... play games with the processing of the WORepetition so it skips items.

The former isn't hard, obviously, but since WORepetition is already iterating across all the element of the array, I wonder if the latter is possible.

I have a *.wod which is, in part:

   LoopOverUsers: WORepetition {
      list = userList;
      item = thisUser;
   }

and I have implemented getThisUser / setThisUser methods in the component, so control passes through these methods for each element of the array. But is there something I can do to defeat WORepetition's rendering of some elements ? My guess is NO, but there are smarter people than I on this list ... thanks, Gavin

_______________________________________________ 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: 
 >How to skip items in a WORepetition ? (From: Gavin Eadie <email@hidden>)

  • Prev by Date: Re: Binding synchronization timing problems
  • Next by Date: Re: How to skip items in a WORepetition ?
  • Previous by thread: How to skip items in a WORepetition ?
  • Next by thread: Re: How to skip items in a WORepetition ?
  • Index(es):
    • Date
    • Thread