I am on the Exercise where I have to change the image to a document image I was initially getting an error as it was like the documents was missing there but managed to add the images to my app.
I have keyed the code under the expression editor.
a!imageField( images: a!documentImage( document: fv!row['recordType!{c20ff609-5f40-4fea-8800-074abc464c7c}AX Vehicle.fields.{f1cb1cdc-1134-40e8-b30b-0b90d32da455}vehicleimage'], caption: fv!row['recordType!{c20ff609-5f40-4fea-8800-074abc464c7c}AX Vehicle.fields.{f1cb1cdc-1134-40e8-b30b-0b90d32da455}vehicleimage'] ), size: "SMALL")
I now get this error below.
Discussion posts and replies are publicly visible
resolved by adding if(isnull into the coding.
a!imageField( images: a!documentImage( document: if(isnull(fv!row['recordType!{c20ff609-5f40-4fea-8800-074abc464c7c}AX Vehicle.fields.{f1cb1cdc-1134-40e8-b30b-0b90d32da455}vehicleimage']), a!EXAMPLE_DOCUMENT_IMAGE(),fv!row['recordType!{c20ff609-5f40-4fea-8800-074abc464c7c}AX Vehicle.fields.{f1cb1cdc-1134-40e8-b30b-0b90d32da455}vehicleimage']), caption: fv!row['recordType!{c20ff609-5f40-4fea-8800-074abc464c7c}AX Vehicle.fields.{f1cb1cdc-1134-40e8-b30b-0b90d32da455}vehicleimage'] ), size: "SMALL")