Dear all,In my form i’m saving a formatted richtext field. since i cannot use it in a view i thought of having computed field with the following formula
@Abstract( [TextOnly]:[TrimWhite]; 64000 ; “” ; “LAS_StandTempDesc” )
it works fine i can see it on the view as well…now my problem is i need to display those richtext values(with bold underlining etc.) on a another form. i use this following formula on a button to pickup format text from the view
FacDesc:=@PickList( [Custom] ; “”: “” ; “LAS_StandTemplate_Viw” ; “Please select Template”;“”;2 );
@Command([EditGotoField];“FacDesc_TXT_1”);
@Command([EditInsertText];FacDesc)
i need to display formatted text, but i can see only text without fomatting…Please help me
thanks
shana
Subject: RE: Richtext and @picklist problem
64000 is too many characters, and that won’t all show in the view anyway – it’ll be truncated. Choose a much smaller number, or you’ll max out the number of summary bytes per field and the view column will come up blank.
It looks like this code is in an action that you use while editing the document. That being the case, you won’t be able to do this with formula language. There’s no way to insert formatted text into a document with @Commands – EditInsertText doesn’t work because what you want to insert isn’t plain text – it’s rich text. This may help: Update rich text tip.
(note: You could do it with formulas using copy/paste, but that makes you lose the old clipboard contents and is fairly complicated to get the old document’s rich text onto the clipboard).
The other problem is that, since the view column doesn’t contain rich text, but only plain text, you can’t read the rich text from the view. You would have to get the rich text from the document that contains it. For this, you might try NotesUIWorkspace.PickListCollection, and AppendRTItem to get the rich text from the selected document into your document.
Subject: RE: Richtext and @picklist problem
Thanks a lot I’ll try that