リンクされた一連の更新ドキュメントを含むメイン ドキュメントがあり、いくつかのフィールドとリッチ テキストの Body フィールドがあります。繰り返しコントロールの更新から任意のビュー列を表示できますが、繰り返しコントロールにもリッチ テキスト フィールドを表示したいと考えています。
私はいくつかのアプローチを試しましたが、これまでのところ何もうまくいきませんでした。
私はこの解決策を試しました:
rowData.getDocument().getFirstItem("Body").getMIMEEntityAsText()
そしてこれ:
rowData.getDocument().getFirstItem("Body").getMIMEEntity().getContentAsText();
そしてこれ:
http://iqjam.net/iqjam/iqjam.nsf/questions/20100914_How_to_Display_a_RichText_fiel.htm
<xp:repeat id="repeat1" rows="30" value="#{view1}" var="row">
<xp:panel>
<xp:this.data>
<xp:dominoDocument var="doc" action="openDocument"
documentId="#{javascript:row.getNoteID()}">
</xp:dominoDocument>
</xp:this.data>
<xp:inputRichText id="inputRichText1" value="#{doc.ArticleContent}"
readonly="true">
</xp:inputRichText>
</xp:panel>
</xp:repeat>
そしてこれ:
http://www.ibmpressbooks.com/articles/article.asp?p=1681058&seqNum=4
var nd:NotesDocument = rowData.getDocument();
var mime = nd.getMIMEEntity("body");
// if it is MIME then you can passthrough as HTML
if (mime != null) {
return mime.getContentAsText();
}
// Otherwise just return the plain text
else {
return nd.getItemValueString("body");
}
どちらもテキストのみのドキュメントのみを表示します。画像が埋め込まれている場合、または画像とテキストが混在している場合は、何も表示されません。
提案をいただければ幸いです...