Base solution for your next web application
Open Closed

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


User avatar
0
Siyeza created

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

ie....Select the race


19 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    Can you share some code?

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

  • User Avatar
    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @siyeza

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

    Thanks,

  • User Avatar
    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; }
    
    }
    
  • User Avatar
    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.

  • User Avatar
    0
    Siyeza created

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

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks.

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

  • User Avatar
    0
    Siyeza created

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

  • User Avatar
    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

  • User Avatar
    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?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

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

  • User Avatar
    0
    Siyeza created

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

  • User Avatar
    0
    ismcagdas created
    Support Team

    @Jobe will do.

  • User Avatar
    0
    Siyeza created

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

  • User Avatar
    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,

  • User Avatar
    0
    Siyeza created

    Hi @ismcagdas, any updates on this matter?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Jobe,

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

  • User Avatar
    0
    Siyeza created

    Hi @ismcagdas, have you guys done this release?

  • User Avatar
    0
    maliming created
    Support Team

    hi @Jobe

    v8.6 has been released.

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