WizardAction not able create steps automatically

StatusIDPriorityType
Closed27679CriticalQuestion
ProfileReply
Tin-KaiClient

Dear support team,

I tried to test the WizardAction and built a solution from scratch as described on
https://documentation.galaktika-soft.com/xafari/doc_wizards_getting_started

Unfortunately the solution is not able to run, opening the file

Model.DesignedDiffs.xafml

produces an error message like below. I think the system is not able to create the wizard steps automatically in model.

Can you please help me?

Thanks a lot!

Kai

IModelWizard.ModelClass is null
at Xafari.Model.NodeGenerators.WizardsNodesGenerator.GenerateNodesCore(ModelNode node)
at DevExpress.ExpressApp.Model.ModelNodesGeneratorBase.GenerateNodes(ModelNode node)
at DevExpress.ExpressApp.Model.Core.ModelNode.RunNodesGenerator(ModelNodesGeneratorBase generator)
at DevExpress.ExpressApp.Model.Core.ModelNode.RunNodesGenerator()
at DevExpress.ExpressApp.Model.Core.ModelNode.EnsureNodes(Boolean alwaysCreate)
at DevExpress.ExpressApp.Model.Core.ModelNode.GetSortedNodes(Boolean inThisLayer)
at DevExpress.ExpressApp.Model.Core.ModelNodeList`1.GetEnumerator()
at Xafari.Model.NodeGenerators.WizardViewsNodeUpdater.UpdateNode(ModelNode node)
at DevExpress.ExpressApp.Model.ModelNodesGeneratorBase.RunUpdaters(ModelNode node, Boolean enableModelCache)
at DevExpress.ExpressApp.Model.ModelNodesGeneratorBase.GenerateNodes(ModelNode node)
at DevExpress.ExpressApp.Model.Core.ModelNode.RunNodesGenerator(ModelNodesGeneratorBase generator)
at DevExpress.ExpressApp.Model.Core.ModelNode.RunNodesGenerator()
at DevExpress.ExpressApp.Model.Core.ModelNode.EnsureNodes(Boolean alwaysCreate)
at DevExpress.ExpressApp.Model.Core.ModelNode.CreateMasterNodesCore()
at DevExpress.ExpressApp.Model.Core.ModelNode.CreateMasterNodes()
at DevExpress.ExpressApp.Model.Core.ModelNode.EnsureNodes(Boolean alwaysCreate)
at DevExpress.ExpressApp.Model.Core.ModelNode.GetUnsortedChildren(Boolean inThisLayer)
at DevExpress.ExpressApp.Model.Core.ModelNode.GetUnsortedChildren(Boolean inThisLayer)
at DevExpress.ExpressApp.Model.Core.ModelNodeInfo.GetChildNodes(ModelNode modelNode)
at DevExpress.ExpressApp.Model.ModelEditorHelper.GetChildNodes(ModelNode modelNode)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ModelInterfaceAdapter.GetChildrenCore(Object nodeObject)
at DevExpress.ExpressApp.Win.Core.ModelEditor.ExtendModelInterfaceAdapter.HasChildren(Object nodeObject)

Attached files:

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Client

Hello Tin-Kai,

Thanks for the additional information. We are working on your issue and will get back to you as soon as we can.

Best regards,
Sasha.

Sasha (Xafari Support)Client

Hi Tin-Kai,

Accidentally you forgot to indicate a property ObjectType for a WizardAction:

Private Sub InitializeComponent()
...
'
'WizardAction1
'
Me.WizardAction1.AcceptButtonCaption = Nothing
Me.WizardAction1.CancelButtonCaption = Nothing
Me.WizardAction1.Caption = "Template Wizard"
Me.WizardAction1.Category = "RecordEdit"
Me.WizardAction1.ConfirmationMessage = Nothing
Me.WizardAction1.Id = "Wizard1"
Me.WizardAction1.ImageName = "XafariLogo"
Me.WizardAction1.IsSizeable = False
Me.WizardAction1.ObjectType = GetType(XafariWizardTest.[Module].ORMDataModel1.MainObj)
Me.WizardAction1.TargetObjectType = GetType(XafariWizardTest.[Module].ORMDataModel1.MainObj)
Me.WizardAction1.TemplateContext = "Wizard"
Me.WizardAction1.ToolTip = Nothing
...
End Sub

This property is required for use the Wizards.
ObjectType refers to the class that is used in the Wizard.

Let us know if you need further assistance.
Thanks, Sasha.

Tin-Kai

Perfect, thanks a lot, dear Sasha!!

× This ticket is closed.

Write US