Try to use branches

StatusIDPriorityType
Closed32408CriticalQuestion
Profile Reply
Wolfram Client

I'm not able to make out what might be the problem.
Even the sample you provide is not working.
when I try to open the branches I get this Error:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Xafari.Controllers.ListViewCriteriaObjectCreatingController.NewController_Deactivated(Object sender, EventArgs e)
bei DevExpress.ExpressApp.Controller.OnDeactivated()
bei DevExpress.ExpressApp.ViewController.OnDeactivated()
bei DevExpress.ExpressApp.Controller.activeList_ResultValueChanged(Object sender, BoolValueChangedEventArgs e)
bei DevExpress.ExpressApp.Utils.BoolList.OnResultValueChanged(Boolean oldResultValue, Boolean resultValue)
bei DevExpress.ExpressApp.Utils.BoolList.EndUpdate()
bei DevExpress.ExpressApp.Utils.BoolList.set_Item(String key, Boolean value)
bei DevExpress.ExpressApp.Frame.c__DisplayClass4.b__1()
bei DevExpress.Persistent.Base.SafeExecutor.Execute(Method method, Object targetObject, String targetObjectIdentifier)
bei DevExpress.ExpressApp.Frame.Dispose()
bei DevExpress.ExpressApp.Win.WinShowViewStrategyBase.CreateWindow(ShowViewParameters parameters, ShowViewSource showViewSource, Boolean isMain)
bei DevExpress.ExpressApp.Win.WinShowViewStrategyBase.CreateInspectorWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.CreateInspectorWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInInspector(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInNewWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInCurrentWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.ShowViewStrategyBase.ShowViewCore(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewCore(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.ShowViewStrategyBase.ShowView(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Frame.ProcessActionCreatedView(ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Win.WinWindow.ProcessActionCreatedView(ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Frame.ShowViewAction_ProcessCreatedView(Object sender, ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Actions.ActionBase.OnProcessCreatedView(ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

Attached files:

Replies

User Description Posted On
MariyaVoytovich Agent

Hello Wolfram!

This issue was registered in the ticket Xafari on existing project.
We fixed it in the version 17.2.5011.1402 of Xafari.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

So it will not be fixed in 17.2.3 ?
That means I Need to update my Customers to new DevExpress Version?

MariyaVoytovich Agent

Yes. It will not fixed in 17.2.3 and you need update your project.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

The same Error still remains. I changed the CreateDefaultObjectSpaceProvider method and updated to the new Version. It doesn't have any effect.

MariyaVoytovich Agent

Hello Wolfram!

Do you have the same error or a new one?

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

The Same

Wolfram Client

even if i try to open the BranchesSettingsObject_DetailView i get the following Error:
So there is no possibility to initialize the Branches.

System.InvalidOperationException: Exception occurs while assigning the 'DetailView, ID:BranchesSettingsObject_DetailView' view to WinWindow:
Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.InvalidOperationException: The Model property of current object is not initialized.
bei Xafari.BC.Xas.Services.ServiceCfgObject.GetPropertyValue(String propertyName)
bei Xafari.BC.Xas.Services.ServiceCfgObject.GetPropertyValue[T](String propertyName)
bei Xafari.BC.Branches.Cfg.BranchesSettingsObject.get_EnabledTypes()
bei Xafari.BC.Branches.Cfg.BranchesSettingsObject.get_SupportedTypes()
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
bei System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
bei DevExpress.ExpressApp.DC.BaseTypeInfoSource.GetValue(IMemberInfo memberInfo, Object obj)
bei DevExpress.ExpressApp.DC.ReflectionTypeInfoSource.GetValue(IMemberInfo memberInfo, Object obj)
bei DevExpress.ExpressApp.DC.XafMemberInfo.GetValue(Object obj)
bei DevExpress.ExpressApp.PropertyCollectionSource.CreateCollection()
bei DevExpress.ExpressApp.CollectionSourceBase.ResetCollection()
bei DevExpress.ExpressApp.ListView.RefreshEditorDataSource()
bei DevExpress.ExpressApp.ListView.set_Editor(ListEditor value)
bei DevExpress.ExpressApp.ListView.LoadModelCore()
bei DevExpress.ExpressApp.View.LoadModel()
bei DevExpress.ExpressApp.View.SetModel(IModelView model)
bei DevExpress.ExpressApp.XafApplication.CreateListView(String listViewId, IModelListView modelListView, CollectionSourceBase collectionSource, Boolean isRoot, ListEditor listEditor)
bei DevExpress.ExpressApp.XafApplication.CreateListView(IModelListView modelListView, CollectionSourceBase collectionSource, Boolean isRoot, ListEditor listEditor)
bei DevExpress.ExpressApp.XafApplication.CreateListView(IModelListView modelListView, CollectionSourceBase collectionSource, Boolean isRoot)
bei Xafari.Editors.XafariListPropertyEditor.CreateListView()
bei DevExpress.ExpressApp.Editors.ListPropertyEditor.InitializeFrame()
bei DevExpress.ExpressApp.Editors.ListPropertyEditor.CreateControlCore()
bei DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
bei DevExpress.ExpressApp.Win.Layout.WinLayoutManager.GetControl(ViewItem viewItem, String name, Boolean forceControlCreation)
bei DevExpress.ExpressApp.Win.Layout.WinLayoutManager.controlItem_QueryControl(Object sender, QueryControlEventArgs e)
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseQueryControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
bei DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
bei DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
bei DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
bei DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
bei DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.set_ShouldUpdateConstraintsDoUpdate(Boolean value)
bei DevExpress.XtraLayout.LayoutControlItem.set_Control(Control value)
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
bei DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
bei DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
bei DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
bei DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
bei DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.set_ShouldUpdateConstraintsDoUpdate(Boolean value)
bei DevExpress.XtraLayout.LayoutControlItem.set_Control(Control value)
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
bei DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
bei DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
bei DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
bei DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
bei DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.set_ShouldUpdateConstraintsDoUpdate(Boolean value)
bei DevExpress.XtraLayout.LayoutControlItem.set_Control(Control value)
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
bei DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
bei DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
bei DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
bei DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
bei DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.set_ShouldUpdateConstraintsDoUpdate(Boolean value)
bei DevExpress.XtraLayout.LayoutControlItem.set_Control(Control value)
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
bei DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
bei DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
bei DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
bei DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
bei DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.set_ShouldUpdateConstraintsDoUpdate(Boolean value)
bei DevExpress.XtraLayout.LayoutControlItem.set_Control(Control value)
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
bei DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseShowHide(Boolean visible)
bei DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
bei DevExpress.XtraLayout.BaseLayoutItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlItem.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
bei DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
bei DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
bei DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
bei DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
bei DevExpress.XtraLayout.LayoutControl.DevExpress.XtraLayout.ILayoutControl.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.Invalidate()
bei DevExpress.XtraLayout.LayoutGroup.Invalidate()
bei DevExpress.XtraLayout.BaseLayoutItem.ComplexUpdate(Boolean shouldUpdateViewInfo, Boolean shouldResize, Boolean shouldArrangeTextSize)
bei DevExpress.XtraLayout.LayoutItemContainer.EndUpdate()
bei DevExpress.XtraLayout.LayoutItemContainer.EndChangeUpdate()
bei DevExpress.XtraLayout.LayoutDesignerMethodsProvider.DevExpress.XtraLayout.ILayoutDesignerMethods.EndChangeUpdate()
bei DevExpress.XtraLayout.LayoutControlImplementor.ProcessLookAndFeelStyleChanged()
bei DevExpress.XtraLayout.LayoutControlImplementor.OnLookAndFeelStyleChanged(Object sender, EventArgs e)
bei DevExpress.XtraLayout.LayoutControlImplementor.EndInitCore()
bei DevExpress.XtraLayout.LayoutControlImplementor.set_UpdatedCount(Int32 value)
bei DevExpress.XtraLayout.LayoutControlImplementor.EndInit()
bei DevExpress.XtraLayout.LayoutControl.EndInit()
bei DevExpress.ExpressApp.Win.Layout.WinLayoutManager.LayoutControls(IModelNode layoutNode, ViewItemsCollection viewItems)
bei DevExpress.ExpressApp.CompositeView.CreateControlsCore()
bei DevExpress.ExpressApp.View.CreateControls()
bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.EnsureViewControl()
bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.FillViewSite()
bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.OnViewChanged()
bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.SetView(View view)
bei DevExpress.ExpressApp.Win.Templates.Ribbon.DetailRibbonFormV2.DevExpress.ExpressApp.Templates.IFrameTemplate.SetView(View view)
bei DevExpress.ExpressApp.Frame.SetTemplateView(View view)
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.WinShowViewStrategyBase.CreateWindow(ShowViewParameters parameters, ShowViewSource showViewSource, Boolean isMain)
bei DevExpress.ExpressApp.Win.WinShowViewStrategyBase.CreateInspectorWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.CreateInspectorWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInInspector(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInNewWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewFromCommonView(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.ShowViewStrategyBase.ShowViewCore(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewCore(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.ShowViewStrategyBase.ShowView(ShowViewParameters parameters, ShowViewSource showViewSource)
bei DevExpress.ExpressApp.Frame.ProcessActionCreatedView(ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Win.WinWindow.ProcessActionCreatedView(ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Frame.ShowViewAction_ProcessCreatedView(Object sender, ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Actions.ActionBase.OnProcessCreatedView(ActionBaseEventArgs e)
bei DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

MariyaVoytovich Agent

Hello Wolfram!

How did you get this error?
Can you give me a small demo project or video, reproducing the problem?

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

It did not show the Dashboard Branch. (i don't know why). So i tryed to implement the BranchesSettingsObject_DetailView. Using the New-Button, i got that Error.

Attached files:
MariyaVoytovich Agent

Hello Wolfram!

I see what you use NavBar style for NavigationItem.
so you see only the Dashboard Branch.
If you change Value NavigationStyle to TreeList then you see Branches group: Branch settings and Branches

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

Thank you. There is no Error anymore. Good Job!. Either the Settings and List are working
But I think it's something wrong with the Dashboard.
You find a picture as Attachment. Its the Same Projekt like yesterday.. only the setting Navigationstyle is changed.

Attached files:
MariyaVoytovich Agent

No, the Dashboad is all right. It should be.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

this Error is coming when creating a new Branch Security System User. I think there is no good description to implement the Branches.

System.InvalidOperationException: Xafari.BC.Branches.Xpo.BranchSecuritySystemUser.AvailableBranches ist kein eigene Datensammlung. Es sollte mit AssociationAttribute gekennzeichnet werden und vom Nachkomme Typ XPBaseCollection sein. Wahrscheinlich verwenden Sie GetCollection in der Situation, wo GetList verwendet werden sollten.
bei DevExpress.Xpo.XPBaseCollection..ctor(Session session, Object theOwner, XPMemberInfo refProperty)
bei DevExpress.Xpo.XPCollection`1..ctor(Session session, Object theOwner, XPMemberInfo refProperty)
bei DevExpress.Xpo.XPBaseObject.CreateCollection[T](XPMemberInfo property)
bei DevExpress.Xpo.XPBaseObject.GetCollection[T](String propertyName)
bei Xafari.BC.Branches.Xpo.BranchSecuritySystemUser.get_AvailableBranches()
bei lambda_method(Closure , Object )
bei DevExpress.Xpo.Metadata.ReflectionMemberInfo.DelegateFieldAccessor.GetValue(Object theObject)
bei DevExpress.Xpo.Metadata.ReflectionMemberInfo.GetValue(Object theObject)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.GetValue(IMemberInfo memberInfo, Object obj)
bei DevExpress.ExpressApp.DC.XafMemberInfo.GetValue(Object obj)
bei DevExpress.ExpressApp.Validation.ValidationTargetObjectSelector.FindAggregatedObjects(Object owner)
bei DevExpress.ExpressApp.Validation.ValidationTargetObjectSelector.GetObjectsToValidate(IObjectSpace objectSpace, Object currentObject)
bei DevExpress.ExpressApp.Validation.PersistenceValidationController.ObjectSpace_Committing(Object sender, CancelEventArgs e)
bei System.EventHandler`1.Invoke(Object sender, TEventArgs e)
bei DevExpress.ExpressApp.BaseObjectSpace.OnCommitting(CancelEventArgs args)
bei DevExpress.ExpressApp.BaseObjectSpace.CommitChanges()
bei DevExpress.ExpressApp.Win.SystemModule.WinModificationsController.SaveAndClose(SimpleActionExecuteEventArgs args)
bei DevExpress.ExpressApp.SystemModule.ModificationsController.saveAndCloseAction_OnExecute(Object sender, SimpleActionExecuteEventArgs e)
bei DevExpress.ExpressApp.Actions.SimpleAction.RaiseExecute(ActionBaseEventArgs eventArgs)
bei DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

Wolfram Client

Or do i have to create another User to connect an User to a branch?

MariyaVoytovich Agent

Hello Wolfram!

Unfortunately, Xafari.BC.Branches.Xpo.BranchSecuritySystemUser is obsolete, and we have not yet updated the documentation.

You need create your own class.
This class must support interface IUserBranches.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

Hi Maria,

at least we need a sample.
So a reference „make you’re own class“ is for sure not enough.

thank you
Wolfram

Wolfram Client

We are using for our users the standard BaseImpl.User from Devexpress.
So do we Need to create inherited class from User and than implement IUserBranches?

MariyaVoytovich Agent

Hello Wolfram!

This is the sample that creates the Branch user for Xpo.
Use this description to create your own user, change PermissionPolicyUser to BaseImpl.User

[MapInheritance(MapInheritanceType.ParentTable)]
public class BranchUser : PermissionPolicyUser, IUserBranches
{
public BranchUser(Session session)
: base(session)
{
}[Association("User-BranchItems")]
[Aggregated]
public XPCollection BranchItems
{
get
{
return GetCollection("BranchItems");
}
}

[Browsable(false)]
public IList AvailableBranches
{
get { return BranchItems.ToList(); }
set { }
}
}

public class UserBranchItem1 : BaseObject, IUserBranchItem
{
public UserBranchItem1(Session session) : base(session) { }

private Branch _branch;

public Branch Branch
{
get { return _branch; }
set { SetPropertyValue("Branch", ref _branch, value); }
}

private BranchPermissions _permission;

public BranchPermissions Permission
{
get { return _permission; }
set { SetPropertyValue("Permission", ref _permission, value); }
}

private BranchUser _user;
[Association("User-BranchItems")]
public BranchUser User
{
get { return _user; }
set { SetPropertyValue("User", ref _user, value); }
}
}

Feel free to contact us if you need further assistance or have additional questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

This is the code we implemented:

//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using System.Collections.Generic;
using System.ComponentModel;
using Xafari.BC.Branches;
using System.Collections;
using Xafari.Utils;
using DevExpress.Persistent.BaseImpl;

namespace Siegelportal.Module.BusinessObjects.Siegelportal
{
[MapInheritance(MapInheritanceType.ParentTable)]
public partial class BranchUser : DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser, IUserBranches
{
[Aggregated]
[Association("User-BranchItems")]
public XPCollection BranchItems
{
get
{
return GetCollection("BranchItems");
}
}

[Browsable(false)]
IList IUserBranches.AvailableBranches
{
get
{
return (IList)BranchItems;
}
}
}

public class UserBranchItem1 : BaseObject, IUserBranchItem
{
public UserBranchItem1(Session session) : base(session) { }

private Branch _branch;

public Branch Branch
{
get { return _branch; }
set { SetPropertyValue("Branch", ref _branch, value); }
}

private BranchPermissions _permission;

public BranchPermissions Permission
{
get { return _permission; }
set { SetPropertyValue("Permission", ref _permission, value); }
}

private BranchUser _user;
[Association("User-BranchItems")]
public BranchUser User
{
get { return _user; }
set { SetPropertyValue("User", ref _user, value); }
}
}
}

we get the following error:

Die Eigenschaft 'BranchItems' spezifiziert nicht die 'ElementType'-Eigenschaft innerhalb des 'Association'-Attributs.

bei DevExpress.Xpo.Metadata.XPMemberInfo.get_CollectionElementType()
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.InitXPClassMemberInfo(Object memberSource, XafMemberInfo member)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.InitMemberInfo(ITypeInfo owner, XafMemberInfo member, Object memberSource)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.InitMemberInfo(Object memberSource, XafMemberInfo member)
bei DevExpress.ExpressApp.DC.TypeInfo.b__1(Object member, String memberName)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.EnumXPClassMembers(TypeInfo info, EnumMembersHandler handler)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.EnumMembers(TypeInfo info, EnumMembersHandler handler)
bei DevExpress.ExpressApp.DC.TypeInfo.InitializeOwnMembers()
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.RegisterEntity(Type type)
bei DevExpress.ExpressApp.DC.TypesInfo.RegisterEntity(Type entityType)
bei DevExpress.ExpressApp.ApplicationModulesManager.LoadTypesInfo(IList`1 modules, ITypesInfo typesInfo)
bei DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo)
bei DevExpress.ExpressApp.XafApplication.Setup(String applicationName, IList`1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security)
bei DevExpress.ExpressApp.XafApplication.Setup()
bei Siegelportal.Win.Program.Main() in C:\wsb\Kunden\Trautwein\Siegelportal\Siegelportal.Win\Program.cs:Zeile 49.

Wolfram Client

This is the code we implemented:

//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using System.Collections.Generic;
using System.ComponentModel;
using Xafari.BC.Branches;
using System.Collections;
using Xafari.Utils;
using DevExpress.Persistent.BaseImpl;

namespace Siegelportal.Module.BusinessObjects.Siegelportal
{
[MapInheritance(MapInheritanceType.ParentTable)]
public partial class BranchUser : DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser, IUserBranches
{
[Aggregated]
[Association("User-BranchItems")]
public XPCollection BranchItems
{
get
{
return GetCollection("BranchItems");
}
}

[Browsable(false)]
IList IUserBranches.AvailableBranches
{
get
{
return (IList)BranchItems;
}
}
}

public class UserBranchItem1 : BaseObject, IUserBranchItem
{
public UserBranchItem1(Session session) : base(session) { }

private Branch _branch;

public Branch Branch
{
get { return _branch; }
set { SetPropertyValue("Branch", ref _branch, value); }
}

private BranchPermissions _permission;

public BranchPermissions Permission
{
get { return _permission; }
set { SetPropertyValue("Permission", ref _permission, value); }
}

private BranchUser _user;
[Association("User-BranchItems")]
public BranchUser User
{
get { return _user; }
set { SetPropertyValue("User", ref _user, value); }
}
}
}

we get the following error:

Die Eigenschaft 'BranchItems' spezifiziert nicht die 'ElementType'-Eigenschaft innerhalb des 'Association'-Attributs.

bei DevExpress.Xpo.Metadata.XPMemberInfo.get_CollectionElementType()
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.InitXPClassMemberInfo(Object memberSource, XafMemberInfo member)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.InitMemberInfo(ITypeInfo owner, XafMemberInfo member, Object memberSource)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.InitMemberInfo(Object memberSource, XafMemberInfo member)
bei DevExpress.ExpressApp.DC.TypeInfo.b__1(Object member, String memberName)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.EnumXPClassMembers(TypeInfo info, EnumMembersHandler handler)
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.EnumMembers(TypeInfo info, EnumMembersHandler handler)
bei DevExpress.ExpressApp.DC.TypeInfo.InitializeOwnMembers()
bei DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.RegisterEntity(Type type)
bei DevExpress.ExpressApp.DC.TypesInfo.RegisterEntity(Type entityType)
bei DevExpress.ExpressApp.ApplicationModulesManager.LoadTypesInfo(IList`1 modules, ITypesInfo typesInfo)
bei DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo)
bei DevExpress.ExpressApp.XafApplication.Setup(String applicationName, IList`1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security)
bei DevExpress.ExpressApp.XafApplication.Setup()
bei Siegelportal.Win.Program.Main() in C:\wsb\Kunden\Trautwein\Siegelportal\Siegelportal.Win\Program.cs:Zeile 49.

MariyaVoytovich Agent

Hello Wolfram!

We do not have ideas why this error can occur on your machine either.

Can you give us your modified project?

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

Here's my modified project

Attached files:
MariyaVoytovich Agent

Sorry, our markup has removed some of the code that we cited above.
The correct code is in the attached file.

Regards,
Mariya
On behalf of Xafari Client Services Team

Attached files:
Wolfram Client

now i can open it and i think everything is opened.
But i've no idea how to use it. I can connect an User to a branch. But for example i don't know how to use the branch setting objects. i don't know enough about my possibilities with the branches.
I think i need much more help. There is no Documentation. Otherwise i can't use it.
thank you!

Wolfram

Wolfram Client

Maybe this is importend:
There is no content in the table at the "setting objects". Why? In the attachment i'll send you a picture of the Setting objects and the modified project.
Maybe there is something wrong with my settings or code for the BranchSupport?
How can i bind Data to a branch? So that only the branch, who composed the data , read the data? It should be all the same dataset.

Wolfram Client

Maybe this is importend:
There is no content in the table at the "setting objects". Why? In the attachment i'll send you a picture of the Setting objects and the modified project.
Maybe there is something wrong with my settings or code for the BranchSupport?
How can i bind Data to a branch? So that only the branch, who composed the data , read the data? It should be all the same dataset.

MariyaVoytovich Agent

Hello Wolfram!

Branch settings item activate Detail View with the list of types that support Branches, i.e. these types implements IBranchSupport interface, see Getting Started.
If you use Branch for Xpo, you can use Xafari.BC.Branches.Xpo.XafariBaseObjectWithBranches for business class.

Please, read documentation:
Branches in Application
Configuring

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

now the settings are shown. But instead of your dokumentation i know how it works. I can't enable a branch for service.. after saving it remove "yes" to "No".
Is there any possibility to get some help and discription via TeamViewer? It have to work soon and its very importent for us. Of course wa are willed to pay for your help.

MariyaVoytovich Agent

Yes it is possible.
But first you need to consult with our marketing specialist.
I forwarded your request to him, he will soon contact you.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

Hello Mariya,

I have to ask once more. We need help for our problems soon. When will we get help from your Marketing specialist.

Thanks.

Wolfram

MariyaVoytovich Agent

Hello!

Unfortunately Marketing specialist can not contact You at this moment.
I can offer you to send us your project with your questions and we will answer.

Also I can say that I ran your last application on a clean database and Branches Settings Detail View worked well.
(if I correctly understood you reset the settings o Branches Settings Detail View (See attached file))
Also I can recommend delete all modules for DC if you use Xpo in your projects.

Regards,
Mariya
On behalf of Xafari Client Services Team

Attached files:
Wolfram Client

Hi Mariya
we followed your advice and removed the DC components and so the dll's. We see as mentioned the types but we are not able to handle them
Even by seeing the doc it's not clear. We would like to see it in the demo you have given but as well we get error here.
Attacht, you can see the current status. We need some more help. A sample App we would appreciate . Please be patient and bear with us.

Attached files:
MariyaVoytovich Agent

Hello Wolfram!

Object that supports branches will be automatically attached to Branches when creating.
For this, the following conditions must be satisfied:
1. Branches service is Enable
2. object type must inherit IBranchSupport interface
3. The branch for the object type is activated

Object attached to current Branch(This is the branch under which the user authorized)

Feel free to contact us if you need further assistance or have additional questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

We did as you advised the result: It's not working. I attacht the project. Is there a chance to get it working back?
Till now nothing worked?
Do you have a working application? I repeat, even you'r samples are not working!

Attached files:
Wolfram Client

Is there any possibility to get some response?

MariyaVoytovich Agent

Hello Wolfram!

I apologize for the delayed response.

I looked at your project. In our labs branches work fine in your project (See Attached files).

Also we have BCDEmo demo sample, that support Branches.
To see Branches in action, refer to the Xafari.BCDemo demo, instaled with Xafari.

Demo sample is developed based on the use of a separate administration tool - Xafari Applications Support (XAS).
All setting Branches in the demo are performed in Xafari Applications Support (XAS).

You can open XAS in BCDemo performed next steps:
1. Open Demo.
2. In menu choose Tools / Edit Configuration

Regards,
Mariya
On behalf of Xafari Client Services Team

Attached files:
Wolfram Client

Hello Mariya,

can't open the demo:

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__DisplayClass2.b__1(ModelNode afterSetupLayer, ModelApplicationBase applicationModel)
bei Xafari.Helpers.ModelNodeHelper.OperateLayer(ModelApplicationBase target, Action`2 action)
bei Xafari.BC.Services.ServicesModelService.c__DisplayClass2.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 Xafari.BC.Services.ServiceSpacesManager.OnServiceSpaceCreated(ServiceSpaceCreatedEventArgs e)
bei Xafari.BC.Services.ServiceSpacesManager.c__DisplayClass1.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__DisplayClass9.b__8(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()

MariyaVoytovich Agent

Hello Wolfram!

Open the Model Editor of your module project.
In aspects, add the aspect of ru-Ru (language).

Please send us a simple demonstration project, reproducing the problem, if the recommendations do not help.

Regards,
Mariya
On behalf of Xafari Client Services Team

Wolfram Client

now it works.
Thank you!

Wolfram

× This ticket is closed.

Write US