358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
Latest 7 Posts
False Positives on Planet Lotus
Fri, Sep 25th 2009 30
Validating URL and Email Addresses with regexp in Lotus Notes
Thu, Sep 17th 2009 94
can’t use @ThisName in Hide-When formulas, LOTUS NOTES meta coding FAIL
Fri, Sep 11th 2009 51
Expanding Group Names for Lotus Domino using LotusScript
Tue, Sep 8th 2009 198
SNTT: a pseudo Computed for Display Rich Text Field in the Lotus Notes Client
Thu, Sep 3rd 2009 74
Sacha Chua shares her Lotus Notes mail merge from a Microsoft Excel spreadsheet
Thu, Aug 27th 2009 63
SNTT : using LotusScript to launch file attachements (EmbeddedObjects) in Lotus Notes
Wed, Aug 26th 2009 194
Top 10
Expanding Group Names for Lotus Domino using LotusScript
Tue, Sep 8th 2009 198
SNTT : using LotusScript to launch file attachements (EmbeddedObjects) in Lotus Notes
Wed, Aug 26th 2009 194
Stopping Copy and Paste, in Lotus Notes, selectivity in Views
Thu, Jul 30th 2009 106
SNTT : Validating a Notes Client Rich text field
Thu, May 7th 2009 98
Validating URL and Email Addresses with regexp in Lotus Notes
Thu, Sep 17th 2009 94
SnTT: Notes Document Structured Text Export for Multilingual (UTF-8)
Thu, Nov 15th 2007 93
SNTT: a pseudo Computed for Display Rich Text Field in the Lotus Notes Client
Thu, Sep 3rd 2009 74
Sacha Chua shares her Lotus Notes mail merge from a Microsoft Excel spreadsheet
Thu, Aug 27th 2009 63
can’t use @ThisName in Hide-When formulas, LOTUS NOTES meta coding FAIL
Fri, Sep 11th 2009 51
Weird Wonderful Web Links for January 21st
Mon, Jan 21st 2008 32


SNTT: a pseudo Computed for Display Rich Text Field in the Lotus Notes Client
Ian    

As in last weeks posting, I wanted to have help verbiage centrally maintained (without developer innervation) but always displayed update in the end user document (the final end user). Easy enough to do with text or on the web, but doing this with rich text (pictures and text markup) on the Notes Client was non trivial. Rich Text field are either “editable” or “computed” which mean it wasn’t going to update it if the document was in read mode.

So what I created was a pseudo Computed for Display Rich Text Field.

the field itselft was a straight forward Rich Text Computed field, named “RTCF_Help”, and with the lotus formula

@GetProfileField( “ApplicationProfileDocument” ; “HelpDocumentation”)

where “ApplicationProfileDocument” is the name on the Profile document and “HelpDocumentation” is the rich text field on that Profile document.

the trick is to destroy the item on the document so that even in read mode the field is recreated and re computed. I’m doing it before the document open and as it closes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)

Dim doc As notesdocument
Set doc = Source.Document
Dim item As NotesItem

If Not Isnewdoc Then
Set item = doc.GetFirstItem("RTCF_Help")
If Not item Is Nothing Then
Call item.Remove()
End If
End If

' the rest of your code if any....

End Sub

Sub Queryclose(Source As Notesuidocument, Continue As Variant)

Dim doc As NotesDocument
Set doc = Source.Document
Dim item As NotesItem

Set item = doc.GetFirstItem("FMUniversalUpdaterHelpDoc")

Call item.Remove()

End Sub

One thing that didn’t work was any attached file in the profile documents rich text, which looked like it was there but would open / launch (which is where last weeks post came from : SNTT : using LotusScript to launch file attachements (EmbeddedObjects) in Lotus Notes).

The fall back position for this would be have a Button that opened the Profile document in read mode like this

1
2
3
4
5
6
7
8
9
10
11
Sub Click(Source As Button)

Dim  workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = db.GetProfileDocument("ApplicationProfileDocument" )
Call workspace.EditDocument( False, doc, True )

End Sub

enjoy :)

I’ve add having a real Computed for Display Rich Text Field in the Lotus Notes Client to Idea Jam

Post from: False Positives

SNTT: a pseudo Computed for Display Rich Text Field in the Lotus Notes Client



---------------------
http://www.falsepositives.com/index.php/2009/09/03/sntt-a-pseudo-computed-for-display-rich-text-field-in-the-lotus-notes-client/
Sep 03, 2009
76 hits



Recent Blog Posts
30


False Positives on Planet Lotus
Fri, Sep 25th 2009 9:56a   Ian Irving
[read] Keywords: domino lotus notes sntt community firefox google php planet lotus planetlotus planetlotus.org
94


Validating URL and Email Addresses with regexp in Lotus Notes
Thu, Sep 17th 2009 9:57a   Ian Irving
[read] Keywords: lotus lotusscript notes sntt email php
51


1
can’t use @ThisName in Hide-When formulas, LOTUS NOTES meta coding FAIL
Fri, Sep 11th 2009 12:31p   Ian Irving
[read] Keywords: dblookup document formula formula language lotus notes sntt idea jam ideajam ideajam.net php properties
198


Expanding Group Names for Lotus Domino using LotusScript
Tue, Sep 8th 2009 10:09a   Ian Irving
[read] Keywords: acl document domino lotus lotusscript notes notes client rich text rich-text sntt php server
75


SNTT: a pseudo Computed for Display Rich Text Field in the Lotus Notes Client
Thu, Sep 3rd 2009 4:16p   Ian Irving
[read] Keywords: document formula lotus lotusscript notes notes client rich text rich-text sntt idea jam ideajam ideajam.net php profile workspace
63


Sacha Chua shares her Lotus Notes mail merge from a Microsoft Excel spreadsheet
Thu, Aug 27th 2009 9:40a   Ian Irving
[read] Keywords: document domino lotus notes sntt microsoft php




194


SNTT : using LotusScript to launch file attachements (EmbeddedObjects) in Lotus Notes
Wed, Aug 26th 2009 10:13p   Ian Irving
[read] Keywords: admin document domino ibm lotus lotusscript notes notes client R5 R8 rich text richtext rich-text sntt application database office php profile security workspace
20


SNTT : Don’t hard code your Selectedable Years in a Lotus Notes dialog box.
Thu, Aug 13th 2009 3:39p   Ian Irving
[read] Keywords: acl dblookup lotus lotusscript notes sntt php
16


SNTT adding http onto URL strings in Lotus Notes
Thu, Aug 13th 2009 6:20a   Ian Irving
[read] Keywords: document formula formula language lotus lotusscript notes sntt java php
106


Stopping Copy and Paste, in Lotus Notes, selectivity in Views
Thu, Jul 30th 2009 1:41a   Ian Irving
[read] Keywords: acl agent document formula formula language lotus lotusscript notes notes client sntt database php




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - FAQ - Mobile Edition