0 This data view isn't working- can I get some more eyes on my setup please? 3 Michael Garrison posted 9 Years Ago I've made some stupid mistake somewhere, I have no doubt. Our church has a program called "Safe Church" wherein all of the volunteers and workers who interact with kids have to go through various checks every 3 years. I've created Person Attributes in the "Safety and Security" category to track the records (and set the boolean values to default to False/No). But we need a list that tells us if anyone is overdue for their checks. All of the people in question are in a single group within Rock. So I've created a data view that, at it's core, should show people in that group AND where ANY of the attributes I created are set to false. Of course, some of the attributes are dates (which don't have a default) so rather than checking for false on those, I set them to display if the date is less than "Current Date" minus 3 years (1095 days). Further complicating matters, some of the checks can't be performed on people less than 18 years of age, so I have to have it not consider those values if they are 17 or less. Goofy logic, but I thought I'd worked it all out: Unfortunately, even though everyone in that group has blank dates and the default "No" for each of the attributes, the list is blank. So one of my bits is flipped or something. But it seems to me that since I know people in the group are over 18 and have, for instance, "Safe Church - Id" set to "No" (false), that should be all it takes to trigger them showing up in the list. Can anyone spot my mistake? Thanks
Michael Garrison 9 years ago It certainly does- should I file a bug report or are you on it?I'm sure it's related but this seems even more confusing with that answer- why won't "is blank" work with a date attribute?http://rock.rocksolidchurchdemo.com/page/145?DataViewId=16I understand the bug of not checking for a default value, but isn't that expressly what "Is Blank" is supposed to detect? There's not really any way to NOT set "blank" as the default (without providing a date) so I can't think of a similar workaround- can you?
David Leigh 9 years ago The bug affecting "Is Blank" filters for Attributes that I directed you to was caused by a similar problem - it was only filtering from those records that had an Attribute Value already defined (none of which would be blank!), not returning records that had no Attribute Value at all. So in the case of both blank and default values, there is no value stored in the AttributeValue table. A fix for the "Is Blank" issue is already in the next version, but the issue with regard to default values requires another fix.I have logged the issue here:https://github.com/SparkDevNetwork/Rock/issues/1259
Michael Garrison 9 years ago David, you're right of course- I should have started by running simpler incremental tests.But now some extremely basic tests are failing, so there seems to be a larger issue going on.I created a test with "In group: Childcare Workers AND (Safe Church - References is False OR Safe Church - ID is False)" and it was still empty. I took it down to just a single boolean check, and the group is STILL empty.Likewise, I tried tests with the date values - "In Group: Childcare Workers AND Safe Church - Interview is less than Current Date minus 1095 days" as well as "...AND Safe Church - Interview is blank" and in both cases the result was empty.So then I created a data view with no filter groups at all- just "In Group: Childcare Workers AND Safe Church - ID is False", and it's STILL empty. At this point I don't seem to be able to combine a filter for people in that group with any other filter at all (a filter for just people in that group does work however).Let me run some similar tests on the RockSolidChurch demo site and report back