I have a strange problem with a richtext field. It’s used as a history field and I have event procedures (PostSave) appending information when the document is saved.
The problem is that the field only shows the first line or few lines in Read mode. Once you enter Edit mode it displays correctly.
The event procedure is correctly saving the backend document once it’s made the changes. Otherwise, the changes wouldn’t appear.
There are no Hidewhens on the field.
Any ideas what I can try to get it to show the whole field?
Thanks
Subject: RE: Can’t See Field Content
You didn’t give the whole set of steps, but it sounds like maybe you’re updating back-end rich text and then expecting it to display while the document is still open. It might be better to do your updates in the Querysave code; that won’t solve your problem but at least you wouldn’t be writing your changes twice.
Subject: RE: Can’t See Field Content
You didn’t give the whole set of steps, but it sounds like maybe you’re updating back-end rich text and then expecting it to display while the document is still open.
No, I’m doing the change in the PostSave event accessing the backend document and saving the changes. The UI document is closed.
The problem is when you go back and open the document. If it’s in Read mode, you can only see part of the content of the field in question. Once you go into Edit mode, it all displays.
Even re-saving without modifying the field doesn’t work. It still only shows part of the content of the field when in Read mode.
Subject: RE: Can’t See Field Content
It is possible the rich text field has a hide flag on to hide in Read mode. Part shows because part of the content doesn’t have the flag, whether because it was copied from elsewhere ot because of a space before the rich text field on the form.
Subject: RE: Can’t See Field Content
Thanks.
I tracked it down. I’m appending an rtitem to the item in question. The rtitem I’m appending has a HideWhen.
I’ve been able to work around it so all is well.
Thanks to all.
Subject: *Glad to hear it.
Subject: Can’t See Field Content
Does the field have to be a rich-text field? It seems that it cause more trouble than it is worth by being RT
There may be some hide-whens contained within the field value itself. I have been caught out by this before. The best way to check (although I bet someone proves me wrong!) is to export the document using DXL so that you can see the complete hide-when attributes
Mike
Subject: RE: Can’t See Field Content
There may be some hide-whens contained within the field value itself.
How can there be hide-whens in the field?
Re. DXL, is this a separate tool or part of the Designer client?
Thanks
Subject: RE: Can’t See Field Content
Rich text is made up of paragraphs, just like forms (which are actually rich text as well), so you can have embedded hide-when flags or formulas inside the rich text of a rich text field. See my article Rich Text 101 - Rich Text Itself if you want a more complete explanation.