Domino Data Access

Hello!

I have got an application which creates notes documents via domino data access in json format. At the moment there is only the use of primitive datatypes possible. In the Domino Data Access http://infolib.lotus.com/resources/domino/8.5.3/doc/designer_up1/en_us/DominoDataService.html document I read that there is no creating and update of richtext fields is supported in version 8.5.3. There is no content type of “multipart” possible for post-requests.

Note: Creating attachments and embedded objects is not currently supported. Attempting to create or update a rich text field with attachments or embedded objects, or references to attachments or embedded objects, returns error 400 (Bad Request). If you use the data returned from a GET request to update or create a new document, remove any attachment data.

Can anybody tell me, if that limit is still in notes 9.0.1?

best regards

Matthias

Subject: There’s better rich text support in 9.0 and 9.0.1 …

It’s not entirely accurate to say “there is no creating and update of richtext fields” with the data service in 8.5.3. There was some limited support for rich text in that release. The limitations were related to attachments and embedded images.

However, rich text support is much improved in 9.0 and 9.0.1. As of 9.0, multi-part format is the default for rich text items. Multi-part format allows us to represent rich text, attachments and images in a single JSON object. There are some examples of this in the description of the Document GET request:

http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&res_title=Document_GET_dds10&content=apicontent http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&res_title=Document_GET_dds10&content=apicontent

You can also write a multi-part rich text field when creating a new document. See the second example on this page:

http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&res_title=Document_Collection_POST_dds10&content=apicontent http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&res_title=Document_Collection_POST_dds10&content=apicontent

And, of course, you can use the same format when updating a document:

http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&res_title=Document_PUT_dds10&content=apicontent http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&res_title=Document_PUT_dds10&content=apicontent

– Dave