Reputation: 697
In an application I am experiencing problems with field limitations.
At the moment I am using a multiline edit box control on an xpage to capture the information and I save it in the back-end on the Notes document as a text field e.g:
doc.replaceItemValue("emplInformation", employee.getInfo());
I was not aware that users paste "complete stories" in the field so it breaks my functionality (I am not handling the error so the document will never be stored).
Therefor I was thinking that instead, perhaps I could save the information to a rich text field instead and hereby avoid the field limitation.
Is this a smart thing to do? Or, should I try other options?.
I have to mention that the user is not going to enter formatted text (yet). So I do not have to take notice of that. Nor that they will paste in images or html.
I have never worked with rich text or mime in Java before so I am not experienced in read/write such data. Any code example how to store it to the back-end document is highly appreciated.
Upvotes: 0
Views: 411
Reputation: 1271
If you want to store data in a field, was could be greater as the field limit, you may consider using the OpenNTF Domino API. You can store in a single field, if to big, the field is automatically converted to a RichText item. Is used it in our HR Assistant application, for info about to bypass the limit see, http://elstarit.nl/2018/01/18/make-the-nsf-modern-again-with-openntf-domino-api/
Upvotes: 2