Open Closed

ABP Suite v4.1.0 Create Modal Lookup xxxxxx #782


User avatar
0
cellero created
  • ABP Framework version: v4.1.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace: Error CS0103 The name 'xxxxxx' does not exist in the current context .....Web\Pages\OrderLines\CreateModal.cshtml.cs 35
  • Steps to reproduce the issue

When creating OrderLine entity that has a Navaigation to Order the build fails. The error occurs in CreateModal.cshtml.cs with lookup to the Order. The problem is "xxxxxx" in the OrderLookup. The xxxxxx text is automatically generated by CRUD abp suite. See below:

    public async Task OnGetAsync()
    {
        OrderLine = new OrderLineCreateDto();
        OrderLookupList.AddRange((
                                await _orderLineAppService.GetOrderLookupAsync(new LookupRequestDto
                                { xxxxxx
                        MaxResultCount = LimitedResultRequestDto.MaxMaxResultCount
                                })).Items.Select(t => new SelectListItem(t.DisplayName, t.Id.ToString())).ToList()
                    );
        await Task.CompletedTask;

Severity Code Description Project File Line Suppression State Error CS0103 The name 'xxxxxx' does not exist in the current context .....Web\Pages\OrderLines\CreateModal.cshtml.cs 35 Active

This occurs on a new project built entirely on Version 4.1.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can remove the xxxxxx string. We have fix this.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11