View to display Rich Text
View to display Rich Text
(OP)
We are currently designing a view and cannot display a field that is formatted as rich text.
Have tried a few things including the @abstract command but cannot get it to work.
Any solutions?
Many thanks
John
Have tried a few things including the @abstract command but cannot get it to work.
Any solutions?
Many thanks
John
RE: View to display Rich Text
in the rich text field.
Richard...
RE: View to display Rich Text
What you could eventually do is use the QuerySave event to extract the text from the rich text field with the GetFormattedText method of the NotesRichText field, but in essence it gets down to making a second copy of something that is already there, plus you lose all formatting.
The real question is : why do you want to display what is in the rich text field ?
You should rethink your form and propose enough fields to categorize important information so that the user knows for sure what doc to open to get to the nitty gritty.
RE: View to display Rich Text
so rebuild your think actually not the view.. and you will find another way
RE: View to display Rich Text
my solution was the following:
- In the rich-text field properties, i turned on the option: save as MIME and HTML.
- created a hidden textfield .
- On save, replaced the value of the hidden textfield with the one from the rich-text field.
- In the view i referred to hidden textfield to take out the data.
In your case, if you do not want the rich text formatting, you can probably filter out tags using the implode and explode functions.
Good luck,
Meco