Open Closed

Object Extension Manager Lookup Problem #4755


User avatar
0
coskunkula created
  • ABP Framework version: v7.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I want to add property with foreign key from another table for "User" with "Object Extension Manager".

user.AddOrUpdateProperty<Guid?>("EgitimKonuGrupId", property => { property.UI.Lookup.Url = "/api/departments"; property.UI.Lookup.DisplayPropertyName = "ad"; });

controller:

[Route("api/departments")] public class DepartmentController : AbpController { [HttpGet] public async Task<ListResultDto<EgitimKonuGrupDto>> GetAsync() { return new ListResultDto<EgitimKonuGrupDto>( new[] { new EgitimKonuGrupDto { Id = Guid.Parse("EEB064A5-F160-8A02-ADC2-3A0A1B5D1230"), Ad = "Human Resources" }, new EgitimKonuGrupDto { Id = Guid.Parse("41312C2A-1169-BBBF-256A-3A0A1B5D2A09"), Ad= "Production" } } ); } }

In the user edit screen, I select from the drop-down list and save. correctly saves to the database. but when I open it for editing again, the data I selected does not come as selected.


3 Answer(s)
  • User Avatar
    0
    onurpicakci created

    Hi, could you please provide me with the exact version you are using so that I can investigate the issue in detail?

  • User Avatar
    0
    coskunkula created

    I had this situation in version 7.0. I updated to version 7.1. and the same situation continues. I am using blazor server as architecture. There is no problem in mvc architecture. the problem happens when in blazor architecture.

  • User Avatar
    0
    onurpicakci created

    I have tested the issue, and I was able to reproduce it. An internal issue has been opened about this. Thank you very much for reporting the issue to us.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09