Skip to content

Workaround for Search Scope Advanced Filter empty search string problem

R2 made a change to search scopes that I wasn’t particularly happy with – in fact as far as I’m concerned they broke search. The Advanced Filter was offered as a way to restore old functionality, however that introduced two new bugs – clicking search with nothing in the search box returned nothing (listed here as a known problem) and  clicking Advanced Search with nothing in the search box gives you a bunch of unusable filters you have to delete.

I’ve been watching out for a fix for these problems and haven’t seen one (except in an early R2 hotfix that got recalled, so doesn’t count). Finally I asked my customer to open a PSS call and we were given a workaround that actually does solve the first problem.

Instead of setting the Advanced Filter like this (as per the documentation):

/ManagementPolicyRule[contains(DisplayName, '%SEARCH_TERM_STRING%')]

you set it like this:

/ManagementPolicyRule[starts-with(DisplayName, '%%SEARCH_TERM_STRING%')]

Note there is a double % there. We are basically using the first % as a wildcard, giving us a “contains” functionality. An empty string is now effectively a wildcard, giving us all objects as we would expect.

 

Post a Comment

Your email is never published nor shared. Required fields are marked *

Spam comments will be blocked by Akismet

*

buy next day metformin prednisone oral tablet no prescription discount buy cheapest metformin prezzo premarin premarin drug i want to buy pregnizone without a prescription buy arimidex online us pharmacy buy premarin where synthroid non rx fedex overnight free buy synthroid generic premarin delivered overnight prescription finasteride online finasteride non prescription requip prices buy premarin where purchase online arimidex without rx where to purchase generic premarin online without a prescription arimidex mexico buy online premarin without rx buy no online rx valacyclovir purchase premarin without a rx online online pharmacy premarin where can i buy prednisone cheap orlistat no prescription purchase arimidex amex online without rx buy arimidex on line cheap premarin by money order requip online prescription arimidex cheap mexican purchase synthroid no visa without prescription where can i buy requip synthroid overnight no consult buy finasteride without buy cheap metformin with dr. prescription metformin metformin buy synthroid online with overnight delivery synthroid c.o.d. buy finpecia no prescription buy arimidex with no prescription buy no perscription premarin finasteride with free fedex overnight online pharmacy finasteride no prescription canada requip buy orlistat oral purchase finasteride online with overnight delivery generic synthroid tablets buy premarin diet pill prednisone fedex canadian synthroid diet pills without a prescription finasteride free consultation fedex overnight delivery order orlistat without rx where can i buy some prednisone online only using cash or money orders buy mail order arimidex cheap arimidex no rx non presciption finasteride buying synthroid without a prescription requip buy buy prednisone without a percsription buy cheap lisinopril without prescription no rx arimidex buy cheap seroquel online buy metformin in the uk order cheap overnight finasteride premarin delivered overnight synthroid no dr synthroid without a prescription or membership buy premarin where order buy requip online premarin mexico buy finpecia online paypal buy seroquel money buy premarin buy fedex c.o.d synthroid prednisone with out a prescription buy in metformin uk next day delivery on premarin saturday metformin canadian pharmacy prednisone online finasteride order online no membership overnight purchase cheap online lisinopril where to purchase cheap lisinopril no rx buy synthroid overnight delivery synthroid shipped c.o.d. buy prednisone no prescription valacyclovir requip