285 pts.
 Reading a Rich Text Field
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.

Software/Hardware used:
ASKED: April 30, 2008  7:22 PM
UPDATED: May 21, 2008  4:21 PM

Answer Wiki:
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>
Last Wiki Answer Submitted:  May 1, 2008  2:26 pm  by  Wlarue   75 pts.
All Answer Wiki Contributors:  Wlarue   75 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.