Activities of "liangshiwei"

Hi,

Downlown the source code and find configuration.dom .... line , replace it with the following

var dom = '<"dataTable_filters"f>rt<"row dataTable_footer"<"col-auto"l><"col-auto"i><"col"p>>';

if(configuration.dom){
    configuration.dom += dom;
}else{
    configuration.dom = dom;
}

Use BundleContributor Replace files:

public class DataTablesScriptBundleContributor : BundleContributor
{
    public override void ConfigureBundle(BundleConfigurationContext context)
    {
        context.Files.ReplaceOne(
            "/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js",
            "/js/databales-extensions.js");
    }
}

In your index.js

var _dataTable = _$table.DataTable(abp.libs.datatables.normalizeConfiguration({
    ......
    dom :"B",
    buttons: [
        'copyHtml5',
        'excelHtml5',
        'csvHtml5',
        'pdfHtml5'
    ]
}));

Now, it works.

Do you have Teamviewer? You can send connection id to my email: liangshiw@outlook.com, Thanks.

OK, Sure.

Hi

I can't reproduce your problem, can you provide steps to reproduce?

Hi

abp suite 2.9 version will be released today

Do you mean the file was replaced, but it didn't work?

Sorry, I mean use free start template to reproduce this problem, commercial project has your license information.

Hi,

Permission definitions are not persisted to the database. You can use DataSeedContributor add anything seed data.

Hi

Can your use CLI to create a simple project to reproduce this problem?

Hi,

Try :

using (_currentTenant.Change(tenant.Id))
{ 
    await ServiceProvider.
        GetRequiredService<KantanDbMigrationService>()
        .MigrateTenantDatabasesAsync(tenant);

   // init seed data
   await _dataSeeder.SeedAsync(tenant.Id);

}

You can custom DataSeedContributor to add more seed data, Like this:

public class CustomDataSeedContributor : IDataSeedContributor, ITransientDependency
{   
        private readonly IIdentityUserRepository _identityUserRepository;
        
        public CustomDataSeedContributor(IIdentityUserRepository identityUserRepository)
        {
            _identityUserRepository = identityUserRepository;
        }

        [UnitOfWork]
        public virtual async Task SeedAsync(DataSeedContext context)
        {
            _identityUserRepository.InsertAsync(...);
        }
}
Showing 5821 to 5830 of 5952 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11