On Tue, May 15, 2012 at 11:56 AM, paragasu <parag...@gmail.com> wrote:
> Hi Derrell,
>
> Thank you for the reply.
> I did try to read the code but i still do not get the concept and how to
> filter the data.
>
> what do i need to do after i call model.newView(...) ?
>
Nothing. The view itself contains the filter. Looking
at
qooxdoo-contrib/SmartTableModel/trunk/demo/tree/source/class/smart/demo/Application.js,
the views map is defined beginning at line 52. A view can contain various
functions. Looking at the "Read" view beginning at line 66, you'll see that
it defines a "filter" member, which is a function that returns true if the
row's "Read?" column is true. The "Unread" view, at line 58, works the
opposite.
> It will be really good if there is more simple example demo.
This is a sophisticated data model, so the examples are fairly
sophisticated as well.
> Somehow i failed to get the tree demo
> working because it need timezone external library that i have no idea
> where to get.
>
Take a look at this demo's config.json file
(qooxdoo-contrib/SmartTableModel/trunk/demo/tree/config.json) and you'll
see that in the library list, it includes another contrib, identified by
its manifest file: "../../../../TimezoneDate/trunk/Manifest.json". If you
downloaded the entire qooxdoo contrib, that path should be correct for you.
It sounds like you downloaded only SmartTableModel, though, so you'll have
to download TimezoneDate as well, to use this demo.
Cheers,
Derrell
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel