Xpand Framework

StatusIDPriorityType
Closed32256BlockerQuestion
ProfileReply
WolframClient

When I try to use managed operations together wih Xpand framework I get this error:

-->
The operation is invalid because of the current state of the object

Der Vorgang ist aufgrund des aktuellen Zustands des Objekts ungültig.

bei Xpand.Persistent.Base.Xpo.Extensions.Register(ICustomFunctionOperator customFunctionOperator) in C:\Release172\Xpand\Xpand.Persistent\Xpand.Persistent.Base\Xpo\Extensions.cs:Zeile 34.
bei Xpand.ExpressApp.Security.XpandSecurityModule.CustomizeTypesInfo(ITypesInfo typesInfo) in C:\Release172\Xpand\Xpand.ExpressApp.Modules\Security\Module.cs:Zeile 135.
bei DevExpress.ExpressApp.ApplicationModulesManager.DoCustomizeTypesInfo(ITypesInfo typesInfo)

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello Wolfram!

Thanks for reporting the issue.
In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue. We do not have ideas why this error can occur on your machine either.
Could you please provide us with the following info?
1. A small demo project, reproducing the problem;
2. Detailed steps to reproduce the problem.
We want to help you and are looking forward to hearing from you.

Regards,
Mariya
On behalf of Xafari Client Services Team

WolframClient

Get the XpandFramework. Add The Xpand.ExpressApp and Xpand.XPO, Add Xafari than you will get this error.

MariyaVoytovichAgent

Hello Wolfram!

We have investigated the issue.

This error occurs because of a conflict between two custom functions for Criteria Operator.
In Xpand and Xafari, there is a custom function called "CurrentUserName".
We will try to fix this error in new versions.

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

MariyaVoytovichAgent

Hello Wolfram!

To fix the problem, you can add the code below in AppName.Module / Module.cs

public override void Setup(XafApplication application)
{
base.Setup(application);

Xpand.Xpo.Filtering.CriteriaOperatorExtensions.ThirdPartyCustomFunctionOperators.Add(new Xafari.Utils.CurrentUserNameOperator());
}

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US