Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, as Fredrik wrote, you have a multipart mime field so you need to go through all your entries (text and images).</p> <pre><code>&lt;xp:text escape="false" id="subContent"&gt; &lt;xp:this.value&gt;&lt;![CDATA[#{javascript: session.setConvertMIME(false); if(level3List != null){ var nd:NotesDocument = level3List.getDocument(); if(nd != null){ try{ requestScope.status = ""; var cItem:NotesRichTextItem = nd.getFirstItem("content"); var mime:NotesMIMEEntity = cItem.getMIMEEntity(); if (mime != null) { // If multipart MIME entity if (mime.getContentType().equals("multipart")) { // Print content of each child entity var child1:NotesMIMEEntity = mime.getFirstChildEntity(); while (child1 != null) { if(child1.getEncoding()==1727){ //gif requestScope.status += "&lt;img src=\"data:image/png;base64," + child1.getContentAsText() + "\"/&gt;" }else{ //plain requestScope.status += child1.getContentAsText() //+ "\n" } var child2:NotesMIMEEntity = child1.getFirstChildEntity(); if (child2 == null) { child2 = child1.getNextSibling(); if (child2 == null) { child2 = child1.getParentEntity(); if (child2 != null) { child2 = child2.getNextSibling(); } } } child1 = child2; } } else { // plain mime no multi requestScope.status = mime.getContentAsText(); } } else { // No mime &gt; plain text requestScope.status = nd.getFirstItem("content").getText(); } // return to display return requestScope.status; }catch(e){ return nd.getFirstItem("content").getText(); } } } // Restore conversion session.setConvertMIME(true);}]]&gt;&lt;/xp:this.value&gt; &lt;/xp:text&gt; </code></pre> <p>The only problem I am facing at the moment is, that I am losing the position of the images. They will be all displayed at the bottom.</p> <p>This code can also be find similar at the IBM documentation</p> <p><a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/NotesMIMEEntity_sample_JavaScript_code_for_XPages" rel="nofollow">IBM</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload