{"id":122,"date":"2008-09-16T14:38:00","date_gmt":"2008-09-16T14:38:00","guid":{"rendered":"\/lisa\/post\/2008\/09\/16\/YAPS-on-Filters-in-an-RDL-Whats-not-to-Like.aspx"},"modified":"2008-09-16T14:38:00","modified_gmt":"2008-09-16T14:38:00","slug":"yaps-on-filters-in-an-rdl-whats-not-to-like","status":"publish","type":"post","link":"https:\/\/spacefold.com\/lisa\/2008\/09\/16\/yaps-on-filters-in-an-rdl-whats-not-to-like\/","title":{"rendered":"YAPS on Filters in an RDL: What&#8217;s not to Like?"},"content":{"rendered":"<p>\n<a href=\"\/lisa\/2008\/09\/08\/Filters-in-an-RDL-To-Like-or-Not-To-Like\/\" title=\"Blog post on filtering with &quot;contains&quot;\">Last week I wrote<\/a> about my inability to use the &quot;Like&quot; filter on a table in an RDL.&nbsp; I wasn&#39;t able to use &quot;Like&quot; and devised another solution that uses &quot;Equals&quot; instead.&nbsp; I went on to show how you could make it more re-usable, etc, but asked whether readers had any ideas.\n<\/p>\n<p>\nI&#39;m happy to say that one of you did. Abdallah Elhawary wrote in to explain that the wildcard character is actually supposed to be a &quot;*&quot; rather than the standard SQL ones.&nbsp; I&#39;m still scratching my head over where this is written in the docs, because I swear I&#39;ve looked.\n<\/p>\n<p>\nAt any rate it does work; you can do this successfully:\n<\/p>\n<p align=\"center\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/lisa\/wp-non\/migrated\/LikeFiltered.PNG\" alt=\"Like to Like\" title=\"Like to Like\" width=\"491\" height=\"150\" \/>\n<\/p>\n<p align=\"left\">\n&#8230; so &quot;Like&quot; really does work.\n<\/p>\n<h3>Or&#8230; we could talk some more.<\/h3>\n<p>\n(That&#39;s a quote from <a href=\"http:\/\/www.browncoats.com\/\" target=\"_blank\" title=\"Browncoats site, long live the rebels\" rel=\"noopener\">Serenity<\/a> &#8212; I&#39;m seriously behind quota.&nbsp;)\n<\/p>\n<p>\nIf you want to write something that ports to multiple reports more easily, and isolates the set of fields to be compared for each report table, you&#39;re still going to write a function something like what I showed in the other post.\n<\/p>\n<p>\nWhat&#39;s more, it turns out that while my weird workaround provides a way to handle case-sensitivity in the comparison at the whim of the user, the Like filter is not going to give you the same ability.&nbsp;\n<\/p>\n<p>\nIn fact, looks to me (not testing!) as though if the database does a case-insensitive comparison, that&#39;s what you get, and if the database is case-sensitive, <em>that&#39;s<\/em> what you get.\n<\/p>\n<p>\nSince this probably means you&#39;re doing the filter before dragging the data, it&#39;s probably more performant (note again: I haven&#39;t tested this assumption about how it works!). So sometimes Like is just what the doctor ordered.\n<\/p>\n<p>\nOther times, though&#8230; and here I&#39;ll quote from <a href=\"http:\/\/en.wikipedia.org\/wiki\/The_Incredibles\" target=\"_blank\" title=\"Do you recognize it before checking?\" rel=\"noopener\">another great movie<\/a>&#8230; you just gotta learn to be more flexible. When you&#39;re searching free-form text, the user wants to specify case-sensitivity, whole word only, etc.&nbsp; And with just a little extra work, we can do those things.\n<\/p>\n<p>\nIsn&#39;t it wonderful that we have both choices?\n<\/p>\n<p>\nThanks again to Abdallah; I have always been a believer in Love but he has restored my faith in Like.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week I wrote about my inability to use the &quot;Like&quot; filter on a table in an RDL.&nbsp; I wasn&#39;t able to use &quot;Like&quot; and devised another solution that uses &quot;Equals&quot; instead.&nbsp; I went on to show how you could make it more re-usable, etc, but asked whether readers had any ideas. I&#39;m happy to<a class=\"more-link\" href=\"https:\/\/spacefold.com\/lisa\/2008\/09\/16\/yaps-on-filters-in-an-rdl-whats-not-to-like\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6,12],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-reporting","category-sql-server","category-yaps"],"_links":{"self":[{"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":0,"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"wp:attachment":[{"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spacefold.com\/lisa\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}