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.

Ekran görüntüsü 2023-03-22 153936.png


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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08