Açık Kapalı

Navigation properties do not work in generated UI (Angular) #5977


User avatar
0
jtallon oluşturuldu
  • ABP Framework version: 7.4

  • UI Type: Angular

  • Database System: Both in SQL Server / MongoDB

  • Tiered (for MVC) or Auth Server Separated (for Angular): No

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

This problem is common to both SQL Server / MongoDB.

  1. I create a new solution using apb suite (details above)
  2. Create a new Entity - called "EntityX", as a GUID, and create a Title text field
  3. Save and Generate
  4. Create a new Entity - called "EntityY", as a GUID, and create a few text fields
  5. Create a Navigation (1-n) property to "EntityX", and select Title field
  6. Save and Generate
  7. Build and run the app
  8. Go to EntityX and click "Create new EntityX"
    1. Enter Value 1
    2. Click Save
    3. Repeat for Value 2, Value 3
  9. Go to EntityY and click "Create new EntityY"
  10. Enter Fields
  11. Go to EntityX and click dropdown to select value

No values are in the drop down

Check the Dev Tools and see the following.

Can you please suggest what is wrong here?


4 Cevap
  • User Avatar
    0
    liangshiwei oluşturuldu
    Destek Takımı Fullstack Developer

    Hi,

    We will check it.

  • User Avatar
    0
    jtallon oluşturuldu

    Hi,

    We will check it.

    OK, do you have a view on when you will have reviewed this?

  • User Avatar
    0
    EngincanV oluşturuldu
    Destek Takımı .NET Developer

    Hi,

    We will check it.

    OK, do you have a view on when you will have reviewed this?

    Hi, I will test the bug today and let you know about the status of this bug.

  • User Avatar
    0
    masum.ulu oluşturuldu
    Destek Takımı Angular Developer

    Hello jtallon,

    I've re-produced your case, we've created a issue, I also refunded your credit,

    You can fix the problem with the giving correct service. ServiceNameDetailViewService extended an abstract service and in this service there is a injected service as public readonly proxyService = inject(OrderService); can you please use this service in the template for the lookup-select components

    Example

    <abp-lookup-select
      cid="order-situation-id"
      formControlName="situationId"
      [getFn]="service.proxyService.getSituationLookup"
    ></abp-lookup-select>
    

    [UPDATED 10/17/23]


    Alternatively you can use this way

    product-detail.abstract.service.ts

     public readonly proxyService = inject(ProductService);
     
     public readonly getSituationLookup = this.proxyService.getSituationsLookup();
    
Made with ❤️ on ABP v8.2.0-preview Updated on Mart 25, 2024, 15:11