susanna123
Technical User
hi
I have report that run daily but it is reporting full history everyday instead of just previous day or last 24 hours.
I have a start and end time.
My end time formula looks like this:
Local StringVar dt;
if isnull({AP_FinishedInstances.SI_ENDTIME}) or
trim({AP_FinishedInstances.SI_ENDTIME}) = "" then
dt := "99990909090909" else
dt := {AP_FinishedInstances.SI_ENDTIME};
Local NumberVar yr := ToNumber(dt[1 to 4]);
Local NumberVar mo := ToNumber(dt[5 to 6]);
Local NumberVar dy := ToNumber(dt[7 to 8]);
Local NumberVar hr := ToNumber(dt[9 to 10]);
Local NumberVar mn := ToNumber(dt[11 to 12]);
Local NumberVar sc := ToNumber(dt[13 to 14]);
DateTimeValue (yr, mo, dy, hr, mn, sc)
In the record selection formula i would like to use the end time to capture the last 24 hours.
I have this in record selection which is not returning data correctly:
{AP_FinishedInstances.SI_ENDTIME} = "dd/mm/yyyy"
Thank you
I have report that run daily but it is reporting full history everyday instead of just previous day or last 24 hours.
I have a start and end time.
My end time formula looks like this:
Local StringVar dt;
if isnull({AP_FinishedInstances.SI_ENDTIME}) or
trim({AP_FinishedInstances.SI_ENDTIME}) = "" then
dt := "99990909090909" else
dt := {AP_FinishedInstances.SI_ENDTIME};
Local NumberVar yr := ToNumber(dt[1 to 4]);
Local NumberVar mo := ToNumber(dt[5 to 6]);
Local NumberVar dy := ToNumber(dt[7 to 8]);
Local NumberVar hr := ToNumber(dt[9 to 10]);
Local NumberVar mn := ToNumber(dt[11 to 12]);
Local NumberVar sc := ToNumber(dt[13 to 14]);
DateTimeValue (yr, mo, dy, hr, mn, sc)
In the record selection formula i would like to use the end time to capture the last 24 hours.
I have this in record selection which is not returning data correctly:
{AP_FinishedInstances.SI_ENDTIME} = "dd/mm/yyyy"
Thank you