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.

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

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?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    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 September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.