AddFilter for an AND filter not working properly with my XML

I am following the examples from the Multiple Filters Sample pages to build a page that will filter some data based upon grade levels.
http://indianawea.org/resources/outreachtest.asp
This page is calling the XML file located here:
http://indianawea.org/datasets/resourcesXML.asp
You will notice some weird things right away if you do a simple filter for K-3 Grade Levels. It will find some of the K-3 but not all of them. In addition, when I add another filter (7-8) it doesnt seem to be additive at all but doing an OR filter. The K3 and 7-8 together should only have two results (World Monitoring Day and Survival Guide).
I wonder if it has to do with my XML file struture.The grade levels are stored in a comma delimited string in the database and I pull them out, put them in an array and then loop through the array, creating XML markers for them. This was patterned after the donut example on the Spry page. I am not sure I am doing that correctly because the tags have the same names.
Any help on this is greatly appreciated. And yes, I am working on this on Easter afternoon!
Jon

Thanks for the response Gramps.
http://indianawea.org/datasets/resourcesXML.asp
That is my XML. I have added IDs to the keywordBreakout and gradeLevelBreakout
Looking at this code by Adobe, my XML seems to be in form now with theirs.
http://labs.adobe.com/technologies/spry/data/donuts.xml
In that example they are using there filter to search all toppings if I see that correct, and they have multiple topping nodes with ids. I am trying the same thing. Even with the ID's I am not getting accurate filters.
I have a data field in the database that contains the gradeLevels. It is called gradeLevels in the XML. I thought I would need to parse that out and put them in their own nodes, each grade level at a time, so that the filter can accurate find one when checked. Same for keywords. I could leave them in there comma demlinited list and do a contains instead of an = search with the SPRY filter but I feel that wouldnt be as accurate in case there are keywords that are close in names. I guess I am stumped as to what my next move might be. I'd love some more help gramps!
Jon
NOTE: Even trying this to the gradeLevel node not broken out yields poor results
function ffK3(ds, row, index){ return (row.gradeLevel.match("K-3")) ? row : null; }. It is like it is ignoring certain nodes. The Water Source Book's gradeLevels don't come up in any filter.

