Appenddoclink opens with wrong Form

Hisending a lotusscript-created mail I appended a doclink from another db by using ‘Appenddoclink’-method. It works and I can open the appended document, but it opens with a wrong form which is similar in layout and formname to the correct form. When I look in the opened document properties there is the correct form.

What can be wrong? (- I don’t use form aliases for neither the wanted or the wrong form.)

Any idea?

Your help will be much appreciated

Subject: Appenddoclink opens with wrong Form

The document will be opening using the “default” view in your database - ensure you have no “form” formula code in there to force documents to open with alternative forms.

Subject: Appenddoclink opens with wrong Form - Solved

Thanks very much, Alan!

I obtained the document link from a view by

‘set doc = view.getdocumentbykey(key)’

with (wrong) form formula.

I think it is opened from the default view for example if

‘set doc = db.getdocumentbyunid(Unid)’