Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
getting filteredItems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Emanuele Ziglioli  
View profile  
 More options Feb 27 2012, 11:06 pm
From: Emanuele Ziglioli <theb...@emanueleziglioli.it>
Date: Mon, 27 Feb 2012 20:06:46 -0800 (PST)
Local: Mon, Feb 27 2012 11:06 pm
Subject: getting filteredItems
Hi again,

I'd like to fetch the filteredItems array from a dataview in order to
display it on a map.
Currently I can get the size of the dataview filtered rows and a
single item, or the whole lot.
But I can't get to filteredItems (it's private). Maybe there's a way
in Javascript (there must be a way, it's js!), currently trying with:

                 dataview.__proto__getFilteredItems = function(){
                    return filteredItems;
                 };

Any js ninja out there?

Cheers
E


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Leibman  
View profile  
 More options Feb 28 2012, 1:36 pm
From: Michael Leibman <michael.leib...@gmail.com>
Date: Tue, 28 Feb 2012 10:36:40 -0800
Local: Tues, Feb 28 2012 1:36 pm
Subject: Re: getting filteredItems

Filtered items are exposed by the DataView via the "getItem(index)" and
"getLength()" methods.

On Mon, Feb 27, 2012 at 8:06 PM, Emanuele Ziglioli <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emanuele Ziglioli  
View profile  
 More options Feb 28 2012, 11:11 pm
From: Emanuele Ziglioli <theb...@emanueleziglioli.it>
Date: Tue, 28 Feb 2012 20:11:36 -0800 (PST)
Local: Tues, Feb 28 2012 11:11 pm
Subject: Re: getting filteredItems

On Feb 29, 7:36 am, Michael Leibman <michael.leib...@gmail.com> wrote:

> Filtered items are exposed by the DataView via the "getItem(index)" and
> "getLength()" methods.

thank you, am a bit allergic to getters, coming from the java
world :-)
it would be nice to be able to access the whole array though, I could
display things all at once or calculate things like the data extent
without having to copy the whole array.
Next I want to understand how grouping works, that could be useful.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »