AppendDocLink Appears To Work Except Launches Wrong Form.

115 pts.
Tags:
Lotus development
Lotus Forms
LotusScript
I have multiple forms that when completed send emails with doclinks. All work fine except one form that launches the wrong form when the icon is clicked from an email. The form variable lists the correct alias for the document. The correct form is used when clicked in a view. What am I doing wrong? Thanks for your help.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hello All,

To provide answers to some of the question put forth in the resonses.

Yes, the form is saved before the email is created.

Yes, there is a FORM field that is a computed field to insure that the form name cannot be changed.

There are no Form Formulas on the views, I checked, and it opens with the proper form when opened from a view. It is only when opened from an email doclink that causes problems.

All other form types in this database open with the proper forms.

The odd thing is that it has functioned properly for more that three years and now all of a sudden does not. No program changes were made. I was unaware that this was happening until I received a call from the Art Department wondering what was going on. For now, I am telling them to just use the email as a notification and use the view to open the form.

Thanks for your assistance,
Mike

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Mglist
    Please give more info. What's the form name, for instance?
    0 pointsBadges:
    report
  • Mglist
    Thanks Steve for your interest in my problem. The database that this is happening in is the Sales Forms database. When the user creates and sends an Art Requisition form ("frmFGArtRequisition") a doclink is included in the email. When the Art Department clicks the doclink it opens in the Sales Report form ("frmSalesReport"). If the Art Requisition form is opened from a view, it works properly. This has me baffled. Thanks again for your help, Mike
    115 pointsBadges:
    report
  • Ledlincoln
    Is the doclink created and mailed before the form is saved? Also, you might see whether any of your forms have matching aliases (which they should not).
    1,620 pointsBadges:
    report
  • SlikTool
    The view you talk about, does it have a Form Formula on it? A document "ignores" the associated FORM field if a form formula is assigned to a view. My guess is that there is a FORM field on these documents that are linked to, but it is the wrong one and was corrected by a Form Formula in a view. Check if there is a FORM field on the document that is opened. If not, then the database is using the Default form of the database in this case to display the document. If there is, that is what needs changed to solve your issue. I could be off here, and would be willing to help further if you send some more info related to what is stated here. Mike Kinder
    1,840 pointsBadges:
    report
  • Stiletto
    Have you tried a fixup/compact on the db? Could just be a quirky corruption. Is it just one person with the problem, or can other people and workstations replicate the issue?
    3,860 pointsBadges:
    report
  • SlikTool
    Thanks for the additional info. I really don't want to harp on a point, but I am not certain all has been investigated per the Form name. 1st, I believe a DocLink works in 1 of 2 ways. Either the DocLink is created from a view, thus it includes the ReplicaID of the Database, the UNID of the view, and the UNID of the document. Or, when created in a fashion that a view is not apart of the process (i.e. programmatically) then it is the ReplicaID of the database, the UNID of the default view (or no UNID, thus meaning the default view) of the database, and the UNID of the document. So does the default view of the database containing the linked document have a form formula? 2nd, the fact that the field is computed actually means nothing on a document created from a program. To verify if the form field is populated right off, you need to check the document properties from the view. If the Form field is there and populated, then all should be well - I assume of course that this check is performed right after the document was created by the program and no one went into it and performed a save or anything. If not, then a DocLink I believe would use the default form rather than the one you intend. To correct, make certain your code being used to create the document specifically adds the FORM field with the proper value. For example, doc.form = "correctForm". Something else to consider is looking at the contents of the DocLink itself. There is valuable information there. If you were to make a notes URL out of it, it would shed light on what should happen. So from the DocLink info make a URL notes://replica(without colon)/view(without colons or OF at beginning and -ON in middle)/note(without colons or OF at beginning and -ON in middle). You can use start run and put that URL and see what it does. I am only getting into this level of detail because you seem to have a good grasp of programming in Lotus Notes/Domino, and as you said its been working for quite sometime. Obviously something has changed, and I am hoping that this additional info might lead you to a solution. For example, maybe there was a form formula before and now it is missing, rather than my first thought. Mike Kinder
    1,840 pointsBadges:
    report
  • Mglist
    Hello All, I was thinking about the response that ask if there was a Form Formula on the view. There was not, but I thought that might be a good solution. So, I put one on the default view and that fixed the problem. I still don't know why this happened originally, but it works now, and I am willing to settle for that. A special "Thank You" to all that responded and lent their expertise. Mike
    115 pointsBadges:
    report
  • TonyCC
    Sorry to dive in at this late stage, but this reminded me of a problem I had many years ago. Users were clicking on a button in a form opened from a shared, private on first use view that sent a doclink in an email. Recipients of the email were unable to open the doclink. Maybe because the default view didn't contain the document - I can't remember. But if this this was the case with your problem, maybe it would explain why putting a Form formula in the default view solved your problem. Was the doclink generated from a document opened from a private view?
    50 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following