thotakura ravi.chandu wrote:
> Hi David,
> Thanks for the reply.
>  
> exhibit.getDefaultCollection() itself seems to be not recognized.
Ravi,

Could you describe what you mean by "not recognized"? It should have 
worked. See
    http://api.simile-widgets.org/exhibit/2.2.0/scripts/exhibit.js
and search for getDefaultCollection.
Again, a URL to a live exhibit would help debugging tremendously.

David

>  
> Got the following from one of the discussions in the group.
> Exhibit.TabularView.prototype._reconstruct = function () {
>   var view = this;
>      var collection = this._uiContext.getCollection();
>      var database = this._uiContext.getDatabase();  
>      var currentSet = collection.getRestrictedItems();
> .........
> }
>  
> This seems to be giving the expected result but I do not want to 
> _reconstruct() the views.  So, I tried the following...
>  
> Exhibit.TabularView._uiContext.getCollection();
> Exhibit.TabularView.getCollection();
> Exhibit.TabularView.UIContext.getCollection();
> Exhibit.getCollection();
>  
> None of the above worked.
>
> Please help.
> Regards,
> Ravi.
>  
> On Thu, Mar 19, 2009 at 3:01 AM, David Huynh <[email protected] 
> <mailto:[email protected]>> wrote:
>
>
>     chandu wrote:
>     > Hi,
>     >
>     > database.getAllItems() gives all the loaded items.  Is there way to
>     > get only those items which are resulted after the filtering.
>     >
>     Please try
>        exhibit.getDefaultCollection().getRestrictedItems()
>
>     David
>
>
>     Live a beautiful LIFE.
>
>     >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to