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
Am having the same issue. Am recieving the following text:
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
Can you please use a!documentImage instead of a!imagefield ?
I am using a!documentImage. This is what I currently have per the lesson's instructions:
Tengo el mismo problema en el STEP 5 con el campo IMAGE y estoy sospechando que el problema sea debido a que el último registro de los registros copiados el 33 tenga un valor que no es nulo y es numérico. Pero no me deja borrarlo para poder verificarlo.
Can you please tell me what are you passing in a!EXAMPLE_DOCUMNET_IMAGE()?
No, sigue sin funcionar (pero si el error es el del registro, tampoco pude borrar el mismo). Creo que voy a avanzar en la parte teórica en lugar de seguir perdiendo el tiempo con los ejercicios paso a paso.
Debe pasar la imagen (valor generado por Appian del documento) en lugar de pasar a! EXAMPLE_DOCUMENT_IMAGE()
Por favor, pásame como te quedo el código.
De acuerdo ya lo llegue a hacer y no me sale el error. Pero ojo que ahora, en todos los formulariosy vistas que se hagan para el usuario no va a salir la imagen de default para aquellos registros en loscuales el campo imagen tenga el valor null.
Según mi sugerencia, puede mantener una "imagen sin imagen disponible" y usarla de forma predeterminada. Cuando no tenga ningún valor, aparecerá esa imagen.
Like that.
I uploaded the image you plaeced at the bottom and aded it in as a!EXAMPLE_DOCUMNET_IMAGE(cons!W0SA_PASTEDIMAGEPNG) but then I got the following error: The rule 'EXAMPLE_DOCUMENT_IMAGE' [line 5] has 0 parameter(s), but instead passed 1 parameter(s).
Hi calebs2672
I suspect you have an older workspace that contains an image identifier in your vehicle record that you do not have access to. While this issue has been resolved for newer workspaces, you can resolve the issue by updating your expression as seen below. Keep in mind that this will cause all vehicles to have the placeholder image - but will resolve your issue.
Hope this helps!
ok. I'll try this out.
Is working now
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:
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:
How can this issue be resolved and images be shown?