• Good, simple, easy and elegant but...

    By Brett Hershberger 2 decades ago

    I like the app Vilhjalmur, but I'm having issues when following the doc link I am not able to approve or reject a document. I get a "variable not set" error. But if I open the database then the document directly I can, and it works great. I'll keep digging to see why it would do this.

    • wfuidoc

      By Vilhjalmur Helgason 2 decades ago

      I will check when I get home from work today - but this is almost certainly wfuidoc not set when document opened via a link. Hiding the approve/reject buttons in read mode should do the trick, or moving the wfuidoc init to the init of the libarary, or checking if is nothing before using it i.e. in the buttons:

      if not isInitialized then

      if wfuidoc is nothing then

      dim wfuiwork as new notesuiworkspace<br/>
      Set wfuidoc = wfuidork.currentdoc<br/>
      

      end if



      Call WorkflowProcess



      VH

      • Thanks but...

        By Brett Hershberger 2 decades ago

        Where do you put that piece of code? Sorry I do not know the app or LS too well. Have you added it to the downloadable copy here on OpenNTF? Also it does not seem to matter if the document is in edit or read mode. It still gives the same error.

        • Doc link bug

          By Vilhjalmur Helgason 2 decades ago

          Thanks for the tip. I found that the workflow was not initialized when documents are opened via. a doc link. Very small stuff, and easy to fix (fixed). It is so trivial (to me) that I will need to collect more stuff before uploading version 1.1. Sorry (unless you want it for a production system, then I will send you the snippet).



          Truth be told, I ported the code to Java last Sunday (much easier than LS, and code much more structured (and readable)), and will probably code the next version of wfNote for the fat Eclipse client.

          • Yes Please!

            By Brett Hershberger 2 decades ago

            I sent an email but not sure if you got it.



            Please post the fix to this if you can Vilhjalmur, I definitely plan on using this in production as it's very cool and easy to manage. I have shown it to dept managers and they want to start using it… I just need the doc link part to work then I can do a demo to the big bosses!!



            Thanks so much

            Brett



            PS How do I do conditional routing? Is it by adding an @If statement to the Workflow Definition form?