0 Dynamic reports 3 Michael Garrison posted 9 Years Ago In the "Taking Off With Reporting" documentation, an example of a report is given of "a list of attendees over the age of 18 who began attending within the last two years", but the execution of that particular report is never shown. Specifically, I'm wondering about the "Began attending in the last two years" criteria- is there a way that I haven't found to set a date reference like that so that it's always up-to-date? The only way I can find to do that is to manually set a date two years ago - but if I run that report again next year, it's going to (obviously) show people who began attending within the last THREE years. I'm trying to find a way that I can specify "last two years" in the data view so that it's a constantly-moving window. For instance, we'd like to have reports for things like "adults whose first visit was in the last month". Do we have to go and manually set the date in the data view every month before running the report, or is there a way (liquid?) to set the parameter to be "the 1st of last month"? On a related theme, I'm trying to develop contact list reports for our small groups, since the group viewer only shows name and e-mail addresses. Do I have to create a separate data view and report for each small group manually, or is there some way to allow selection of the desired small-group at report time? I've been excited at the prospect of flexible/reusable data views for reports, but as I'm digging into them it appears to me the only reuse is in being able to include another pre-defined set of hard-coded filters - useful, but still pretty rigid. I feel like I'm missing something, but I don't know what. Is there another way to solve what I'm trying to do here?
Michael Garrison 9 years ago That enhancement is exactly what will be useful- thanks!I'm seeing the light now that everything on the internal pages doesn't have to work within the existing tools (Reporting, etc) but using dynamic blocks and new pages we can expand on what's available. THANKS for the working example in the rocksolidchurchdemo site, but I'm having two issues with it-The GroupId parameter from the address bar is incorrectly reporting itself on the button calling {{ PageParameter.GroupId }}. In my case when I'm viewing ~/page/113?GroupId=4096&ExpandedIds=4095%2C5905 the button links to ~/page/360?GroupId=41.If I go to /page/360?GroupId=4096, the list of members is correct but only the top member has a work phone listed- everyone else's phone numbers are blank.I'll keep poking things to see if I can get them working but I'll be grateful to anyone who can spot my issues...Thanks!
Michael Garrison 9 years ago The answer to my first issue was that I forgot - again - to set the HTML block cache duration to 0. Easy fix. Now I'll work on the second issue.
Michael Garrison 9 years ago And the answer to the second issue is that it doesn't look like data that we imported using Excavator has "Formatted Number" - just "Number" is set in the [PhoneNumber] table and "Formatted Number" is null. So the provided demo code is (of course) perfect and the issue is on my side.In case someone else finds themselves with the same issue, replace lines 5-7 with the following:( SELECT ISNULL([NumberFormatted],[Number]) FROM [PhoneNumber] WHERE [PersonId] = P.[Id] AND [NumberTypeValueId] = 13 ) AS [Home],( SELECT ISNULL([NumberFormatted],[Number]) FROM [PhoneNumber] WHERE [PersonId] = P.[Id] AND [NumberTypeValueId] = 12 ) AS [Cell],( SELECT ISNULL([NumberFormatted],[Number]) FROM [PhoneNumber] WHERE [PersonId] = P.[Id] AND [NumberTypeValueId] = 136 ) AS [Work],
Michael Garrison 9 years ago Thanks- you helped me realize that extending the built-in infrastructure by creating blank sub-pages is going to be the answer to a lot of our needs going forward. Have a great weekend!