-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing a dashboard a second time results in an exception #406
Comments
Thnks fix is provide in #363 and patch is building |
I guess that you already patched the sources with my previous suggestion which was a bad one. I tested this one and works for both cases private static void AddNewDataSources(IDashboardDefinition dashboardDefinition, DevExpress.DashboardCommon.Dashboard dashboard){
var dashboardTypesCount = dashboardDefinition.DashboardTypes.Count;
if (dashboardTypesCount > 1) {
throw new UserFriendlyException($"{dashboardDefinition.Name} contains {dashboardTypesCount} dashboard types. Only one dashboard type is supported.");
}
var wrapper = dashboardDefinition.DashboardTypes.First();
var dataSource = new DashboardObjectDataSource{
DataSourceType = wrapper.Type,
Name = nameof(DashboardObjectDataSource),
ComponentName = nameof(DashboardObjectDataSource)
};
if (!dashboard.DataSources.Any()) {
dashboard.DataSources.Add(dataSource);
}
} |
eXpand.lab release 19.1.301.1 includes commit Editing a dashboard a second time results in an exception #406 that relate to this task. Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS. Thanks a lot for your contribution. |
and with this restriciton, how it's possible to use multiple datasources with federal datasource in Dashboard ? |
can u provide me an example of how do u want to use multiple datasources? |
With #363 and #406 i must select an type and can only select one type |
i will fix this problem
is this supported in the XAF native module? |
hmm my apologies then i was under the wrong consumption, I will revert those changes asap. |
thanks a lot |
eXpand.lab release 19.1.302.4 includes commit Revert "Dashboard: DisableMultiDashboardTypeController #406 #363" 0f1841fb1bbc4de50b06553f362e6bd58f0af31e.,Revert "XtraDashboard: DashoardName is not localized #406 #363" commit 8a13613a949b63657bf3345894bdfa76b6dae339.,[Revert "Force only one DashboardObjectDataSource #363" #406 This reverts commit f653e4d.](eXpandFramework/eXpand.lab@79253eb) that relate to this task. Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS. Thanks a lot for your contribution. |
With your fix it is still not possible to select multiple types and when trying to open an existing dashboard with multiple types in Editor the following error occurs "External DashboardName contains x dashboard tpyes. Only one dashboard is supported" out from |
Sorry, using wrong Version Thanks for support |
Closing issue for age. Feel free to reopen it at any time. .Thank you for your contribution. |
if you create a Dashboard , edit using Dashboard designer, saves it, then open dashboard designer again , an duplicate element exception raises,
en DevExpress.DashboardCommon.Native.ObjectNameGenerator.CheckName(String name)
en DevExpress.DashboardCommon.Native.ObjectTypeNameGenerator.CheckName(String name)
en System.EventHandler
1.Invoke(Object sender, TEventArgs e) en DevExpress.DataAccess.NotifyingCollection
1.BeforeAddItem(T item)en DevExpress.DataAccess.NotifyingCollection
1.InsertItem(Int32 index, T item) en Xpand.ExpressApp.Dashboard.Services.Extensions.GetDashboard(IDashboardDefinition dashboardDefinition) en Xpand.ExpressApp.Dashboard.Services.Extensions.GetDashboard(IDashboardDefinition dashboardDefinition, XafApplication application, RuleMode ruleMode, IXpandDashboardDataSourceFillService dashboardDataSourceFillService, DataSourceOptionsContainer options, Action
1 editParameters, Action modeParametersEdited)en Xpand.ExpressApp.XtraDashboard.Win.Templates.DashboardDesignerForm.LoadTemplate(IDashboardDefinition dashboardDefinition, XafApplication application)
en Xpand.ExpressApp.XtraDashboard.Win.Controllers.DashboardDesignerController.DashboardEditExecute(Object sender, SimpleActionExecuteEventArgs e)
en DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)
InnerException is null
The text was updated successfully, but these errors were encountered: