Hi,
I would like to implement a datatable page with a checkbox list filters. (you can check the capture joined).
I'm trying to do this with this jqueryCode :
listAction: {
ajaxFunction: _candidatService.getCandidats,
inputFilter: function () {
return {
metiers: $('#metiersFilter input:checked[name="Metiers"]').map(function () { return $(this).val(); }).get()
};
}
},
It's not working because on the first load my list is empty (no checkbox is checked) and when it's serialized to my inputDto i have an error :
validationErrors: Array(1) 0: {message: "The value '' is invalid.", members: Array(1)}
See my Input Dto :
[CanBeNull] public List<int> Metiers { get; set; }
Any help appreciated.
PS : When i force in code an empty array it's not working too ... bizarre...
listAction: {
ajaxFunction: _candidatService.getCandidats,
inputFilter: function () {
return {
metiers: []
};
}
},
Yes but i need to give access to all permissions like this code :
var fullAdminRole = _roleManager.Roles.Single(r => r.Name == XXXXXX);
await _roleManager.GrantAllPermissionsAsync(fullAdminRole);
Where is the best place for doing this in startup ? In SeedHelper ?
If so, how can i get the roleManager, should i get it from DI ?
Thanks
Thanks but what if i don't have Multitenancy ?
Hi,
What is the best way to define permissions for a specific role by code in the Seed actions _(or somewhere else) _?
How is it handled for the admin default user in ANZ ?
I would like to automatically link permissions & roles by code for the first default startup of my app, and not to have to go to the interface.
Thanks
Sorry, it was a mistake from me, i had 2 bundles with the same name.
I close this msg
The output is correct, no error.
I think there is one or more missing files in the bundle/minifying process.
For example, i have created a bundle : **wwwroot/view-resources/Areas/Views/_Bundles/account-layout-libs.js ** This bundle is in my bundleConfig.json
But when i update bundles, or build the solution, it is not handled by the task.
Any idea ?
Hi,
What is the best Way to merge migrations in one.
I Have in my EF Core Migrations :
I would like to merge MyMigration1 to MyMigrationX in one migration (and keep ABP migrations).
How to deal it with ContextModelSnapshot file ?
Thanks
I'm using asp.net core & Jquery version.