Activities of "manuel42"

hi maliming,

I tried your example and all the examples of bootstrap docs but nothing works. It seems that the format is impossible to change.

https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#date_strings

I will close the question because the issue is not related to ABP.

1 Download a Module template (For this I have used the latest version (6.0.0)) 2 Add the following in the index.cshtml.cs

    [BindProperty]
    public DateTime StartDate { get; set; }
    
    public void OnGet()
    {
        StartDate = DateTime.Now;
    }

3 Add the following to the index.cshtml <abp-input asp-for="@Model.StartDate" type="date"/>

4 Add this to XXXWebUnifedModule.cs

  Configure<AbpLocalizationOptions>(options =>
  {
    // Add the following line to existing AbpLocalizationOptions      
    options.Languages.Add(new LanguageInfo("de-DE", "de-DE", "Deutsch", "de"));
  });

6 Change the language from english to german and then change the date

Then then format does change back to the english format

Use the following code snippet instead of x.GetClassroomId()

EF.Property<Guid>(x, "ClassroomId")

More information about this topic you can get here https://www.learnentityframeworkcore.com/model/shadow-properties

thank you this helps

Same for me. We have tried to create a Angular application template v5.3.4 today for a new project and we got this error message: We have tried it with both (abp suite and the abp cli).

[13:34:47 INF] Using cached template: app-pro, version: 6.0.0 [13:34:48 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.RemoveUnnecessaryDbMigratorClients(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 56 at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.Execute(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 15 at Volo.Abp.Cli.ProjectBuilding.Building.ProjectBuildPipeline.Execute() in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Building\ProjectBuildPipeline.cs:line 19 at Volo.Abp.Cli.ProjectBuilding.TemplateProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\TemplateProjectBuilder.cs:line 120 at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 74 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 161 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 69

  • ABP Framework version: v5.3.4
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" download Module template and set two connection string one for sql server and one for mongo db

Hello how can I switch between sql server and mongo db in the module template? Currently when I start the module template only the sql server Database is used for the application. When I change the default connectionstring to the mongoDb connection string I got an error.

I guess I need to change something in the ModuleName.Web.Unified

 public UnifiedDbContext CreateDbContext(string[] args)
    {
        var configuration = BuildConfiguration();

        var builder = new DbContextOptionsBuilder<UnifiedDbContext>()
            .UseSqlServer(configuration.GetConnectionString("Default"));

        return new UnifiedDbContext(builder.Options);
    }

and here


        Configure<AbpDbContextOptions>(options =>
        {
          options.UseSqlServer();
        });

My Appsetting

 {
  "ConnectionStrings": {
    "Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=DemoModule_Unified;Trusted_Connection=True",
    "Mongo": "mongodb://localhost:27017/DemoModule_Unified"
  }
}

Yes it should but the datepicker does not change the format when I change the language. Some possibility to set a specific dateformat for the datepicker?

Hi, no. Only the OS date format are always applied.

  • ABP Framework version: v5.3.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" Use abp-input tag with a datetime property in a modal and then change the language

Hello, I have a issue with one of the helper tags. I used the following tag in a modal:

<abp-input asp-for="Project.StartDate" type="date"/>

If I change the application language the date format of the date picker does not change. The format always have the same date format as the OS. I have tried to change it with the asp-format in the tag and the DisplayFormat annotation on the property.

Is there any other way to change the date format or need I to use a classic input tag with a jquery datepicker ?

Thanks you very much !

Showing 11 to 20 of 34 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13