CptnDave


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!




Re: How does filter work with substrings?

AndyS


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






Re: How does filter work with substrings?

JM Alarcón

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.







Re: How does filter work with substrings?

AndyS

I don't believe toString() exists on the imageURL property as it is just a string. try:
Code Snippet

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








Re: How does filter work with substrings?

JM Alarcón

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.






Re: How does filter work with substrings?

AndyS

Could you share your mashup and i'll have a look at it.



Re: How does filter work with substrings?

JM Alarcón

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.