I would like to display some status images in a a!gridImageColumn based on the r

I would like to display some status images in a a!gridImageColumn based on the result of a condition in a expression rule. The structure is the following:
a!gridImageColumn(
label: "STATUS",
size: "ICON",
field: "travelId",
data: apply(rule!displayStatusImage,local!dataForCurrentPage.travelId))

According to the evaluation, the outputs of rule!displayStatusImage are a!documentImage(document:a!iconIndicator("STATUS_OK")) or
a!documentImage(document:a!iconIndicator("STATUS_NOTDONE") but the error in my SAIL form says:
"A gridImageColumn [label=“STATUS”] has an invalid value for “data.” All elements of “data” must be of the type SafeImage or DocumentImage but were [“Record; Record; Record”]"
I tried to use a!webImage as well but the same error appears.
Thanks in advance!

OriginalPostID-143152

OriginalPostID-143152

  Discussion posts and replies are publicly visible