Skip to main content
New Participant
Jul 18, 2024 9:24 AM UTC
Question

Error updating image column in list

Hi, I'm trying to replicate the image column in the Acme exercise.

But this expression:

if(
  a!isNullOrEmpty(
    fv!row['recordType!{99497132-80a2-4706-85d8-9d65360812d4}VehÃ%ADculo de W2690.fields.{664fc039-9187-4150-90ce-6d589788d0c2}image']
  ),
  a!EXAMPLE_DOCUMENT_IMAGE(),
  fv!row['recordType!{99497132-80a2-4706-85d8-9d65360812d4}VehÃ%ADculo de W2690.fields.{664fc039-9187-4150-90ce-6d589788d0c2}image']
)

Is showing me this error:

"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 87]: User Does Not Have Rights to Perform this Operation"

What am I doing wrong?

    10 replies

    venkatrea696188
    Inspiring
    Jul 18, 2024 10:18 AM UTC
    [quote userid="284526" url="~/discussions/f/user-interface/35487/error-updating-image-column-in-list"]has encountered an error. Expression evaluation error at function a!imageField [line 87]: User Does Not Have Rights to Perform this Operation"[/quote]

    Can you paste more details , Like what operation you are performing (Are you clicking it ?) and the code of total image field and the error Screenshot

    joana9354Author
    New Participant
    Jul 18, 2024 10:30 AM UTC

    I'm just trying to show the image in the list, with no interaction

    venkatrea696188
    Inspiring
    Jul 18, 2024 10:52 AM UTC

    Do you have Permission to view the contents of the Folder??(Where you are storing these documents)

    pragnaj0001
    Inspiring
    Jul 18, 2024 10:54 AM UTC

    I think its null value in image field. so u mentioned if condition, in there a!EXAMPLE_DOCUMENT_IMAGE(), is there any default document in ur application??, try this code 

    if(

    isnullorempty(fv!row.field),

    null,

    fv!row.field

    )

    varuntejg243705
    Inspiring
    Jul 18, 2024 11:47 AM UTC

    Hi [mention:326e1ac954784a67a5ef204472975f9e:e9ed411860ed4f2ba0265705b8793d05] ,


    just to correct you, code would be:
     

    if(
    
    a!isNullOrEmpty(fv!row.field),
    
    a!EXAMPLE_DOCUMENT_IMAGE(),
    
    fv!row.field
    
    )


    [mention:5fa957e9055d47f590421ae447a50357:e9ed411860ed4f2ba0265705b8793d05] 

    If the value going in the field as null, we need to display example document image or the same field, most of the times, in community edition, the values are sent in null.



    So try to check the whether the doc Id is in the record or try with toInteger(fv!row.field).

    joana9354Author
    New Participant
    Jul 18, 2024 1:33 PM UTC

    I see this on the data, it may be the source of the problem