Skip to content

SingleIterationApplicationTemplate

samatrhea edited this page Mar 22, 2024 · 6 revisions

This component handles the selection of an Iteration if there are many opened. If the user closes all opened Iteration while being inside an application, this component will automatically ask the user to open an Iteration.

All application that works with only one Iteration at the time should use that component. For example:

@inherits SingleIterationPageTemplate
<SingleIterationApplicationTemplate IterationId="@this.RequestedIteration">
    <Body>
        <ModelDashboardBody />
    </Body>
</SingleIterationApplicationTemplate>

The SingleIterationPageTemplate provides the RequestedIteration property and set the Authorize attribute

SingleIterationApplicationBase

The ModelDashboardBody components inherits from the SingleIterationApplicationBase component. This component gets an Iteration has CascadingParameter (the CascadingValue is provided by the SingleIterationApplicationTemplate) and also sets the correct URL based the current Iteration.

When inheriting this component, it is required to implement the InitializeValues. This method is used to set specific properties of the ViewModel based on the URL parameter (such as the selected Option, ...)

SingleIterationApplicationBaseViewModel

Base class for any ViewModel that is used inside the SingleIterationApplicationBase component.

This ViewModel already reacts to any change on the current Iteration (Selected inside the SingleIterationApplicationTemplate), on any change of the current DomainOfExpertise and also on any refresh of the session.

2 methods can be overridden:

  • OnIterationChanged : Called when the current Iteration has changed
  • OnDomainChanged : Called when the current DomainOfExpertise has changed

1 method should be implement:

  • OnSessionRefreshed : Called when the current ISession is refreshed