You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Passing Run-time selectable Date Range Filter to Custom Script of the Report

Question
27
Views
0
Comments

Content

I have passed the run-time selectable date range filter to Custom Script of the Report. I have taken the FROM date and TO date in two variables convertiing epoch time in UTC format, In the ROQL query if I give static date range like this, 

Static Query:
$query = \RightNow\Connect\v1_4\ROQL::queryObject("SELECT CO.PaymentTransaction FROM CO.PaymentTransaction WHERE CO.PaymentTransaction.TransactionDate BETWEEN '2020-05-01T17:49:48Z' AND '2020-05-31T17:49:48Z' AND CO.PaymentTransaction.incidentID= ".$incID)->next(); 
I'm getting the results for this

but in order to make this dynamic I'm providing the variables that holds the selected date range from the Docked Filter, while doing that it is returning empty results.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!