2 Replies Latest reply on Jun 14, 2010 2:06 PM by hspiegl

    Automatic Display of User's Tasks upon login

    hspiegl

      Title

      Automatic Display of User's Tasks upon login

      Post

      FMP11, Server, 9 users, OSX 10.6

       

      Hi,

       

      I want to create a script which displays an employee's tasks/active jobs upon their signing in. I've searched around and got to Get(AccountName) and then didn't know what to do with it! Once the task has been passed on or completed it shouldn't show again in their set of tasks. I've got the main bit of all active tasks listed but want to be more specific.

       

      Any thoughts?

       

      Regards,

       

      Hugo

       

       

        • 1. Re: Automatic Display of User's Tasks upon login
          philmodjunk

          Presumably your table listing all your tasks includes a field that can be used to identify which tasks have been completed. It could be a status field that says "completed" or some such or it could be a date field that records the date the task was completed.

           

          Using DateCompleted as a date field to show which tasks are completed, your script might look like this:

           

          Go To Layout [ TaskList (TaskList) ]

          Enter Find Mode [] //clear the pause check box

          Set Field [TaskList::AccountName ; Get ( AccountName ) ]

          Set Field [TaskList:: DateCompleted ; "=" ] //assumes field will be empty if task is not complete

          Set Error Capture [on]

          Perform Find []

           

          Use File | File Options... to specify that this script run when the file is opened and it should do what you want.

          • 2. Re: Automatic Display of User's Tasks upon login
            hspiegl

            Got it now, thanks.

             

            Hugo