Navigation
User login
Recent blog posts
- AweSync is launched in production!
- We Moved to a New Office
- Lotus Notes ActiveX Grid announced - FREE Trial
- Lotus Traveler - Nice Way To Sync Mobile Device
- Creating a Lotus Notes View with NotesView and AJAX
- How to Fix a Multiline Comment in a Lotus Notes Application
- Filtering in Views Using LotusScript Code Made Easier
Reply to comment
How to Fix a Multiline Comment in a Lotus Notes Application
If you are working on a web project and need to get a comment form with a multiline text field, you use the following field options:

and you might use the following Translation:
@Implode(@ThisValue;@NewLine)
The field looks like this:

When a user types in a comment without inserting a line break, you can easily get the field value after the document is submitted with
because, naturally, the field is shown in the HTML:
However, when a user types in a comment and inserts a line break,

there's no hidden field data in HTML
(the field should be here)
and you get the "... is null or not an object" exception trying to get this value:

Thus, you can't use/process the data, which is lost on a page refresh for the user.
The Fix
Instead of writing the following in the Translation
@Implode(@ThisValue;@NewLine)
you need to use the following:
@Implode(@ThisValue;@Char(10))


