• Help !!!!!

    By Paul Zimmermann 2 decades ago

    Gary,

         Does the administration side to this work ? I am able to create Teams and Leaders etc, but when it comes to approval the buck stops.<br/>
    

    The team leader approves the request and an email is sent to the requester but then its a fizzer, how does the administrative layer work, how do you define administrators, tried ACL roles combinations and nothing works.

    • help

      By Gary Cousins 2 decades ago

      Hi Paul,



      In the original version the mail used to be hardcoded to send mail to the admin.

      Code:

      @If(@IsDocBeingEdited ; "" ; @Command([EditDocument]));

      @DialogBox("[Comments]";[AutoHorzFit]:[AutoVertFit]);

      @Command([FileSave]);

      @MailSend(From;"Joe Bloggs/";"";"Leave Decision Pending";"";"";[IncludeDoclink]);

      @Command([FileSave]);

      @Command([FileCloseWindow])



      but I changed this to a role based selection using (@IsMember("[Admin]";@UserRoles)) i.e.



      @If(@IsDocBeingEdited ; "" ; @Command([EditDocument]));

      @DialogBox("[Comments]";[AutoHorzFit]:[AutoVertFit]);

      @Command([FileSave]);

      @MailSend(From;(@IsMember("[Admin]";@UserRoles));"";"Leave Decision Pending";"";"";[IncludeDoclink]);

      @Command([FileSave]);

      @Command([FileCloseWindow])



      My programming skills are self taught and I clearly made a mistake: It's not possible to use @sendmail with roles. I'll fix the error and post a new release. If you can shed any light on ACL classes I'd appeciate the help.



      Gary

      • By Paul Zimmermann 2 decades ago

        Gary,

             I'll test your new release and I'll let you know if there are any problems.<br/>
        



        Thanks and much appreciated.



        Paul