• Doc Link Fix

    By Vilhjalmur Helgason 2 decades ago

    Fix for the doc link problem i.e. "object variable not set" when approving document opened via. doc link.



    In script libaray "wfNote", functions "PromptConfirm" and "PromptRemarks", second line from top,

    replace:

    Dim docDlg As New NotesDocument( wfuiwork.CurrentDatabase.Database )

    with:

    Dim docDlg As New NotesDocument( doc.ParentDatabase )



    Looks like Notes does not set uidoc.currentdatabase.database, when document is opened via. doc link.

    • Further error

      By Sebastian Botz 2 decades ago

      Hello,



      i also had the same problem with doclinks. There is another appearance of the code in the script library in function "PromptRemarks" which you also have to replace. Of course the error occurs only if you have checked the remark box.





      PS: Great Addin. Thx

      • Thx

        By Vilhjalmur Helgason 2 decades ago

        Thx, I edited the "fix" document.

    • Does the download release have this fix in it?

      By Kevin Pettitt 2 decades ago

      Vilhjalmur, you might have slipped this fix into the 1.0 release but if not you should post a fully functional 1.0.1 release or something. In any case this looks very cool…I don't know how I missed it before now. Can't wait to try it out.



      Kevin