<cite>hikalkan: </cite> I suppose this is a problem with IE. It works in Chrome and Firefox. I created an issue, follow it: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1026">https://github.com/aspnetboilerplate/as ... ssues/1026</a>
I think this bug is not related to IE. I tested it with Firefox, just ignore it. but when I want to for example submit New User form I got this error
TypeError: _$form.serializeFormToObject is not a function
Thank you for your response. I try with another browser and error has gone. But another problem: first I change .Net version to 4.6.1 after that update all packages in solution. result: abp.zero.entityframework does not definition for ISupportSeedMode ?! abp.zero.entityframework new version : 0.9.1.0
Hi, All js file in view folder (SPA Project) load in project startup. I think it is a impact performance in project with lot of js files. any solution?
Thank for your response. using [UnitOfWork] solve my problem, but setting manager is not so clear for me. do you have any sample project about manipulate setting for different user and tenant? does setting must be declared in core project and register in core module?
Hi, AzmaSettings declared in Core project and use it in PreInitialize method of CoreModule. I want to read/write setting from/to db. with this code
public class AzmaSettings : SettingProvider
{
private readonly IRepository<ACC.Formals.Formal> _formalRepo;
public AzmaSettings(IRepository<ACC.Formals.Formal> formalRepo)
{
_formalRepo = formalRepo;
}
public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context)
{
var v = _formalRepo.GetAll().FirstOrDefault().Name;
return new[]
{
new SettingDefinition(
"TestSetting",
v
)
};
}
}
I got this error
The operation cannot be completed because the DbContext has been disposed.
where is the problem?
anybody :(
Hi. I use this code for role permission
(function () {
var app = angular.module('app');
var controllerId = 'sts.views.role.edit';
app.controller(controllerId, [
'$scope', '$uibModal', '$location', '$stateParams', 'abp.services.isirids.role',
function ($scope, $uibModal, $location, $stateParams, roleService) {
var vm = this;
vm.id = $stateParams.id;
vm.permissionData = [];
vm.treeData = [];
$scope.animationsEnabled = false;
vm.initialTreeViewDate = function () {
for (var i = 0; i < vm.role.permissions.length; i++) {
var _itm = {
id: vm.role.permissions[i].name,
parent: vm.role.permissions[i].parentName != null ? vm.role.permissions[i].parentName : "#",
text: vm.role.permissions[i].displayName,
state: { opened: false}
};
if (vm.role.grantedPermissions.indexOf(vm.role.permissions[i].name) != -1) {
_itm.state.selected = true;
}
else
_itm.state.selected = false;
vm.permissionData.push(_itm);
}
angular.copy(vm.permissionData, vm.treeData);
vm.treeConfig = {
core: {
multiple: false,
animation: true,
error: function (error) {
$log.error('treeCtrl: error from js tree - ' + angular.toJson(error));
},
check_callback: true,
worker: true
},
types: {
default: {
icon: 'glyphicon glyphicon-chevron-left'
},
star: {
icon: 'glyphicon glyphicon-chevron-left'
},
cloud: {
icon: 'glyphicon glyphicon-chevron-left'
}
},
version: 1,
plugins: ['types', 'checkbox']
};
this.applyModelChanges = function () {
return !vm.ignoreChanges;
};
this.createCB = function (e, item) {
$timeout(function () { toaster.pop('success', 'Node Added', 'Added new node with the text ' + item.node.text) });
};
};
vm.localize = abp.localization.getSource('ISD');
if (vm.id > 0) {
roleService.getRoleForEdit(vm.id)
.success(function (data) {
vm.role = data;
vm.initialTreeViewDate();
});
}
else {
roleService.getRoleForEdit(-1)
.success(function (data) {
vm.role = data;
vm.initialTreeViewDate();
});
}
vm.deleteRole = function () {
swal({
title: vm.localize("AreYouSure"),
text: vm.localize("RoleWillBeDeleted", vm.role.name),
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: vm.localize("YesDeleteIt"),
cancelButtonText:vm.localize("Cancel"),
closeOnConfirm: false,
closeOnCancel: true,
}, function (isConfirm) {
if (isConfirm) {
abp.ui.setBusy(null,
roleService.deleteRole({id: vm.role.id }).success(function () {
swal(vm.localize("Deleted"), vm.localize("RoleDeleteSuccess"), "success");
$location.path('/labsCertificate/list');
}
));
} else { swal(vm.localize("Cancelled"), vm.localize("CancelDescription"), "error"); }
});
};
vm.validationErrors = null;
vm.saveRole = function () {
//var selectedPermissions = [];
var checkedItems = $("#jsTreePermission").jstree('get_checked');
//for (var i = 0; i < checkedItems.length; i++) {
// selectedPermissions.push(checkedItems[i]);
//}
abp.ui.setBusy(
null,
roleService.upsertRole({
id: vm.role.id,
name: vm.role.name,
displayName: vm.role.displayName,
isDefault: vm.role.isDefault,
selectedPermissions: checkedItems
})
.success(function () {
vm.validationErrors = null;
abp.notify.info(abp.utils.formatString(vm.localize("RoleEditedMessage"), vm.role.name ));
$location.path('/role/list');
}).
error(function (data) {
})
);
};
}]);
})();
Thank you man.
Hi. I have Application Service without any authorization requirement. How can I call AppService method form for example Fiddler or Postman (or from MobileApp)?