I have just managed to get my AspNet Zero built and running for the first time. I am finding that all my jTable grids are displaying separate action buttons in the left column rather than a singe dropdown button. Is there a setting for this. I am running MVC5 jquery.
Regards
Hi
I have just downloaded v4 Core and successfully built. However, when I attempt to create the database via entity framework, I am getting the following error:
Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design' or one of its dependencies. The system cannot find the file specified.
Please advise.
Hi, I have successfully integrated the Kendo grid into aspnet zero. Now I would like to be able to handle ajax errors consistently with the rest of the application. Please could you tell me how I could invoke the standard abp ajax error dialog from within my javascript. I am successfully catching server side errors here, and am simply looking for the best way to report them.
Thank you
Hi,
I would like to use the Display Attribute to apply localized names to my enum value. Could you please tell me how I can do this using the AZ localization framework.
Thank you
Hi,
I am using Controller Validation to validate against certain errors. The code has worked fine until I use abp.message.confirm in the save method:
function _attachCloseEvent() {
_modalManager.getModal().find('.issue-close').click(function (e) {
e.preventDefault();
if (!_closeIssueForm.valid()) {
return;
}
//abp.message.confirm(
// app.localize('IssueCloseWarningMessage'),
// function (isConfirmed) {
// if (isConfirmed) {
_modalManager.setBusy(true);
var issue = _closeIssueForm.serializeFormToObject();
abp.ajax({
url: abp.appPath + 'Mpa/Issues/CloseIssue',
data: JSON.stringify({
issueOutput: issue
}),
success: function () {
abp.notify.success(app.localize('IssueSuccessfullyClosed'));
_modalManager.close();
abp.event.trigger('app.itemSaved');
},
always: (function() {
_modalManager.setBusy(false);
})
});
// }
//}
//);
});
}
When confirm is not enabled (as above) things work fine. When I enable confirm, the validation dialog box is not displayed.
Cheers, Phil
Hi,
I am implementing a ContactManager, where a Contact is linked to a Company. Once the Contact has been created, the company should no longer be allowed to change.
I have implemented the following method in ContactManager to achieve this validation:
protected async Task<IdentityResult> CheckCompanyUnchanged(int id, int companyId)
{
var contact = await _contactRepository.FirstOrDefaultAsync(c => c.Id == id);
if (contact != null && contact.CompanyId != companyId)
{
return AbpIdentityResult.Failed(string.Format(L("ContactCompanyChanged")));
}
return IdentityResult.Success;
}
The problem I am having is that when fetching the Contact to make the comparrison, it contains the updated company value rather than the original one due to entity tracking. Is there a way to access the original values from the Core project? I know this can be done via the dbContext, but have no access to this.
Hi,
I have a requirement to apply user settings to the admin user created in TenantManager.CreateWithAdminUserAsync.
I am finding, however, that calls to SettingManager.ChangeSettingForUserAsync are not applying the settings (no error received from the call).
I have tried applying the settings in a new UOW, but still no good.
Please advise.
Hi,
I need to add a custom claim on login. All example code I have seen assumes that we extend AccountController.SignInAsync in order to do this. However, the current version now uses SignInManager.SignInOrTwoFactor.
Could you please tell me how I can now insert a custom claim on login.
Thank you.
Hi,
I am currently on v4.0 of ASPNET Zero using MVC jQuery. Having experienced some performance issues I have discovered that the bundles generated by the system are not being cached on the client. All bundle headers (along with other static content) seem to be setting Cache-Control to "no-cache".
I have spent some time trying to determine why this is the case, but have not been able to find the cause.
When I create and run a Demo from your site (I assume this is running v4.2 with Angular) I see that bundles are caching as expected.
Please advise. Regards
Hi,
I am attempting to implement optimistic locking in order to handle concurrency issues.
I have added the following field to my entities:
[Timestamp]
public byte[] RowVersion { get; set; }
According to the EF documentation, this is all that is required, as long as the initial row version value is supplied with the update. However, I cannot seem to get this to work in ASPNet Zero.
Should I be implementing a custom repository to perform the updates? And if so, how do I prevent the update that is automatically called by the Unit Of Work manager?
Thank you