I am trying to localize Validation Messages for POCO (DTO) classes on Blazor.
I have my own Resource added and is working fine on notifications and other strings. but I want to localize the <ValidationError>
tags on Razor pages
Example DTO
public class StockTypeCreateDto
{
----ADD IT HERE---
[Required]
[StringLength(StockTypeConsts.NameMaxLength)]
public string Name { get; set; }
[Required]
public bool IsStatic { get; set; }
}
}
Example Razor
<Validation>
<Field>
<FieldLabel>@L["Label:Name"] *</FieldLabel>
<TextEdit Autofocus="true" @bind-Text="@NewStockType.Name" MaxLength="StockTypeConsts.NameMaxLength">
<Feedback>
----ADD IT HERE---
<ValidationError>@L[MyProjectErrorCodes.RequiredField, L["Label:Name"]]</ValidationError>
</Feedback>
</TextEdit>
</Field>
</Validation>
hi
Its on the backlog
You can check this issue for now: https://github.com/abpframework/abp/issues/3807#issuecomment-627694184
can this be on the next milestone?
is this planned ?
I see what you mean, so the suggested way is to have search functionality in each custom module. and in the Demo Application I create a UI to handle all the search from different modules in one location.
sounds good thanks.
Here is the scenario:
I am developing separate parts of an application each with its own module solution that has everything including the UI.
but I ran into an issue, how do I create a Global Search UI in a demo solution that uses these modules?
Example:
I need to have a search box with a drop-down list (Products, Stocks, Cars) that does search and return results on the demo solution.
how do I architect the projects to accomplish this scenario?
https://github.com/abpframework/abp/issues/4154
I have found multiple anserts to adding a navigation property to a custom entity howerever there are no straightforward steps.
I have a module solution and I need to add a navigation property to my custom entity to the IdentityUser
please provide steps by step and hopefully add it to the official documentation for v4.2.2
the documentation should have a dedicated page for this subject "Integrating base user Identity with your entities"
Suggested topics in this page
thanks