the model can be aware that it is used by the listview. the separation
here is that the listview is unaware of where or how its list is
built.

for database stuff i prefer using dataview, it has database semantics
more closely built into it.

-igor

On Mon, Jun 23, 2008 at 1:55 PM, Jürgen Lind <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am still a bit confused about one thing in the remark below: how can
> the model of the list view return the required items? Should not the model
> be unaware that it is used by a list view?
>
> J.
>
>>> in that case store the list of ids in your resultset as
>>> a property of the page. the model of the listview can then retrieve
>>> the subset of this list (based on the current page and number of items
>>> needed) and do a select from foo where id in ( subset of id list )
>>> query to retrieve the current window of data.
>
> --
> Dr. Jürgen Lind
> iteratec GmbH                Fon: +49 (0)89 614551-44
> Inselkammerstrasse 4         Fax: +49 (0)89 614551-10
> 82008 Unterhaching           Web: www.iteratec.de
>
> Sitz und Registergericht der iteratec GmbH: München HRB 113 519
> Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to