on 05-06-2017 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
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.