Hi everyone,
New to Appian, and have been working through the Appian Developer learning path. Today I ran into an issue while following the instructions for the second process model. When I click start process for debugging, I get this error message in the popup window:
I decided to continue following the steps and figure this issue out after. After creating the related action, I got another error with a bit more information:
I'm not sure if both of these are caused by the same issue, but it seems like there's an issue with the Vehicle Details View. Here is the expression:
When I first created the Vehicle Details View, I got another error. After googling for a bit, I added a!documentImage() around the link to the image, but when I took that out it broke the view again.
Any advice on how I might be able to fix this would be amazing.
Discussion posts and replies are publicly visible
Sure. The image field requires the value to not be null. Add a showWhen condition to the imageField to prevent that.
showWhen: a!isNotNullOrEmpty(ri!vehicle[AX vehicle.image])
As an alternative, you could use a if() statement to check whether the image is null and use a static placeholder in case.
Thank you for your reply. I'm having some issues with getting your suggestion to work. I've tried showWhen, but I was still getting errors. Here is what I've got at the moment:
Any suggestions on what I could do here?
I have a suggestion. Read my tip again and try as I posted.
A empty string is not a static placeholder. What I mean is, to upload a placeholder image, create a constant pointing to this image, and then use that constant.
Thank you
Did you get it to work?