http://panther.sharedknowledgesystems.com:81/sharedknowledge/sksblog.nsf
03/09/2005 04:06:32 PM - A Rich Text tip worth repeating.

Permalink A Rich Text tip worth repeating.





Table cell hide-whens in Notes/Domino applications have always had some problems associated with them. I've been working on a web application that contains 23 rich text fields, all embedded in table cells along with fields of other types. The hide-when formulas for the rich text fields and their associated text display fields are simple - the rich text fields are to be hidden in read mode, while the associated text fields are computed for display and hidden in edit mode. What could possibly go wrong?


A picture named M2Well to begin with I was seeing double. Both fields displayed in edit mode and both fields displayed in read mode. I tried recreating a few of the fields thinking maybe they were corrupt - no change. I tried creating the rich text field in a different table cell from the one in which the associated display field was living - no change.  Through several iterations of this I noticed that once in a while the duplication went away. However, there seemed to be no rhyme or reason as to why. I looked at other web applications I have created in the past but none of the forms contained the plethora of rich text fields this one does, and they were never contained in a table cell.

Then while searching Notes Net for some information I came across a posting that talked about putting a space before a rich text field to make the hide-when formula kick in. The posting was a good 2 or 3 years old so I thought surely that the bug this was meant to work around would have been fixed already - apparently not. Upon close inspection it turned out that a couple of the fields I had fiddled with in an effort to fix the problem had a space in front of them. These were the ones that were inexplicably working as expected. I then went and put a space before each of remaining 20-odd rich text fields and viola! The hide-whens now work as I expect them to.



Comments

No documents found

Add Your Comments



Email addresses provided are not made available on this site.





You can use UUB Code in your posts.

[b]bold[/b]  [i]italic[/i]  [u]underline[/u]  [s]strikethrough[/s]

URL's will be automatically converted to Links


:-) :-D ;-) :-( :angry: :-o :grin: :cool: :laugh: :huh: :cry: :rolleyes: :-x :-p :-\ :emb: :lips:






Remember me    

Add Manual Trackback
Please enter the details of the trackback post. Your trackback will not appear on the site until it has been verified. This may take up to 10 minutes.

Site Name

Permanent URL of TrackBack Post

Title of Post ( If Any )

Excerpt of Post ( Max 250 Chars )



Calendar
September 2008
Su
Mo
Tu
We
Th
Fr
Sa
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
29