Filter portal based on date range
I would like to display 2 fields above a portal, where user can enter a date in each to filter the portal records within thos dates. I'm thinking I need to use 2 global fields for this, just not sure what the filter expression would look like. Can anyone chime in?
Also, I want to add an OnLayoutEnter script that uses Set Field to display the "Year to Date" upon entring the layout. I would use get (currentDate) in the second field, but what would the calc be for the first date field?