Similar Messages

  • TS3003 Installed QuickTime7 from Snow Leopard installation disc and still can't view videos on iPhoto. A box appeared saying "you have installed Mac OS X software older than your current version of Mac OS X and may not work properly."  Now what?

    Installed QuickTime7 from Snow Leopard 10.6.8 installation disc and still can't view videos on iPhoto. A box appeared saying "you have installed Mac OS X software older than your current version of Mac OS X and may not work properly."  Now what?

    Download and install the latest QuickTime Player for Snow Leopard > http://support.apple.com/kb/DL923

  • FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow.

    FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow and never finishes loading ANY page.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • I recently got a charging case for my iPhone 5s, but it says it isn't certified and may not work reliably with my iPhone. What can I do to fix it?

    I recently got a charging case for my iPhone 5s, but it says it isn't certified and may not work reliably with my iPhone. What can I do to fix it?

    Buy one that is certified. Your current case might work without problems, and then might stop working in the future.  iOS 7 is especially "sensitive" to uncertified peripherals. With this iOS release they have started to clamp down on "pirate" peripherals.

  • My iphone5c is still under the 1 year warranty, the top button constantly sticks and does not work properly will Apple still replace my phone even though there is a few chips and scratches on the back?

    My iphone5c is still under the 1 year warranty, the top button constantly sticks and does not work properly will Apple still replace my phone even though there is a few chips and scratches on the back?

    As Peter says above, only an Apple Store genius can advise you.
    But to further clarify, you seem to postulate that if Apple helps you, the cure would be a replacement.  That is not necessarily true.  Let them look at it and advise you what the remedy is.  They may offer you nothing (saying it's your fault), or they may offer you a solution (keeping your current iPhone), or possibly a replacement.

  • Remote not working properly with Apple TV...sporadic fuctioning

    Hello,
    I have no idea what caused this to happen, but both my remotes (I have one from my MacBook Pro and one from my AppleTV) seem to not work properly with AppleTV. It sometimes works but it is extremely frustrating as it only registers about 1 out of every 10-20 clicks then continues to remember the previous clicks therefore making it essentially impossible to select the desired menu/item. Basically it just seems like it's out of control!
    I tested whether it was the remote or AppleTV that was causing the problem by running Front Row on my MacBook Pro and both remotes seem to navigate Front Row perfectly fine. They both act the same way with AppleTV, whether they are paired or not. It seems as though something happened with my AppleTV. This problem occurred randomly, with no specific cause I can think of.
    Please let me know if any of you have ever experienced this problem and what your solution was, if any!
    I have tried restoring to factory conditions, resetting settings, ran diagnostics, unplugged and replugged it, and nothing seems to be working!
    Oh, and I just replaced the battery on one and have tried swapping batteries, etc.
    HELP PLEASE!
    Thank you,
    Travis

    The menus have never been as responsive as they used to since the 2.0 update in my opinion - basically AppleTV seems to cache/buffer remote click if it is busy or perhaps waiting for something to stream from itunes, and when resources become available it suddenly executes all command rapidly which makes it behave wildly in menus.
    Usually happens I find after restarting the unit or if streaming drives have gone in to power saving modes and there's a delay while they wake up to feed the AppleTV.

  • HP computer will not work properly with an HP printer

    I have the following two items that I am trying to use together:
     - HP 23" TouchSmart Desktop, T6500 2.1GHz 4GB DDR3, 500GB HDD (Windows 7)
     - HP OfficeJet 6500 Multi-Function Printer/Scanner/Fax
    When I try to scan to Adobe Acrobat Professional 9.0, the document goes through the scanner, however the dialog box that I would expect (e.g. "Next Page" or "Done") never shows up.  At this point, the system is unresponsive with respect to Adobe or the printer.
    I suspect that it is waiting for the input from the dialog box that never showed up.  I tried to move the other windows to see if the dialog opened in the background, however I am not able to select any of them (they remain frozen).
    I contacted HP Support, only to have them tell me it must be the driver, and I have an "old" printer.  (I did not realize that a 9 month old printer was considered "old").  I have tried all of the possible drivers that are available (original disk, downloads, other downloads from HP tech support), none of these resolves the problem.
    In any case, they were unable to resolve the problem of having an HP computer work properly with an HP printer.  (The printing function seems to work, just very slowly).
    Has anyone else heard of this?  Is there a resolution?

    Update: I am still looking for a solution to this problem - the scanning portion of the Multi-function OfficeJet 6500 does not work properly with the HP TouchSmart computer.
    I have not been able to find anyone in HP that can tell me when (or if) new drivers will be released for this printer.
    I decided to investigate upgrading to a newer version of printer since HP told me the 9 month old printer I have was "obsolete", only to find that the identical printer is still on sale in many stores.  Hmmm....
    I feel like I am getting the run-around from HP.
    I have since tried several more driver/software combinations, but every time I have the same problem (as described in the previous post).
    If anyone has any ideas or suggestions, I would be most happy to hear them.
    Thank you.

  • Hi, My iPhone 4s does not work properly with the sound.

    Hi, My iPhone 4s does not work properly with the sound. It just ring. Any other app it doesn't make sound unless I have my headset or bluetooth. And it make me choose between "DOCK CONECTOR" or my "APPLE TV". Why? Or any sugestion plz

    Hi M3MB3R,
    Thanks for visiting Apple Support Communities.
    You may find the troubleshooting tips in this article helpful:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    Cheers,
    Jeremy

  • My iphone 5 does not work properly with Ford Sync,

    Hi, My iphone 5 does not work properly with Ford Sync, everytime I pair the phone, Ford sync navigation system freezes and does not work !
    Can someone help.

    Hi M3MB3R,
    Thanks for visiting Apple Support Communities.
    You may find the troubleshooting tips in this article helpful:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    Cheers,
    Jeremy

  • Help, web cam is not working properly with win vista

    Hii.. my web cam is not working properly with win vista..even if the icon appears bt it does nt start.. its
    lenovo easy capture 2.5...so if u cud suggest me anything...
    Moderator note; subject edited

    re-install drivers and try again. ( also easy capture )

  • Since I downloaded the upgraded software, my charger that came with my phone says "this cable or accessory is not certified and may not work reliably with this iphone"  It worked before but now it doesn't...I don't think I should have to buy a new one...

    since I upgraded to the new operating system my charger no longer works...
    It says"this cable or accessory is not certified and may not work reliably with this iPhone"

    Try checking your cable socket/lightning cable for dirt, grime, pocket lint, etc. I could not find the solution to this issue myself and after much searching I found someone stating that cleaning this out helped them immensely.
    After taking a wooden toothpick (making sure the phone was OFF first) and gently clearing out the edges and inside of the lightning socket this went away.) It is worth noting that I had a significant amount of dust or lint buildup along the edge rails which I think was causing the iphone to believe it was plugged into something when it was not.
    Try it and see, ensure you are very careful and do not use any conductive tools to clean the area in question. Compressed air also does wonders here.

  • HT1476 upgraded my IPOD 5 to iOS 7.0.2 and will not charge battery. when plugged in gives message "This cable or accessory is not certified and may not work reliably with this IPOD".

    Just Upgraded my IPOD 5 to iOS 7.0.2 and it will not charge the battery anymore.
    When I plug it in, it now gives the message "This cable or accessory is not certified and may not work reliably with this IPOD".
    Anyone else have this issue after they upgraded the iOS system?
    Thanks,

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

  • After updating to ios 7.0.6 i keep getting an error message saying "this cable or accessory is not certified and will not work reliably with this iphone" every two minutes and its annoying

    What is up with this error message after updating saying our cables are not reliable?

    Thank you for this suggestion, but the message continues to display every couple of minutes. (e.g. "This cable or accessory is not certified and may not work reliably with this iPhone.)
    Not only is it annoying and concerning...this is draining my battery, as the iPhone keeps waking up to display the message over and over. Like "MartinLegodi" above, I also have no cable or accessory plugged in and only use Apple cable and products when I do.
    It's a disconcerting mystery.

  • Why does my phone keep popping up messages "This cable or accessory is not certified and may not work reliably with this iphone" when there is no cable connected?

    Why does my phone keep popping up messages "This cable or accessory is not certified and may not work reliably with this iphone" when there is no cable connected? This has been happening since IOS7 was installed and has become worse with 7.1. I have reset the phone several times with no change.The phone charges properly & I have never used anything but an Apple Lightning cable.

    I already cleaned the port with compressed air before submitting the problem. I since cleaned it with a toothpick and dug out some more lint. this seems to have just about fixed the problem since I have only had the error pop up 3 times since then and i was getting the error constantly before.

  • TS4002 Icloud Mail doet not work properly with PC since a few days!!!

    Icloud Mail doet not work properly with PC since a few days!!!

    If you can't solve your issue and no one in the community can help, contact support to speak with a tech support agent at (800) 631-3811.
    - Peter

Maybe you are looking for