Tracy, thanks for the resource links.

--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> 
wrote:
>
> Personally I do not want to wade through and analyze you code.  
Post the
> relevant parts as needed.
> 
>  
> 
> There is a partial list of resources.
> 
>  
> 
> Tracy
> 
>  
> 
> Flex sites/blogs:
> 
> Adobe:
> 
> http://www.adobe.com/devnet/flex/           DEVNET - start here!
> 
> http://www.adobe.com/products/flex/productinfo/faq/
> 
> http://www.adobe.com/cfusion/communityengine/index.cfm?
event=homepage&pr
> oductId=2
> 
> http://blogs.adobe.com/
> 
> http://weblogs.macromedia.com/mxna/
> 
> http://labs.adobe.com/
> 
> http://labs.adobe.com/community/
> 
> 
http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_us&view=sn610&;
vie
> wName=Adobe%20Exchange&avm=1
> 
> http://blogs.adobe.com/flexdoc/
> 
> http://nondocs.blogspot.com/2007/04/metadatapercentproxy.html
> 
>  
> 
> Other:
> 
> http://www.searchcoders.com/flex/
> 
> http://www.flexination.info
> 
> http://flexibleexperiments.wordpress.com/2007/03/14/flex-20-
primitive-ex
> plorer/
> 
> http://www.scalenine.com
> 
> http://www.flexcursion.com
> 
> http://www.theflexshow.com  
> 
> http://www.JeffryHouser.com
> 
> http://blog.digitalbackcountry.com/ . 
> 
> http://code.google.com/p/flexlib/
> 
> http://flexbox.mrinalwadhwa.com/
> 
> http://dougmccune.com/blog/
> 
> http://www.cflex.net/
> 
> http://www.quietlyscheming.com/blog/
> 
> http://www.everythingflex.com
> 
> http://www.waldosmeets.com/
> 
> http://www.jessewarden.com/
> 
> http://www.cbetta.com/blog/
> 
> http://www.cynergytv.com/
> 
> http://www.flexdaddy.info/
> 
> http://www.richinternet.de/blog/
> 
> http://www.brightworks.com/technology/overview.html
> 
> http://www.crossdomainxml.org/
> 
> http://flexsearch.org/
> 
> http://labs.flexcoders.nl/
> 
>  
> 
>  
> 
> Flex style Explorer:
> 
> 
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleEx
plo
> rer.html
> 
>  
> 
> Documentation:
> 
> http://www.adobe.com/support/documentation/en/flex/
> 
> http://livedocs.macromedia.com/flex/2/
> 
> http://www.adobe.com/cfusion/knowledgebase/index.cfm
> 
>  
> 
> Lists:
> 
> http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60
> 
> http://groups.yahoo.com/group/flexcoders/
> 
> http://groups.yahoo.com/group/flexcomponents/
> 
>  
> 
> Bugs/enhancement requests:
> 
> http://www.adobe.com/go/wish
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Alex Harui
> Sent: Wednesday, September 19, 2007 10:28 PM
> To: [email protected]
> Subject: RE: [flexcoders] Re: Cannot use 'filterFunction' from an
> HTTPService request
> 
>  
> 
> You can cut and paste it in email or post it online, but it must
> correlate to the questions you are asking.
> 
>  
> 
> Adobe doc should be good enough for this particular problem.
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of jovialrandor
> Sent: Wednesday, September 19, 2007 6:18 PM
> To: [email protected]
> Subject: [flexcoders] Re: Cannot use 'filterFunction' from an
> HTTPService request
> 
>  
> 
> Tracy, Alex, 
> 
> I will look into the documentation of HTTPService error. I am a 
> beginner of Flex and do not know all the resources available.
> 
> Can you point me to some resources besides the Adobe doc?
> 
> Thanks.
> 
> (ps. would it be more helpful to put my entire code online?)
> 
> --- In [email protected] <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > Those of us in this forum like to be helpful, but it is not our
> > responsibility to write code for you. You, however, must show 
some
> > diligence in exploring the documentation, verifying that errors 
> you get
> > are not simple mistakes on your part and asking appropriate 
> questions
> > with accurate information.
> > 
> > 
> > 
> > The code snippet you show below does not show that you applied 
the
> > filter in the result handler. In fact, it is very similar to the 
> code
> > you showed before which should also have generated the same 
> error. This
> > makes seem to me that you are not applying appropriate diligence 
> and
> > makes me not want to help you.
> > 
> > 
> > 
> > You can post again with accurate information including the
> > sanDataHandler code and we will try once more, but after that, 
you 
> may
> > not get much more assistance. 
> > 
> > 
> > 
> > Before you post again, please try to fix the errors yourself. 
Note
> > that: filterFunction is applied to the collection, not 
> HTTPService.
> > The collection is either the result of the service call or will 
be
> > generated by the list class based on the resultFormat.
> > 
> > 
> > 
> > -Alex
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:[email protected] <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of jovialrandor
> > Sent: Wednesday, September 19, 2007 4:42 PM
> > To: [email protected] <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Re: Cannot use 'filterFunction' from an
> > HTTPService request
> > 
> > 
> > 
> > Okay I added it to the result handler. here is the error message 
> > that i get:
> > 
> > "1119: Access of possible undefined property filterfunction 
> through a 
> > reference with static type
> > mx.rpc.http.mxml.HTTPService"
> > 
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> 
> > <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> 
> " 
> > layout="vertical"
> > creationComplete="initApp();" 
> > backgroundGradientColors="[#c0c0c0, #808080]" 
> > xmlns:mxeffects="com.adobe.ac.mxeffects.*">
> > 
> > public function initApp():void
> > {
> > 
> > sanData.send(); 
> > 
> > sanData.filterFunction=processFilter;
> > }
> > 
> > <mx:HTTPService id="sanData" url="someAPIURL"
> > result="sanDataHandler(event)" 
> > showBusyCursor="true"/>
> > 
> > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui" <aharui@> wrote:
> > >
> > > Typically you apply the filter in the result handler
> > > 
> > > 
> > > 
> > > ________________________________
> > > 
> > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > 
> > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of jovialrandor
> > > Sent: Wednesday, September 19, 2007 3:27 PM
> > > To: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> <mailto:flexcoders%
> 40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Cannot use 'filterFunction' from an
> > > HTTPService request
> > > 
> > > 
> > > 
> > > So how do i get the data from the HTTPService before I can 
> activate 
> > > the filterfunction?
> > > 
> > > thanks
> > > 
> > > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > , "Alex Harui" <aharui@> wrote:
> > > >
> > > > Now I'm really lost. I don't think there is a filterFunction 
> on an
> > > > HTTPService object.
> > > > 
> > > > 
> > > > 
> > > > initApp() is being called in creationComplete and there's no 
> > > guarantee
> > > > that the service has returned data by then.
> > > > 
> > > > 
> > > > 
> > > > ________________________________
> > > > 
> > > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > 
> > > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > ] On
> > > > Behalf Of jovialrandor
> > > > Sent: Wednesday, September 19, 2007 1:16 PM
> > > > To: [email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > <mailto:flexcoders%
> > 40yahoogroups.com> 
> > > > Subject: [flexcoders] Re: Cannot use 'filterFunction' from an
> > > > HTTPService request
> > > > 
> > > > 
> > > > 
> > > > Alex, I have the results returned in tin initApp function:
> > > > 
> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> 
> > <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> 
> 
> > > <http://www.adobe.com/2006/mxml 
<http://www.adobe.com/2006/mxml>
> <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> > 
> > 
> > > > <http://www.adobe.com/2006/mxml 
<http://www.adobe.com/2006/mxml>  
> <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> >
> > <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml>
> <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> > 
> 
> > > " 
> > > > layout="vertical"
> > > > creationComplete="initApp();" 
> > > > backgroundGradientColors="[#c0c0c0, #808080]" 
> > > > xmlns:mxeffects="com.adobe.ac.mxeffects.*">
> > > > 
> > > > public function initApp():void
> > > > {
> > > > 
> > > > sanData.filterFunction=processFilter;
> > > > sanData.send(); 
> > > > 
> > > > }
> > > > 
> > > > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > > 40yahoogroups.com>
> > > > , "Alex Harui" <aharui@> wrote:
> > > > >
> > > > > When do yo apply the filter? initApp probably gets called 
> > before 
> > > > the
> > > > > results return.
> > > > > 
> > > > > 
> > > > > 
> > > > > ________________________________
> > > > > 
> > > > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > > 40yahoogroups.com>
> > > > 
> > > > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > > 40yahoogroups.com>
> > > > ] On
> > > > > Behalf Of jovialrandor
> > > > > Sent: Wednesday, September 19, 2007 9:09 AM
> > > > > To: [email protected]
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > <mailto:flexcoders%
> > > 40yahoogroups.com> 
> > > > > Subject: [flexcoders] Cannot use 'filterFunction' from an 
> > > > HTTPService
> > > > > request
> > > > > 
> > > > > 
> > > > > 
> > > > > I want to setup a datagrid that can filter from a 
textfield. 
> I 
> > > have 
> > > > > data coming back from an API using the HTTPRequest tag. I 
> know 
> > > the 
> > > > > filterFunction only works with ArrayCollection, but I 
> thought 
> > > that 
> > > > > the data returned was in form of a ArrayCollection.
> > > > > 
> > > > > However when I try to use the following function, it gives 
> me 
> > an 
> > > > > error.
> > > > > 
> > > > > public function initApp():void
> > > > > {
> > > > > 
> > > > > // Set filter function // Be careful to set 
> > > > > filterFunction // only after ArrayCollection has been // 
> > > > > populated. 
> > > > > // sanData.filterFunction=processFilter;
> > > > > }
> > > > > 
> > > > > public function processFilter(item:Object):Boolean
> > > > > {
> > > > > var result:Boolean=false;
> > > > > 
> > > > > // If no filter text, or a match, then true 
> > > > > if (!item.name.length
> > > > > || item.Expr2.toUpperCase().indexOf
> > > > > (txtFilter.text.toUpperCase()) >= 0)
> > > > > result=true;
> > > > > 
> > > > > return result;
> > > > > }
> > > > > 
> > > > > Here is the HTTP call
> > > > > 
> > > > > <mx:HTTPService id="sanData" url="someAPI"
> > > > > result="sanDataHandler(event)"/>
> > > > > 
> > > > > Thanks
> > > > >
> > > >
> > >
> >
>


Reply via email to