Open Closed

Code Generated with error for dropdownlist in child table #10939


User avatar
0
johnsonlim created

Hi, i have 2 entity as per below: SAP Server and Non SAP System SAP Server

| Entity | Attribute | | ------ | --------- | | | |

Non SAP Sytem

| Entity | Attribute | | ------ | --------- | | | |

The 2 tables above are referenced in a child entity in below table

| Entity | Attribute | | ------ | --------- | | | |

Generated code has error below.Can you advice?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    The dropdowns in CountryHdrs.razor use SAPServerCollection and NonSAPSystemCollection, but Suite declares them in CountryHdrs.razor.cs with the plural names (SAPServersCollection, NonSAPSystemsCollection).

    You can add two properties to the CountryHdrs partial class in CountryHdrs.Extended.razor.cs. Keep the namespace and any code that's already in that file. Suite doesn't overwrite this file when you regenerate the entity:

    using System;
    using System.Collections.Generic;
    using AbpSolution1.Shared;
    
    namespace AbpSolution1.Blazor.Pages;
    
    public partial class CountryHdrs
    {
        private IReadOnlyList<LookupDto<Guid>> SAPServerCollection => SAPServersCollection;
        private IReadOnlyList<LookupDto<Guid>> NonSAPSystemCollection => NonSAPSystemsCollection;
    }
    

    This is fixed in ABP Suite 10.7.0. If you upgrade later and regenerate the entity, remove these two properties, otherwise the build will fail again. Your ticket has been refunded.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 21, 2026, 11:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.