I am sure this has been asked and answered somewhere, but I just finished a search of this and the 4&5 forums and didn’t find an answer to my problem.
We have a global phone book that is accessed in both notes and on the web. Users are given an upload control to attach a photo to be displayed on their record.
I have no problem getting the attached image to display on the web form, but the same code is not working in Notes.
In Notes, I’ve tried computed text, I’ve tried a computed image resource. I’ve tried both use and not using an <img tag in Notes, since I’m not sure the client recognizes those (although it does recognize a href=) and have tried just generating a url to the attachment, but so far no luck getting the actual attachment image to appear.
The code I’m using on the web is: (change { to [ )
db := @LowerCase(@ReplaceSubstring(@Subset(@DbName; -1); “\”; “/”));
thepic := @ReplaceSubstring(filename_picture;" “;”+");
picval := “{<img src=/” + db + “/0/” + @Text(@DocumentUniqueID) + “/$file/” +thepic + " width=150 height=175 border=1>}";
placeholdval := “{<img src=/” + db +“/PhotoNotAvail.gif border=0>}”;
editval := “{<img src=/” + db + “/PhotoUpload.gif border=0>}”;
@If(@IsDocBeingEdited; editval; filename_picture != “”; picval; placeholdval)
If anyone has the solution, or could point me to the previous thread(s) that address it, I’d be grateful.
Thanks.
Christy Zurcher
Aon Corporation