Wizard Shading Based on Project Status


I am using a Navigation Wizard to visually display the current status of a particular project.  My statuses are:

  • Opportunity
  • Concept Design
  • Design Development
  • Construction Documents
  • Construction Administration

I was placing the following code in the expression editor for the step:

SyntaxEditor Code Snippet

If(GetProjectById.List.Current.Project.Status = Entities.Status.Opportunity,Entities.Step.Active,Entities.Step.Next)

My goal is that I can check for each project status and if we are on opportunity that wizard shows as active and all others show as Next.

If my phase is Concept Design my Opportunity Wizard needs to be past and my concept design needs to be active.  All other phases need to be next.

And this continues....

So what would be the best way to do this?  Seems awfully messy to try to build this with if statements and I am not even sure it is possible.

Hi Ivan,

What about in status entity to include an order field? on first step you need to check if the order you are on is one to be active or more to be past. on second step you just need to add the check if the current order is less to be next. and so on to the next steps.