eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
220 stars 114 forks source link

Import Wizard - XAF Win and XAF BLAZOR Net Core 6 #950

Closed AndresVanegasC closed 6 months ago

AndresVanegasC commented 2 years ago

Hi!

I am trying to implement the windows importer in XAF Blazor but I ran into 2 difficulties.

  1. I get an error when importing
  2. How can I do it in Blazor?

I initially wrote to XAF support but they sent me here, could you please validate the ticket I issued.

This ticket is in the name of Jose Russi.

https://supportcenter.devexpress.com/ticket/details/t1115160/blazor-import-and-export-excel

image

image

Error in debug.

ERROR:

Object reference not set to an instance of an object.

at DevExpress.ExpressApp.Localization.XafResourceReader.FillLocalizationDictionary(String aspect, IModelLocalizationGroup localizationGroupNode, Hashtable resultDictionary) at DevExpress.ExpressApp.Localization.XafResourceReader.GetEnumerator() at System.Resources.ResourceSet.ReadResources() at System.Resources.ResourceSetโ€ฆctor(IResourceReader reader) at DevExpress.ExpressApp.Localization.XafResourceManager.GetResourceSetCore(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at DevExpress.ExpressApp.Localization.XafResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet) at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet) at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet) at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture) at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName) at Xpand.ExpressApp.ImportWizard.Win.Wizard.ExcelImportWizard.InitializeComponent() in D:\a\1\s\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Wizard\ExcelImportWizard.designer.cs:line 117 at Xpand.ExpressApp.ImportWizard.Win.Wizard.ExcelImportWizardโ€ฆctor(XPObjectSpace objectSpace, ITypeInfo typeInfo, ExcelImportWizardStringToPropertyMap propertyValueMapper) in D:\a\1\s\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Wizard\ExcelImportWizard.cs:line 59 at Xpand.ExpressApp.ImportWizard.Win.Controllers.ImportWizViewController.ShowWizard(IObjectSpace objectSpace) in D:\a\1\s\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Controllers\ImportWizViewController.cs:line 18 at Xpand.ExpressApp.ImportWizard.Controllers.ImportWizViewControllerBase.ImportAction_Execute(Object sender, SimpleActionExecuteEventArgs e) at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

Thanks!!

apobekiaris commented 2 years ago

There is no Blazor equivalent, however there is an ExcelImporter.Win package that may work better

AndresVanegasC commented 2 years ago

Hi!

Thank you for your prompt response, we have correctly implemented in WIN what you suggest "ExcelImporter"; but we tried to run in XAFBlazor and encountered the following error when clicking on new.

image

image

What can we do there, or are we missing something?

Sample project attached. TestImportWizard.zip

attached bug ErrorXafBlazor.txt

here you can download the 2 files, if the previous ones are not functional.

https://drive.google.com/drive/folders/10uxX7J69m_GPGMoQDGgjJZXwJxjMPvim?usp=sharing

Thanks!!

AndresVanegasC commented 2 years ago

Hello!

Do you have any comments or is there somewhere a step by step or example where I can see how to correctly implement the "ExcelImporter" for Xaf Blazor?

either

Is there nothing we can do to implement it for Xaf Blazor?

Thank you, I am very attentive.

apobekiaris commented 2 years ago

there is no Blazor counterpart

Find-XpandPackage *Excel*

Id                      Version    Source
--                      -------    ------
eXpandExcelImporter.Web 22.1.401.0 Release
eXpandExcelImporter     22.1.401.0 Release
eXpandExcelImporter.Win 22.1.401.0 Release

ti implement it your self you have to look whats on the Win,Web sides and do the same with Blazor.

quangbkl commented 1 year ago

Hi!

Thank you for your prompt response, we have correctly implemented in WIN what you suggest "ExcelImporter"; but we tried to run in XAFBlazor and encountered the following error when clicking on new.

image

image

What can we do there, or are we missing something?

Sample project attached. TestImportWizard.zip

attached bug ErrorXafBlazor.txt

here you can download the 2 files, if the previous ones are not functional.

https://drive.google.com/drive/folders/10uxX7J69m_GPGMoQDGgjJZXwJxjMPvim?usp=sharing

Thanks!!

I also had the same problem as you. Have you solved it yet?

DannyRawlings commented 11 months ago

The issue with running in blazor relates to the progressbarviewitem. Since no Progress exists within Devexpress Blazor, it will not run.

expand commented 6 months ago

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.