Base solution for your next web application
Open Closed

ASP.NET Zero Power Tools Master-Detail errors #9978


User avatar
0
MCSI created

Prerequisites

  • What is your product version? v10.1.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

Hello,

I tried to use ASP.NET Zero Power Tools Master-Detail function but I encountered some problems.

The test consisted in the creation of a "Customer" parent entity and a "CustomerContact" child entity, in particular, the child entity was generated by activating the "Create Non-Modal CRUD Page" flag while the parent entity was generated using the "Create Master-Detail Page" flag.

Once I finished the procedure with ASP.NET Zero Power Tools I noticed the following errors:

1) In all components created where this element is used import {LazyLoadEvent} from "primeng/public_api"; the error is detected in the import path.

The error seems to be resolved by modifying as follows: import {LazyLoadEvent} from "primeng/api/public_api"; but I don't know if it is the correct solution.

2) A field is missing in the "masterDetailChild_Customer_customerContacts" component in the getCustomerContactsToExcel method

src/app/main/modules/customerContacts/masterDetailChild_Customer_customerContacts.component.ts: 95: 14 - error TS2554: Expected 5 arguments, but got 4.

.getCustomerContactsToExcel (this.filterText, this.phoneFilter, this.emailFilter, this.customerId)

Checking the signature of the method requires the "customerCodeFilter" field which, however, is not present in the component

3) In the main module "src/app/main/main.module.ts" some components are included but they have not been generated

In particular:

src/app/main/main.module.ts: 10: 73 - error TS2307: Cannot find module './modules/customerContacts/masterDetailChild_Customer_view-customerContact.component' or its corresponding type declarations.

import {MasterDetailChild_Customer_ViewCustomerContactComponent} from './modules/customerContacts/masterDetailChild_Customer_view-customerContact.component';

src/app/main/main.module.ts: 11: 81 - error TS2307: Cannot find module './modules/customerContacts/masterDetailChild_Customer_create-or-edit-customerContact.component' or its corresponding type declarations.

import {MasterDetailChild_Customer_CreateOrEditCustomerContactComponent} from './modules/customerContacts/masterDetailChild_Customer_create-or-edit-customerContact.component';

you can verify?

In addition to this I wanted to ask how to use different versions of ASP.NET Zero Power Tools to manage old and new projects.

thanks


2 Answer(s)
  • User Avatar
    0
    MCSI created

    Hi I have created an issue on git for this report

    https://github.com/aspnetzero/aspnet-zero-core/issues/3702

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @developerMCSI

    We can continue via GitHub.