Assign step in Wizard back event

StatusIDPriorityType
Closed34411BlockerQuestion
ProfileReply
YassineClient

Hello,

I want to change the step to display in back event like it is possible in CustomNextStep event (with e.NextStep)
----------
var controller = XafariModule.CreateWizardDialogController(Application);
controller.Actions["WizardBack"].Executed += Fondamental_BackStep_Executed;

private void Fondamental_BackStep_Executed(object sender, ActionBaseEventArgs e)
{
var controller = (WizardDialogController)(((ActionBase)sender).Controller);
IModelWizardStep step = controller.CurrentStep; //only get property but I want to change the step to display
}

Thanks,
Yassine

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello Yassine!

You can set the CurrentStep property using XafariHelperBase.

public class WizardConrollerHelper : XafariHelperBase<WizardDialogController>
{
public WizardConrollerHelper(WizardDialogController instance) : base(instance)
{
}
public void SetCurrentStep()
{
this.SetPropertyValue("CurrentStep", this.Instance.Model[0]);
}
}
private void Fondamental_BackStep_Executed(object sender, ActionBaseEventArgs e)
{
var controller = (WizardDialogController)(((ActionBase)sender).Controller);
var helper = new WizardConrollerHelper(controller);
helper.SetCurrentStep();
}

Regards,
Mariya
On behalf of Xafari Client Services Team

YassineClient

Hi Mariya,
Thanks it works

Yassine

× This ticket is closed.

Write US