Activities of "ninomartini"

I converted the project from v3.0.5 to v3.1.2 and kept the resource owner password authentication.

Hello @mehmet

I was able to get the Angular domain tenant resolver to work in v3.1.2. Is there a way to hide the tenant selection from the login page without recreating the login page?

Created a new project with ABP Suite (Angular, MongoDB, v3.1.2). The CRUD Page Generator will not generate the Angular code if two or more enum properties defined. I tried uninstalling the ABP Suite and reinstalling. Also trried clearing my NuGet cache without success. This was working in v3.0.5.

Any other suggestions?

Hello @mehmet

Thank you for your response. I will wait and test this feature when v3.1 is released.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): No

I am trying to get my Angular UI to set the tenant based on the subdomain. I modified the enviroment.prod.ts file to include a baseUrl.

export const environment = {
  //...
  application: {
    baseUrl: 'https://{0}.mydomain.com/'
  },
  //...
}

I also tried with and without the following tenant resolver in the Host project:

Configure<AbpTenantResolveOptions>(options =>
{
    options.TenantResolvers.Insert(1, new DomainTenantResolveContributor("{0}.mydomain.com"));
});

Abp v3.04/MongoDb/Angular

I am trying to implement this without success. In the HttpApi.Host project I modify ConfigServices to include the domain resolver.

public override void ConfigureServices(ServiceConfigurationContext context)
{
    var configuration = context.Services.GetConfiguration();
    var hostingEnvironment = context.Services.GetHostingEnvironment();

    Configure<AbpTenantResolveOptions>(options =>
    {
        options.TenantResolvers.Insert(1, new DomainTenantResolveContributor("{0}.localhost"));
    });

    ConfigureUrls(configuration);
    ConfigureConventionalControllers();
    ConfigureAuthentication(context, configuration);
    ConfigureSwagger(context);
    ConfigureLocalization();
    ConfigureVirtualFileSystem(context);
    ConfigureCors(context, configuration);
}

In my Angular project I update the enviroment.ts file to inlciude a baseUrl.

export const environment = {
  production: false,
  application: {
    baseUrl: 'https://{0}.localhost/',
    name: 'Mmg',
  },
  oAuthConfig: {
    issuer: 'https://localhost:44383',
    clientId: 'Mmg_App',
    dummyClientSecret: '1q2w3e*',
    scope: 'Mmg',
    showDebugInformation: true,
    oidc: false,
    requireHttps: true,
  },
  apis: {
    default: {
      url: 'https://localhost:44383'
    },
  },
  localization: {
    defaultResourceName: 'Mmg',
  }
};

http://localhost:4200/ will launch the application successfully. http://demo.localhost:4200/ returns status code 304 with a response of Invalid Host Header. Can you help shed some light on what I missed?

Answer

Solved by creating a factory function.

  providers: [
    { provide: 'list', useClass: ListService },
    { provide: 'unitMessageList', useClass: ListService },
    ...]
    
  constructor(
    @Inject('list') public readonly list: ListService,
    @Inject('unitMessageList') public readonly unitMessageList: ListService,
    ...
    }
Question
  • ABP Framework version: v3.04
  • UI type: Angular

I can't figure out how to use two or more ngx-datatables on the same page using the ListService.

Table 1: ngx-datatable [rows]="data.items" [count]="data.totalCount" [list]="list" default>

Table 2: <ngx-datatable [rows]="dataMessages.items" [count]="dataMessages.totalCount" [list]="list" default>

Going to page 2 on one table causes the other table to also go to page two. How do I break this synchronization?

Understood, thank you.

I am using a shared database solution. Why did DataFilter not work?

Showing 21 to 30 of 43 entries
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.1.0-preview. Updated on December 05, 2025, 12:34
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.