Activities of "khalid"

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: hi all I update my project frontend and backend to v7.4 and and both are working fine in my local machine

but after deployment I got an error in angular application the page still loading and I got this error in console cannot set properties of undefined (setting 'efac')

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7
  • UI type: Angular
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes / Identity Server Separated (Angular)
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Could You please help me in this case I got error after deploying angular app to the server "Error Detail not sent by server. " I tried to figure out the error by looking to logs file of backed but I couldn't know where the error
in my local machine its work perfectly without any error

I attached screenshot of angular ui and log file

backend logs file

ABP Framework version: v3.2.0 UI type: Angular Tiered (MVC) or Identity Server Seperated (Angular): Identity Server Seperated (Angular) Exception message and stack trace: Steps to reproduce the issue:

I have same issue like this How to share an entity that is managed by the host but is accessible by tenants

public class Book: FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        public virtual Guid? TenantId { get; set; } }

    public string BookName { get; set; }
}

How can  share an entity that is created  by the host to all tenants?

For example a tenant user should be able to see the list of books which is created by  himself and  by host. do I need to add Feature check? if so how?

I have been following the guide on how to customize the app modules with the intention of extending module entities with new properties and exposing these with a modified service/controller .

I have extended OrganizationUnit from a module with the following properties: and then mapped these new properties to the same database table as OrganizationUnit by updating DbContext.OnModelCreating and EfCoreEntityExtensionMappings and and Dto Extensions and  created a database-migration

And here is user interface for inserting new organization unit and its work fine

Summary To summarize, I wish to achieve the following:

How do I add new method from applications services and controllers in a way that enables me to get list of UnitCategory as dropdown list? I have implemented the following based on the solution #438 :

 public interface IAppOrganizationUnitAppService : IOrganizationUnitAppService
    {
        Task<PagedResultDto<LookupDto>> GetUnitCategoryLookupAsync(LookupRequestDto input);

    }

 [RemoteService(IsEnabled = false)] // If you use dynamic controller feature you can disable remote service. Prevent creating duplicate controller for the application service.
    [Dependency(ReplaceServices = true)]
    [ExposeServices( typeof(OrganizationUnitAppService),typeof(IAppOrganizationUnitAppService))]
    public class AppOrganizationUnitAppService : OrganizationUnitAppService, IAppOrganizationUnitAppService
    {
        private readonly IMODRepository<OrganizationUnitCategory, Guid> _unitCategoryRepository;

        public AppOrganizationUnitAppService(
            OrganizationUnitManager organizationUnitManager,
            IdentityUserManager userManager,
            IOrganizationUnitRepository organizationUnitRepository,
            IIdentityUserRepository identityUserRepository,
            IIdentityRoleRepository identityRoleRepository,
            IMODRepository<OrganizationUnitCategory, Guid> unitCategoryRepository)
        :base(organizationUnitManager,userManager, organizationUnitRepository, identityUserRepository, identityRoleRepository)
        {
            _unitCategoryRepository = unitCategoryRepository;
        }

        public  async Task<PagedResultDto<LookupDto>> GetUnitCategoryLookupAsync(LookupRequestDto input)
        {
            var query = _unitCategoryRepository.AsQueryable()
                .WhereIf(!string.IsNullOrWhiteSpace(input.Filter), x => x.ArabicName != null && x.ArabicName.Contains(input.Filter));

            var lookupData = await query.PageBy(input.SkipCount, input.MaxResultCount).ToDynamicListAsync<OrganizationUnitCategory>();

            var totalCount = query.Count();

            return new PagedResultDto<LookupDto>
            {
                TotalCount = totalCount,
                Items = ObjectMapper.Map<List<OrganizationUnitCategory>, List<LookupDto>>(lookupData)
            };
        }
    }

 [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(OrganizationUnitController), typeof(IAppOrganizationUnitAppService))]
    [RemoteService(true, Name = "AbpIdentity")]
    [Route("api/identity/organization-units", Order = 0)]
    [ControllerName("OrganizationUnit")]
    [Area("identity")]
    public class AppOrganizationUnitController : OrganizationUnitController, IAppOrganizationUnitAppService
    {
        public AppOrganizationUnitController(IOrganizationUnitAppService organizationUnitAppService)
            : base(organizationUnitAppService)
        {

        }

        [HttpGet]
        [Route("Unit-Category-lookup")]
        public Task<PagedResultDto<LookupDto>> GetUnitCategoryLookupAsync(LookupRequestDto input)
        {
            return ((IAppOrganizationUnitAppService)OrganizationUnitAppService).GetUnitCategoryLookupAsync(input);
        }


    }

However when I attempt to start the HttpApi.Host project I now get the following exception:

  • ABP Framework version: v3.2.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular)Identity Server Seperated (Angular)
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I have one- to-many relationship between the following two classes WorkRoleTenantAssignment and Tenant.

I trying to get all WorkRoleTenantAssignment with Tenant Because tenant is an aggregate root and adding navigation property to aggregate roots is not allowed in Abp, I added new class below, similar to the classes generated by Abp suite

And I wrote the following Linq query to fetch data Work Roles Assignments along with their assigned tenants. When I run the code I got this following error: I have tried many ways to overcome this issue but with no luck. Your guidance is appreciated.

Showing 1 to 5 of 5 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11