Hi Jaymer
"You can check to see if the file exists before doing the import, else assign it to the no image" ~ This is exactly what I need to do.
"The CRM does this as an example that" ~ Is this what you're talking about? [If Customer.Photo IS UNDEFINED Then
IMPORT DOCUMENT Customer.Photo FROM '../samples/CRM/NoPicture.PNG'] If so, I don't think this will work for me. I'd need to check if '../samples/CRM/NoPicture.PNG' exists, rather than if the photo attribute is defined.
"In a custom Q, you can use an if statement to selectively not output the IMG tag when image is undefined" There might be a way to use this, I did think of it. The issue is in the img tags I use a file path that is defined whether the image exists or not. When I create a person record, I set the file path.
IF Person IS NEW THEN
Person.PhotoPath='C:\AwareIM\Tomcat\webapps\AwareIM\PersonImages\'+Person.Name+' '+Person.LastName+'.jpg'
Person.ViewPath='.../AwareIM/PersonImages/'+Person.Name+' '+Person.LastName+'.jpg'
I then try IMPORT the Person.Photo (stored in the file system with Person.PhotoPath being the attribute that stores the path in the file system) FROM Person.PhotoPath . I think this is redundant, and I can remove this.
Sometimes I have the image of the person, sometimes I don't. The attributes storing the path are defined if the image exists or not. This is my issue.