Getting Previous Activity

   I am trying to get the activity that was the previous activity (or last called) of the current activity.  How would I go about doing this   base.parent just return the parent container.

Calling out the exact ID will not work because the context of the current activity could have arrived from many different activities.

Thanks,
Mardo


Answer this question

Getting Previous Activity

  • Jeewai


    this.Parent.Activities[this.Parent.Activities.IndexOf(this) - 1]
     


    gets the previous activity of the same "level"

  • angelar

    Any suggestions here   Basically I need this so I can make activities assign to resources.  If the current activity does not have an assignment it will basically use the previous activities asssignements.

    Any help would be greatly appreciated.



  • Getting Previous Activity