• Admin Approval doesn't work on web

    By Shaun Titus 2 decades ago

    Hi Gary,



    Thanks for the quick turn around and for the acknowledgement!



    I am trying to implement the database in a working environment which is why I am finding so many little issues.



    I am having a problem downloading 2.3d right now, but I found a huge problem with 2.3b and I'm not sure if you have already fixed this or not.



    The "Annual Leave Approval - Administrator" button and the "Revoke A/L- Administrator" button do not show on the web because they use LotusScript instead of Formula which points to an agent (I think).



    However, I don't think the lotusscript is web compatible because it is not working on the web, but when I try the button in the client it works. The Administrator approval is the workhorse for the app and I'm not good enough w/ lotuscript yet to re-write it with confidence.



    Any Ideas?





    –Shaun

    • Admin buttons don't work on the web

      By Gary Cousins 2 decades ago

      Hi,



      The notes/instructions in Using This Database state that the Leave Administrator must use the Notes client: "The Requestor and Team Leader can use either a browser or the Notes client; the Leave Administrator can only use the Notes client.".



      I was hoping for some ideas from you ;-}



      Gary

      • Getting Closer

        By Shaun Titus 2 decades ago

        Gary,



        I was able to get the approval button into an agent, remove the uidoc (notes work space) variable and replace it with webdoc (the current document context) like the denial and pending actions. It all works with the exception that the Status field doesn't get updated to "approved".



        With this information I noticed that the Team Leader - Denied button also doesn't work because of the same issue, the status never gets changed to denied. Both actions work in the client, but not on the web.



        All I need to figure out is how to change the status field using either formula or lotuscript that will work in a web browser.



        I thought that this would work but it doesn't:

        FIELD Status := "Yes";



        I also tried:

        @SetField("Approved"; "Yes");



        Oh, and this lotuscript also doesn't work:



        webdoc.fieldsettext("Approved" , "Yes")



        I'll check some resources and post back, let me know if you have any ideas…





        –Shaun

        • Admin approve/deny; team leader denied on web

          By Gary Cousins 2 decades ago

          Shawn,



          I think the problem with the Team Leader Deny button is it puts it into edit mode, sets the Approved field to "Denied", runs the agents and then closes the windows WITHOUT saving it.



          The current code is:

          @Command([EditDocument]) ;

          FIELD Approved :="No";

          @Command([RunAgent]; "(Denied)");@Success;

          @Command([FileCloseWindow])



          Maybe it should be:

          @Command([EditDocument]) ;

          FIELD Approved :="No";

          @Command([RunAgent]; "(Denied)");@Success;

          @Command([FileSave]);

          @Command([FileCloseWindow])



          If any case I'd like to see your code for the admin buttons. If you wish you can mail me direct at gcousins at electricpaper dot ie



          Gary



          Gary