11-29-2019, 01:58 PM
(This post was last modified: 12-02-2019, 05:50 AM by rajavinoth.)
Hi,
I try to get work hour based on row date using below expression :
@GET(sthpw/task.sthpw/work_hour['day', @GET(.timestamp)].straight_time)
I got error (Expression error: 'datetime.datetime' object is not iterable) . So I try to convert the date into string using expression {@GET(.timestamp), %Y-%m-%d} .
It is working fine and convert the date time object to date format without any issue. But when I used it in the Expression like below :
@GET(sthpw/task.sthpw/work_hour['day', {@GET(.timestamp), %Y-%m-%d}].straight_time)
I got the error :
Expression error: Could not process token [{] search type [sthpw/work_hour['day', {@GET(.timestamp), %Y-%m-%d}]] in expression [@GET(sthpw/task.sthpw/work_hour['day', {@GET(.timestamp), %Y-%m-%d}].straight_time)]
Help me to solve the issue, am using tactic version 4.0.
Thanks in advance
I try to get work hour based on row date using below expression :
@GET(sthpw/task.sthpw/work_hour['day', @GET(.timestamp)].straight_time)
I got error (Expression error: 'datetime.datetime' object is not iterable) . So I try to convert the date into string using expression {@GET(.timestamp), %Y-%m-%d} .
It is working fine and convert the date time object to date format without any issue. But when I used it in the Expression like below :
@GET(sthpw/task.sthpw/work_hour['day', {@GET(.timestamp), %Y-%m-%d}].straight_time)
I got the error :
Expression error: Could not process token [{] search type [sthpw/work_hour['day', {@GET(.timestamp), %Y-%m-%d}]] in expression [@GET(sthpw/task.sthpw/work_hour['day', {@GET(.timestamp), %Y-%m-%d}].straight_time)]
Help me to solve the issue, am using tactic version 4.0.
Thanks in advance