Skip to main content

Demo App showing Custom DataSource

This app has queries using the DataSource Tutorial Basic .
Note that this will only work if you have installed the DNN Package with the DLLs .

Data from the Basic DataSource

The Basic DataSource is attached to the Default stream, so we get the first (and only item) in the Content object.

  1. Title: 5/7/2021 12:46:24 PM
  2. Date: 5/7/2021 12:46:24 PM
  3. Weekday: Friday
  4. DayOfWeek: 5
  5. ID: 0

Data from the DateTime List DataSource

The DateTime DataSource is configured in the Query "DemoBasicList" Stream

  1. 9/21/2014 12:00:00 AM
  2. 8/30/2005 12:00:00 AM
  3. 1/30/2018 12:00:00 AM
  4. 5/26/2010 12:00:00 AM
  5. 2/22/2000 12:00:00 AM
  6. 5/1/2000 12:00:00 AM
  7. 11/5/2006 12:00:00 AM
  8. 8/2/2009 12:00:00 AM
  9. 9/21/1997 12:00:00 AM
  10. 11/24/2009 12:00:00 AM
  11. 10/27/2002 12:00:00 AM
  12. 8/5/2017 12:00:00 AM
  13. 3/23/2013 12:00:00 AM
  14. 7/19/2015 12:00:00 AM
  15. 11/3/1995 12:00:00 AM
  16. 11/16/2019 12:00:00 AM
  17. 10/11/2006 12:00:00 AM
  18. 6/13/2006 12:00:00 AM
  19. 4/13/1999 12:00:00 AM
  20. 10/1/2007 12:00:00 AM
  21. 4/11/2007 12:00:00 AM
  22. 5/7/2006 12:00:00 AM
  23. 4/7/2019 12:00:00 AM
  24. 11/21/2003 12:00:00 AM
  25. 12/6/2006 12:00:00 AM
  26. 2/23/2005 12:00:00 AM
  27. 7/3/1996 12:00:00 AM

Data from the Configurable DataSource

The ConfigurableDateTime DataSource is configured without custom settings in the Query "DemoConfigurableBlank"

  1. Title: Date Today
  2. Date: 5/7/2021 5:00:00 PM
  3. DayOfWeek: Friday
  4. DayOfWeekNumber: 5

Data from the Configurable DataSource with Configuration

The ConfigurableDateTime DataSource is configured with custom settings in the Query "DemoConfigurable". It will always show 10 PM.

  1. Title: Date Today
  2. Date: 5/7/2021 10:00:00 PM
  3. DayOfWeek: Friday
  4. DayOfWeekNumber: 5

Data from the Configurable DataSource with Error

The ConfigurableDateTime DataSource is configured with invalid settings in the Query "DemoConfigurableError". The normal values will be empty, but it will have properties such as Error and Message

  1. Title:
  2. Date:
  3. DayOfWeek:
  4. Error: Error: Hour value out of range
  5. Message: The hour was '24' which is not valid
  6. Debug Notes: There should be more details in the insights logs, see https://r.2sxc.org/insights