Reading a Rich Text Field

285 pts.
Tags:
Domino 6.5
Formula Language
Lotus Notes
XHTML
I have a simple form (on the web) with a few text fields (Title, Date, etc..), and a rich text field for more "Body" text. (Displayed using the Java Applet.) Does anyone know if it's possible to display the RTF from a view? I see the variable in my Programmer's Pane, but when I refresh the view, nothing happens. Again, I plan on viewing this from the web, so perhaps there is some formula language? I presume I'll be using the "Treat View Contents as HTML" option.. Thanks -mrg.

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you add a hidden computed text field to your form with the formula @Abstract(name of RTF), you will be able to extract the text from the RTF and can then display the information in a view column. You should consult the Help files to see the options associated with the function, and should check that the field is shown as “Summary” in order to make sure that it will display in a view. There is a maximum size for the function, around 64-65K characters, but if you are trying to display that much text in a column you have other issues to worry about <grin>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Mrg
    Thanks, that definitely does make sense, but for some reason I can't get it to work. I even found this page, which says the same thing... http://www-128.ibm.com/developerworks/lotus/library/ls-richtextinviews/ I have a RTF named "text"; displayed using the Java Applet. Then below I created a text field named "BodyText", with this as the formula: @Abstract( [TextOnly]:[TrimWhite]; 64000 ; "" ; "text" ) I selected "Computed" and "Compute after validation". I've also hidden from "Web browsers" and when "Previewed for editing" and '"Opened for editing". But when I try to view the page in my browser, I get a Page not Found error. When I delete the "BodyText" field, everything is (relatively) normal.
    285 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following