Good afternoon all
I create a report that reflexes the data range parameter
based on the current date/time and now I am having a hard time display the
inputParams["START_DATE"] and
inputParams["END_DATE"] values as either a text element or dynamic
text element. I've tried using global variables based on searches online but I cannot get it to work. I
am new to this and any help will be appreciated thank you.
beforeOpen dataset script:
if (params["RDR"].value == 1){
inputParams["START_DATE"] = Formatter.format(priormonth_start, 'dd-MMM-yyyy HH:mm:ss');
inputParams["END_DATE"] = Formatter.format(priormonth_end, 'dd-MMM-yyyy HH:mm:ss');
}else{
inputParams["START_DATE"] = Formatter.format(params["SDATE"].value, 'dd-MMM-yyyy HH:mm:ss');
inputParams["END_DATE"] = Formatter.format(params["EDATE"].value, 'dd-MMM-yyyy HH:mm:ss');