Open Closed

mvc core & jQuery - validation errors for navigation properties #8760


0
Siyeza created

These are the navigation dropdown errors. Where do I make them look proper?

ie....Select the race


19 Answer(s)
  • 0
    maliming created
    Support Team

    hi

    Can you share some code?

    From the screenshot, you passed null to a non-null int type.

  • 0
    Siyeza created

    refer to logins (#8759) 360 View - > Create new policy holder (top right) -> Save (just click save without filling any data). Form Validation is not happening on dropdowns. Attached image to support. Those errors I sent ealier are server errors.

  • 0
    ismcagdas created
    Support Team

    @siyeza

    Is this created by Power Tools ? If so, could you share generated DTO class as well ?

    Thanks,

  • 0
    Siyeza created

    Yes, by powertools attached is the generated Dto for Add&Edit see below ...

    public class CreateOrEditPolicyHolderDto : EntityDto<long?> {

        [Required]
        [StringLength(PolicyHolderConsts.MaxFullNamesLength, MinimumLength = PolicyHolderConsts.MinFullNamesLength)]
        public string FullNames { get; set; }
    
    
        [Required]
        [StringLength(PolicyHolderConsts.MaxLastNameLength, MinimumLength = PolicyHolderConsts.MinLastNameLength)]
        public string LastName { get; set; }
    
    
        [Required]
        [StringLength(PolicyHolderConsts.MaxIDNumberLength, MinimumLength = PolicyHolderConsts.MinIDNumberLength)]
        public string IDNumber { get; set; }
    
    
        public int PreferredCommunicationId { get; set; }
    
        public int GenderId { get; set; }
    
        public int TitleId { get; set; }
    
        public int RaceId { get; set; }
    
        public int PolicyHolderStatusId { get; set; }
    
        public long? OrganizationUnitId { get; set; }
    
    }
    
  • 0
    ismcagdas created
    Support Team

    Hi,

    It seems like there is a problem here. Could you open an issue on https://github.com/aspnetzero/aspnet-zero-core/issues ? We will fix it for the next version of RAD Tool.

  • 0
    Siyeza created

    Hi, I have raised the issue - Form Validation - on navigation properties (generated by RAD tool) #3129

  • 0
    ismcagdas created
    Support Team

    Thanks.

    Here is the entire link for reference: https://github.com/aspnetzero/aspnet-zero-core/issues/3129

  • 0
    Siyeza created

    Hi, has this been resolved yet? and what are the steps?

  • 0
    maliming created
    Support Team

    hi

    The problem is being solved, please pay attention to the github issue. https://github.com/aspnetzero/aspnet-zero-core/issues/3129

  • 0
    Siyeza created

    Hi, thanks for this. What shoud I do now? Get the latest and merge or there is something I can just add to my existing code?

  • 0
    ismcagdas created
    Support Team

    Hi,

    You should wait for next version of Power Tools. We will release it this week.

  • 0
    Siyeza created

    Hi @ismcagdas, please let me know as soon as this has been released.

  • 0
    ismcagdas created
    Support Team

    @Jobe will do.

  • 0
    Siyeza created

    Hi, have you guys released the latest RAD tool..?

  • 0
    ismcagdas created
    Support Team

    Hi @Jobe,

    We have found a few more problems and will release when fixing those problems. Probalby on tuesday.

    Thanks,

  • 0
    Siyeza created

    Hi @ismcagdas, any updates on this matter?

  • 0
    ismcagdas created
    Support Team

    Hi @Jobe,

    Sorry for the delay, we will release new version on next Monday.

  • 0
    Siyeza created

    Hi @ismcagdas, have you guys done this release?

  • 0
    maliming created
    Support Team

    hi @Jobe

    v8.6 has been released.

    https://github.com/aspnetzero/aspnet-zero-core/releases https://aspnetzero.com/Download