HiNeed some advise, If I want the users to only select and see their managers via dialog lists in a leave database, what would be the best way to implement this?
Many thanks in advance.
Coll
HiNeed some advise, If I want the users to only select and see their managers via dialog lists in a leave database, what would be the best way to implement this?
Many thanks in advance.
Coll
Subject: Leave Database, Approvers Lists
I use the Domino Directory. Just have to make sure that the person keeps it up to date. That is, I guess if you have one manager.
Or you can create a dropdown list based by department. Depends on what the breakdown of the ‘managers’ are.
One thing I do though, for our leave form, is let them pick the one(s) that are their manager, and put it in an environment variable. So each time that they create a new leave, it remembers the last managers put in. Here, employees don’t change managers that much, so this saves them from selecting it every time, and you having to maintain lists of managers per whatever grouping you may be doing.
Subject: RE: Leave Database, Approvers Lists
Here is the post open event of the form:
If source.IsNewDoc Then
Call source.FieldSetText("StartDate",Cstr(Today))
Call source.FieldSetText("EndDate",Cstr(Today))
Dim db As NotesDatabase
Dim profiledoc As NotesDocument
Set db = session.CurrentDatabase
Call source.FieldSetText("Status","New")
Call source.FieldSetText("dStatus","New")
Call source.FieldSetText("dName",session.CommonUserName)
Call source.FieldSetText("dDate",Cstr(Now))
Call source.FieldSetText("HireDate",session.GetEnvironmentString( "HireDate" ))
Call source.FieldSetText("EligDate",session.GetEnvironmentString( "EligDate" ))
Call source.FieldSetText("Manager",session.GetEnvironmentString( "Manager" ))
Call source.FieldSetText("AltContact",session.GetEnvironmentString("AltContact"))
End If
And here is the query save:
Call session.SetEnvironmentVar( "HireDate", Cstr(doc.HireDate(0)))
Call session.SetEnvironmentVar( "EligDate", Cstr(doc.EligDate(0)))
Call session.SetEnvironmentVar( "Manager", Cstr(doc.Manager(0)))
Call session.SetEnvironmentVar( "AltContact", Cstr(doc.AltContact(0)))
Pretty simple.
Subject: RE: Leave Database, Approvers Lists
HiThanks…quite interesting, how did you get the env variable to work?
Coll