Hello, I'm overriding the page UserManagement
and I would like to add new columns to the table such as Address, City etc. to the IdentityUser
I thought I can use the property ExtraProperties
to add my custom properties but then I'm not sure how can I access my custom keys in TableColumn Data property?
This is what I have so far but it didn't work for me:
Error:
System.ArgumentException: Cannot detect the member of Volo.Abp.Data.ExtraPropertyDictionary (Parameter 'Address')
at Blazorise.DataGrid.Utils.FunctionCompiler.GetSafePropertyOrField(Expression item, String propertyOrFieldName)
at Blazorise.DataGrid.Utils.FunctionCompiler.GetSafePropertyOrField(Expression item, String propertyOrFieldName)
at Blazorise.DataGrid.Utils.FunctionCompiler.CreateValueGetter[IdentityUserDto](String fieldName)
at Blazorise.DataGrid.DataGridColumn`1[[Volo.Abp.Identity.IdentityUserDto, Volo.Abp.Identity.Pro.Application.Contracts, Version=8.0.3.0, Culture=neutral, PublicKeyToken=null]].<.ctor>b__10_2()
Adding extra properties by overriding the function GetEntitiesAsync
Is there something I'm doing wrong? I'm open for suggestions or other ways to achieve that
Note that my address, city etc. live in another table right now called UserProfile.
Thanks
Hi, I'm in the current process of changing the current user language in mobile MAUI app using my own template. Though when I run my HttpAPI Host locally it works, but not when Host runs on an external server ? I'm not sure why. 🤔
Context: we have a desktop app (Blazor WebAssembly + basic theme) and a mobile app (Blazor MAUI + LeptonXTheme) that use the same UI to change language.
When I change language on desktop, it works using localStorage technique but on mobile app, it's a different code that execute to change language since localStorage isn't available.
I used LeptonXTheme ILanguagePlatformManager
to change language using ChangeAsync
method
This works perfectly when my server (HttpAPI Host) runs locally, but when I changed the address to point to an external server hosted on azurewebsites, it stopped working like if it cannot hit Abp/Languages/Switch
endpoint there?
I'm not quite sure why it behaves this way, do you have any idea that can guide me ?