How to configure branches in XafariBCDemo Win App

StatusIDPriorityType
Closed38609MajorQuestion
ProfileReply
BerndClient

Dear support,

I want to try out branches in your demo. Where can I configure branches? I tried to log in users from Administrator and BranchAdministrator groups.

I attached a screenshot with all navigation items that I can see.

Best regards
Bernd

Attached files:

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello Bernd!

To configure Branches use XAS. For this run BCDemo, on the toolbar choose Tools -> Edit Configuration

Then, Xafari Application Support will open.

For more details see Configuring

Regards,
Mariya
On behalf of Xafari Client Services Team

BerndClient

Even though I can run the BCDemo application, when I start the XAS tool either from within the application or by just starting the exe I get the following exception:

System.InvalidOperationException: Exception occurs while assigning the 'DetailView, ID:XafariAuthenticationLogonParameters_DetailView' view to WinWindow:
The 'sourceNode' must have either only default aspect or same set of aspects as this node.
Parametername: sourceNode ---> System.ArgumentException: The 'sourceNode' must have either only default aspect or same set of aspects as this node.
Parametername: sourceNode
bei DevExpress.ExpressApp.Model.Core.ModelNode.ApplyDiff(ModelNode sourceNode, Boolean isMerge)
bei Xafari.BC.Services.ServicesModelService.c__DisplayClass5_0.b__1(ModelNode afterSetupLayer, ModelApplicationBase applicationModel)
bei Xafari.Helpers.ModelNodeHelper.OperateLayer(ModelApplicationBase target, Action`2 action)
bei Xafari.BC.Services.ServicesModelService.c__DisplayClass5_0.b__0()
bei Xafari.BC.Services.XafariCommonService.LockAction(Action action)
bei Xafari.BC.Services.ServicesModelService.CreateServicesModelLayer(String id, Boolean isLoadFromStore)
bei Xafari.BC.Services.ServicesModelService.InitializeCore()
bei Xafari.BC.Services.XafariCommonService.Initialize()
bei Xafari.BC.Numerators.NumeratorManager.InitializeCore()
bei Xafari.BC.Services.XafariCommonService.Initialize()
bei Xafari.BC.Numerators.NumeratorManager.ServiceSpaceContext.InitializeCore()
bei Xafari.BC.Services.XafariServiceBase`1.ServiceSpaceContextBase.Initialize()
bei Xafari.BC.Services.XafariServiceBase`1.ServiceSpaceContextBase.Xafari.BC.Services.IServiceSpaceContext.Setup()
bei Xafari.BC.Services.ServiceSpace.RegisterService(IXafariService service)
bei Xafari.BC.Services.ServiceSpace.FindServiceContext(IXafariService service)
bei Xafari.BC.Services.XafariServiceBase`1.Instance_ServiceSpaceCreated(Object sender, ServiceSpaceCreatedEventArgs e)
bei System.EventHandler`1.Invoke(Object sender, TEventArgs e)
bei Xafari.BC.Services.ServiceSpacesManager.OnServiceSpaceCreated(ServiceSpaceCreatedEventArgs e)
bei Xafari.BC.Services.ServiceSpacesManager.c__DisplayClass9_0.b__0()
bei Xafari.BC.Services.XafariCommonService.LockFunc[T](Func`1 func)
bei Xafari.BC.Numerators.NumeratorsLogicController.OnViewControllerAssigned()
bei Xafari.BC.LogicControllers.LogicControllerBase.set_ViewController(LogicControllerViewController value)
bei Xafari.BC.LogicControllers.LogicControllerService.c__DisplayClass14_0.b__0(LogicControllerBase logicController)
bei System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
bei System.Linq.Buffer`1..ctor(IEnumerable`1 source)
bei System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
bei Xafari.BC.LogicControllers.LogicControllerViewController.OnViewChanged()
bei DevExpress.ExpressApp.ViewController.SetView(View newView)
bei DevExpress.ExpressApp.Frame.ActivateViewControllers()
bei DevExpress.ExpressApp.Frame.SetView(View view, Boolean updateControllers, Frame sourceFrame, Boolean disposeOldView)
--- Ende der internen Ausnahmestapel├╝berwachung ---
bei DevExpress.ExpressApp.Frame.SetView(View view, Boolean updateControllers, Frame sourceFrame, Boolean disposeOldView)
bei DevExpress.ExpressApp.Win.PopupWindowShowActionHelper.CreatePopupWindow(Boolean createAllControllers)
bei DevExpress.ExpressApp.Win.WinApplication.DoLogon()
bei DevExpress.ExpressApp.Win.WinApplication.Start()

Of course, I already added the german aspect to the model, this is why I can start the BCDemo Win app in the first place. So I wonder what model XAS is accessing here and which aspect is missing?

Attached files:
MariyaVoytovichAgent

Hello Bernd!

XAS uses a different model.
To fix the error, please copy the model files from the folder %PUBLIC%\Documents\Xafari Framework v19.2.4011 Demos\BCDemo\Win to the folder %PUBLIC%\Documents\Xafari Framework v19.2.4011 Demos\BCDemo\Win\XAS.

Regards,
Mariya
On behalf of Xafari Client Services Team

BerndClient

Hello Mariya,

thank you for the support. I did it as you explained and now the XAS application runs. I was also able to configure the branches and everything works as expected.

Regards
Bernd

× This ticket is closed.

Write US