Step-by-Step #5 - Format the Image column

Hello, In Build An Application Step-by-Step #5. I am stuck on the Edit Record List Columns - Format the Image Column.

The error says, "Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!imageField [line 51]: User Does Not Have Rights to Perform this Operation".

I completed all the steps specified in the previous exercises. Appreciate all the help I can get. Thank you!

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Greg Wheeler

    Hi, I have the same issue and only a!EXAMPLE_DOCUMENT_IMAGE() works without an error, but of cause delivers the placeholder images.

    ----

    a!documentImage(
    document: a!EXAMPLE_DOCUMENT_IMAGE()
    )

    Causes the error:

    Error Evaluating UI Expression

    Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!documentImage [line 53]: Could not cast from DocumentImage to Document. Details: CastInvalidCould not cast from DocumentImage to Document. Details: CastInvalid

    ----

    if(
    a!isNullOrEmpty(
    fv!row[recordType!W"" Vehicle.fields.image]
    ),
    a!EXAMPLE_DOCUMENT_IMAGE(),
    fv!row[recordType!W"" Vehicle.fields.image])

    as stated in the course, causes the error:

    Error Evaluating UI Expression

    Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!imageField [line 52]: User Does Not Have Rights to Perform this Operation

    ----

    How can this issue be resolved and images be shown?

Children
No Data