diff --git a/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor b/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor index 43801cc0..3f775dd7 100644 --- a/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor +++ b/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor @@ -491,7 +491,7 @@ else
@@ -585,13 +585,13 @@ else diff --git a/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor.cs b/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor.cs index ea02910d..b0b48286 100644 --- a/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor.cs +++ b/src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor.cs @@ -8,7 +8,9 @@ using AXOpen.Base.Data; using AXOpen.Data.Interfaces; using AXOpen.Data; + using AXOpen.Data.Interfaces; + using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; using System.IO; @@ -16,14 +18,18 @@ using AXOpen.Base.Dialogs; using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage; using static AXOpen.Data.DataExchangeViewModel; + using AXOpen.Data; + using AXSharp.Connector; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Messaging; + using Microsoft.AspNetCore.Components.Forms; using AXOpen.Data.Interfaces; using AXOpen.Core; using AXOpen.Data; + using System.Data.Common; namespace AXOpen.Data; @@ -177,9 +183,27 @@ public async Task LoadCustomExportDataAsync() StateHasChanged(); } + protected void ReloadRecordAfterEditWithoutModal() + { + if (this.ModalDataView) return; // make a sense when is not modal window + + string identifier = Vm.SelectedRecord.DataEntityId; + + Vm.FillObservableRecordsAsync().GetAwaiter(); + + var rec = Vm.Records.Where(e => e.DataEntityId == identifier).First(); + + if (rec != null) + { + Vm.SelectedRecord = rec; + + this.StateHasChanged(); + } + } + public void Dispose() { - if(Vm.IsLockedByMeOrNull()) + if (Vm.IsLockedByMeOrNull()) Vm.DataExchange.SetLockedBy(null); } } \ No newline at end of file