Doclink turn to Database link after saving the document

Hi,

I’ve a problem with doclink that changes to database link when i save a document.

A java agent creates a new response document to a main document. In the response doc, i’ve richtext field where is put a doclink to the main doc. It works till i edit manually the doc and save it again. It becomes a database link.

The richtext field is computed with a default value of “” in the form used to display the document. If i change to editable field, the problem doesn’t occur but user can modify that field and i don’t want that.

Using a controlled section isn’t a solution either in this case.

I’ve found some post talking about a bug in 6.5.4 but it happens in 8.5.1 & 8.5.2

Any clue ?

Regards

Subject: Doclink morphing into a database link.

I’m encountering this same problem on Notes 7.0.x

Using LotusScript to append a doclink into an uneditable RT field.

Any insight would be greatly appreciated.

Subject: Some insight…

This occurs when the RT field is computed. When I make it editable, it works properly.

However, I need to have the RT field read-only so nobody can make changes (audit trail).

Time to look for some work around…

:frowning:

Subject: Workaround…

NOT!

I tried to create a second RT field computed to the initial RT field (which is left editable and hidden). No luck. The computed field messes up the links in the hidden field. The hidden field does remain intact so me thinks there is a bug in the compute logic behind that field component/object.

I’d do an SPR, but I am so far behind in my workload…

:frowning:

Subject: Default database form

I’ve seen hints that setting a default database form for the database may help. I’m trying that now, and if you don’t hear from me, then it worked.

Subject: Still no solution

Default database form did not work for me.I have a form with about TEN computed RT fields with doc links.

What a PITA!

Subject: Corrupted Doclinks in computed RT fields and access-controlled sections

Hi,

I recently encountered this problem too.

My workaround is to replace the doclinks with action hotspots that use LS to get the document by key and then instantiate a uidoc.

One of the advantages of doclinks is that, if the user already has the document open somewhere, they just switch the user to that instance instead of opening a new instance. Setting the last parameter of ws.EditDocument to FALSE seems to work OK too, though.

However, when the doclinks were in access-controlled sections, I’ve had to move them, as the hotspot action won’t work in such a section if the user doesn’t have sufficient rights to modify the section.