Page Include from Calendar Popup unable to read the URL Parameter

  • 1
  • Problem
  • Updated 1 year ago
  • In Progress
I have a calendar that has one event source with two page includes for the "On click" popup. One page include renders if the user clicks on an existing calendar event and the other page include renders if the user clicks the "+" icon to add a new event. 

The problem I am facing is that the StartDateTime and EndDateTime fields are not populating at all. I am passing the fields over in the URL and can see them being passed over, but the page include's Param variables are not picking them up for the start and end times.

Image of the StartDateTime and EndDateTime being passed via the URL. {{$Param.start}} and {{$Param.end}} are not returning any values.



Thoughts?
Photo of Josef Lagorio

Josef Lagorio

  • 2,926 Points 2k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
Hi Josef,

It doesn't look like the slashes in the dates are being URL encoded, so they are likely being misunderstood by the browser as actual slashes and not part of the field values. Can you share what the page includes'  query strings are? 
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
Thanks Josef. Which version of Skuid are you working with? And, can you try using triple mustache brackets instead of double mustaches?
Photo of Josef Lagorio

Josef Lagorio

  • 2,926 Points 2k badge 2x thumb
Triple mustaches do not work either. 
(Edited)
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
Which Skuid release are you working with? And, is this a new issue with an existing page, or something you've discovered while building a new page?
Photo of Josef Lagorio

Josef Lagorio

  • 2,926 Points 2k badge 2x thumb
This is a new page and version 10.0.11
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,162 Points 10k badge 2x thumb
Joe, it looks like in order to pass a datetime field through a page include's query string, you may need to parse it into its UTC value first, and then pass that into the include's datetime fields. Matt Sones shows some of his method in this Community post: https://community.skuid.com/skuid/topics/filterable-url-param-condition-on-datetime-loading-as-inact... Amy Dewaal has provided some useful input on that thread as well.