Hi Thomas
Thank you very much for your reply - you got me on the correct path.
Should anybody else have this problem here the solution:
1. On your Notes form create a Rich Text Lite field and limit the imput to Thumbnail. Give the created attachment a name (I used photo in this example). Remember that in my app the data is created using the Notes client.
2. On your xPage create a core control of type image
3. add the following JavaScript as the computed value for the image source:
var doc:NotesDocument = currentDocument.getDocument ();
var UID:string = doc.getUniversalID().toString();
var fp:string = database.getFilePath();
return '/0/' + UID + '/$file/Photo'
4. That's it!
The image now gets displayed if there is one. I used the following code in the hide value for the image control to not display the broken image when no photo is present:
if(@AttachmentLengths()===0) {
return false
} else {
return true
}
Thank you again for the pointer
Greetings from cold Austria (-15 °C this morning)
Ursus