Hi All,
I am going through Appian Developer course, where I am trying to work on
while following below steps
Follow the steps below to format the Image column.
1. Under Columns, click Image.
2. Under Display Value, click DISPLAY OPTIONS.
3. Select DOCUMENT IMAGE.
4. Under Display Value, click Image.
5. Under Images, click Document Image.
6. Under Document, click the a!EXAMPLE_DOCUMENT_IMAGE() to edit as expression.
● In the Expression Editor, delete all text, and enter the following expression:
if( a!isNullOrEmpty( fv!row[recordType!WSA Vehicle.fields.image] ),a!EXAMPLE_DOCUMENT_IMAGE(),fv!row[recordType!WSA Vehicle.fields.image])
This expression checks whether the image field is null. If it is null, it displays an example document image. The example document image is displayed for existing vehicle data; you will be able to upload vehicle images when you add new vehicles to the fleet in later exercises.
● Click OK
I am facing the below error which is stopping me to proceed. I am just going through the steps provided above in Appian Academy.
Expression evaluation error: Syntax error. Details: Expression evaluation error at function a!isNullOrEmpty parameter 1 [line 3]: Invalid index operator ''vehicle'' (expecting comma).
Can any one please help me in resolving this issue. Thanks in advance.
Discussion posts and replies are publicly visible
Is the pasted code the exact code as in the editor? "recordType!WSA Vehicle" just as a string is not correct. Try to type the whole name of your record after the "!" and Appian will auto-complete it.
https://docs.appian.com/suite/help/24.2/reference-records.html
Thanks Stefan Helzle , As suggested by you , I corrected the code with auto filling, the syntax error in the code is not raising again .
While testing it I see another 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!gridColumn [line 58]: Invalid number of parameters, function 'if' a minimum of 3 parameters (condition,true,false), passed 2.
Yeah, well ... the error message is pretty clear.