on ‎2017 May 06 2:15 PM
Hi,
I have a customBO containing an AttachmentFolder that contains a Document which is an image.
I would like to display this image on a Print Form.
I wrote the below code to extract the fileContentURI, and the Pathname.
if (bc.Attachment.IsSet()){
if (bc.Attachment.Document.Count() > 0){
var bc_doc = bc.Attachment.Document.GetFirst();
cnode.fileName = bc_doc.Name;
cnode.mimeType = bc_doc.MIMECode;
cnode.attachmentURI = bc_doc.FileContentURI;
cnode.pathname = bc_doc.PathName;
}I then replaced the "http://xxx.byd.sap.corp:50000" with my tenant URL, but still the image cannot display.
I bind the FileContentURI to an Image field in the form, but it will not display.
Thanks.
Edmund
Request clarification before answering.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.