[flexcoders] Re: Filter an ArrayCollection into an ItemRender
Lets try to add more info. Theres a TileList with a ItemRenderer. The ItemRenderer code is: "MyArrayCollection" has (example)200 arrays with lot of data and some of them (example, 50 of them) have the same "url" value (url=www.test.com) . The linearChart has as dataprovider "collectionData". I want to filter the item renderer (and his linearchart) with this. The problem is that when i launch the app the tilelist and the itemrenderer repeat the same linearchart in all the renderers. I know im close!! Please help! --- In flexcoders@yahoogroups.com, "Scott Bachman" <[EMAIL PROTECTED]> wrote: > > I'm not sure I understand your question. You can certainly refer to data.Url > inside the item renderer. If you mean using a filterFunction with data.Url, > you would have to apply it inside you're item renderer and most likely make > a copy of your original ArrayCollection in each itemRenderer to apply the > filterFunction to so that each renderer is filtered without affecting the > others. > > Scott > > On Tue, Jul 22, 2008 at 4:00 AM, luis_roman_am <[EMAIL PROTECTED]> > wrote: > > > Thanks, Scott. Taking this way, i have another doubt. How can i refer > > (inside a item renderer) to the "data.Url" inherited from the > > dataprovider in the main application (index.mxml)? > > > > --- In flexcoders@yahoogroups.com , "Scott > > Bachman" > > wrote: > > > > > > > > The syntax you tried is e4x (ECMAscript for XML) and only works with XML > > > data. For an ArrayCollection you could use a filterFunction to > > filter the > > > data. Check out, for instance, > > > http://www.boyzoid.com/blog/index.cfm/2006/10/19/Filtering-Data-in-Flex > > > or the filterFunction property of ArrayCollection in the Flex > > documentation. > > > > > > Scott > > > > > > > > > > > > On Mon, Jul 21, 2008 at 9:28 AM, luis_roman_am > > > wrote: > > > > > > > Hi people! Situation as follows: > > > > > > > > MYARRAYCOLLECTION (Example fields) > > > > - TITLE > > > > - URL > > > > > > > > INDEX.MXML > > > > - TILELIST > > > > - DataProvider="{MyArrayCollection}" > > > > - ItemRenderer ="MyRenderer" > > > > > > > > MYRENDERER.MXML > > > > - LABEL (data.TITLE) (WORKS FINE) > > > > - LINECHART > > > > -DataProvider="Application.application.MyArrayCollection} > > > > (PROBLEM HERE) > > > > > > > > THe problem is: How can i filter linechart inside MYRENDERER.MXML the > > > > dataprovider to receive only data for the items with his URL? > > > > > > > > I tried something like: > > > > > > > > > > -DataProvider="Application.application.MyArrayCollection.(@Url=data.Url)} > > > > > > > > but this throws me the following error: > > > > > > > > Error #1123: Filter operator not supported on type > > mx.arraycollections. > > > > > > > > Please Help!! > > > > > > > > > > > > > > > > > > > > > >
[flexcoders] Re: Filter an ArrayCollection into an ItemRender
Thanks, Scott. Taking this way, i have another doubt. How can i refer (inside a item renderer) to the "data.Url" inherited from the dataprovider in the main application (index.mxml)? --- In flexcoders@yahoogroups.com, "Scott Bachman" <[EMAIL PROTECTED]> wrote: > > The syntax you tried is e4x (ECMAscript for XML) and only works with XML > data. For an ArrayCollection you could use a filterFunction to filter the > data. Check out, for instance, > http://www.boyzoid.com/blog/index.cfm/2006/10/19/Filtering-Data-in-Flex > or the filterFunction property of ArrayCollection in the Flex documentation. > > Scott > > > > On Mon, Jul 21, 2008 at 9:28 AM, luis_roman_am <[EMAIL PROTECTED]> > wrote: > > > Hi people! Situation as follows: > > > > MYARRAYCOLLECTION (Example fields) > > - TITLE > > - URL > > > > INDEX.MXML > > - TILELIST > > - DataProvider="{MyArrayCollection}" > > - ItemRenderer ="MyRenderer" > > > > MYRENDERER.MXML > > - LABEL (data.TITLE) (WORKS FINE) > > - LINECHART > > -DataProvider="Application.application.MyArrayCollection} > > (PROBLEM HERE) > > > > THe problem is: How can i filter linechart inside MYRENDERER.MXML the > > dataprovider to receive only data for the items with his URL? > > > > I tried something like: > > > > -DataProvider="Application.application.MyArrayCollection.(@Url=data.Url)} > > > > but this throws me the following error: > > > > Error #1123: Filter operator not supported on type mx.arraycollections. > > > > Please Help!! > > > > > > >
[flexcoders] Filter an ArrayCollection into an ItemRender
Hi people! Situation as follows: MYARRAYCOLLECTION (Example fields) - TITLE - URL INDEX.MXML - TILELIST - DataProvider="{MyArrayCollection}" - ItemRenderer ="MyRenderer" MYRENDERER.MXML - LABEL (data.TITLE) (WORKS FINE) - LINECHART -DataProvider="Application.application.MyArrayCollection} (PROBLEM HERE) THe problem is: How can i filter linechart inside MYRENDERER.MXML the dataprovider to receive only data for the items with his URL? I tried something like: -DataProvider="Application.application.MyArrayCollection.(@Url=data.Url)} but this throws me the following error: Error #1123: Filter operator not supported on type mx.arraycollections. Please Help!!
[flexcoders] Getting referer url
How would you do this? It´s possible to do this in actionscript without using javascript?
[flexcoders] Re: "SECURITY ERROR ACCESING URL" calling a web service
Hi! the tip by Tracy Spratt worked for me!! I needed yo keep working... Now i have to study the consequences of doing this in crossdomain.xml Thanks you all! Now i have sometimes another error (error 1085) wich i posted in another post. --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Thursday 12 Jun 2008, luis_roman_am wrote: > > Does not wor!! > > What happens ? Does the web server log even indicate the cross domain XML file > is requested ? > > -- > Tom Chiverton > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. >
[flexcoders] About Error #1085
Hi! Im trying to use a Webservice in Flex 3 but its FaultEvent.FAULT gives me "Error #1085: El tipo de elemento "p" debe terminar con la etiqueta final "" The web service works perfect if tested in web browsers. Any idea? Thanks in advance. Luis
[flexcoders] "SECURITY ERROR ACCESING URL" calling a web service
Hello! The situation is as follows: ** Project in Flex Builder 3 -- Compiled and uploaded to http://www.domain.com/index.html (INDEX.SWF) ** Web Service created in ASP.NET that works perfectly if you test it in Web browsers -- Compiled and uploaded to http://subdomain.domain.com/webservice.asmx (and its methods) - crossdomain.xml (Ive tried everything, finally let it open): Does not wor!! And I have sought information here and on the Internet in general but can not find a solution!! If anyone can help me. Thanks in advance, Luis