أنشطة "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?

إجابة

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,
    ...
    }
سؤال
  • 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?

عرض 11 الي 20 من 33 إدخالات
Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11