How does filter work with substrings?

It is not clear to me what the condition should look like. Help link didn't provide useful documentation.

Tips and pointers to more info would be welcome!

[170 byte] By [CptnDave] at [2008-1-28]
# 1

Sorry about that Sad

If you try something like:

x == "foo"

x represents the object selected from the first dropdown, if you selected a property from the previous block such as title then x would be just that string if you selected the entire object then title would be x.title. Which isn't very clear, we'll make sure to improve the documentation

AndyS at 2007-9-25 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 2

I can't make this work for me...

I'm trying tofilter images obtained with a Image Scrapper block using a filter block.

In the list parameter of the filter block i choose the ImageURL property of the Image Scrapper.

On the condition parameter I'm trying a custom one like this:

x.toString().toLowerCase().indexOf("/images/") > -1

and it doesn't work at all.

What I'm trying to do is to filter and show only images that contain the word "/images/" in the image URL, inorder to avoid the other ones.

Any help will be appreciated.

Regards

Jose.

JMAlarcón at 2007-9-25 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 3
I don't believe toString() exists on the imageURL property as it is just a string. try:
Code Snippet

x.toLowerCase().indexOf("/images/") > -1


AndyS at 2007-9-25 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 4

Thanks Andy, but it dind't work either. I keep receiving the error code 3002, Image Error, AG_E_NOT_FOUND silverlight error message box when trying to run my mashup.

Any other ideas?

TIA

Jose.

JMAlarcón at 2007-9-25 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 5
Could you share your mashup and i'll have a look at it.
AndyS at 2007-9-25 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 6

Sure...

It's shared in my page at http://www.popfly.ms/users/jalarcon

It's the one called "Tutores campusMVP" (sorry i did my test in spanish).

What I'm trying to do is to retrieve every image in the web page http://www.campusmvp.com/CampusMVP/Conozca_a_los_MVP.htm and filter them to show only people, whose pictures are under the http://www.campusmvp.com/CampusMVP/img/autores/ folder. So I filter the ImageURL to see if it contains the word "/autores/" in it.

Thanks for your help. I think this is a great product and I'm enjoying testing it....

Regards

Jose.

JMAlarcón at 2007-9-25 > top of Msdn Tech,Popfly,Popfly General Discussion...