xpages - Convert MIME to RichText -


i convert domino document field of data type: mime part data type: rich text in backend ssjs or java?


i have tried work

doc.computewithform(true, true); doc.save(true, true); 

but piece of code has no effect.


hint: can conversion notes client in frontend (open , save document) without problems.

any idea? in advance!

you may able part of usually-undesirable side effect of automatic mime-to-cd conversion in api. example, code turn body field of first doc in db mime composite data:

boolean convertmime = session.isconvertmime(); session.setconvertmime(true); document doc = database.getalldocuments().getfirstdocument(); richtextitem rtitem = (richtextitem)doc.getfirstitem("body"); rtitem.compact();  doc.save(); session.setconvertmime(convertmime); 

by making sure session converting mime (which true default, it's best maintain previously-existing value) , interacting mime_part item, mangle cd you.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -