I have a tree view that works fairly well for what I need. It shows Employees Supervised by a Manager like this:
Employees Supervised by Mickey Mouse:
Donald Duck Select
> Hewey Select
> Dewey Select
> Louie Select
Minnie Mouse Select
Goofy Select
This is being displayed on a form of the Employee BO. The Tree is displaying a EmployeesSupervised attribute, which can have multiple records.
The select button at the end allows me to go to that Employee's record.
Works fine for that purpose.
Now I want to change the Select button so that it runs a process that will take the Employee ID, (Dewey for example) and put it in a Session Variable and then run a query that filters some records tied to that employee.
Right now all that is happening is that Mickey Mouse's Employee ID is all that gets put in the Session Variable.
My process looks like this:
SessionVariables.SelectedEmployee=Employee
DISPLAY ReportForSelectedEmployee
The Input to the Process is coming from the Employee BO.
I have tried using:
SessionVariables.SelectedEmployee=ThisEmployee
SessionVariables.SelectedEmployee=ThatEmployee
SessionVariables.SelectedEmployee=OtherEmployee
I tried having no input for the process and setting the SessionVariable with SessionVariables.SelectedEmployee=Employee
Sometimes that will work, but most of the time it does not.
If I change the Select back to an Edit operation it brings up the correct employee every time.
What would be different about how the edit operation works from calling a process?