• 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: Access a private variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access a private variable?


  • Subject: Re: Access a private variable?
  • From: Ricardo Strausz <email@hidden>
  • Date: Fri, 15 Jul 2005 11:39:18 -0500

Hola Sacha y Alex!

On Jul 14, 2005, at 6:48 PM, Sacha Mallais wrote:

displayGroup.queryMin().takeValueForKey ( someTimestampInThePast, "dateCreated" );
displayGroup.qualifyDisplayGroup();


This trims down the list of objects to 60 objects (which makes 3 batches). I would like to display that number (60) somewhere on my page. However, these are the results I get:

displayGroup.allObjects().count() 350 (the total number of fetched objects)

displayGroup.displayedObjects().count() 25 (the number that fit on that page), or 10 (for the last page)

displayGroup.setNumberOfObjectsPerBatch(0);
displayGroup.displayedObjects().count() 60 (the number of qualified objects -- this is what I want)



That seems like a bug to me. Maybe that's why I still don't use display groups. :-)

I do not think so! A display group "manages" 2 arrays; namely, allObjects and displayedObjects. Each has its own qualifier; well indeed the allObjects is qualified by the data source and the displayedObjects by the display group it self.


This has an adventge: while the data source hits the db with its qualifier, you can change the displayedObjects "in memory", which is faster.

Dino




-- Ricardo Strausz email@hidden Business Applied C Objects 恐龍 駝鳥 +5255 5437 8205


_______________________________________________ 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: 
 >Access a private variable? (From: Alex Johnson <email@hidden>)
 >Re: Access a private variable? (From: Sacha Mallais <email@hidden>)
 >Re: Access a private variable? (From: Alex Johnson <email@hidden>)
 >Re: Access a private variable? (From: Sacha Mallais <email@hidden>)

  • Prev by Date: Re: Access a private variable?
  • Next by Date: passing parameters to webboject application
  • Previous by thread: Re: Access a private variable?
  • Next by thread: Re: Access a private variable?
  • Index(es):
    • Date
    • Thread