Hi,
You need to set the MenuItemName
in your page. like:
@{
PageLayout.Content.Title = L["Menu:FileManagement"].Value;
PageLayout.Content.MenuItemName = FileManagementMenuNames.GroupName;
}
Hi,
when calling the service from the web project I can successfully use Service.UpdateAsync but Service.ValidateAsync needs permissions. How do I configure a proper permission?
If ValidateAsync
requires permissions, then you must configure this permission for the current user. I think this is correct. If you don't have permission but you can call the method, it will be a bug.
You don't have to completely override the CreateAsync method.
private IBookStoreRepository _bookStoreRepository;
.....
public async override Task CreateAsync(CreateBookDto createDto)
{
// VALIDATE
await CheckNameExists(createDto.Name);
// Call base createAsync method
await base.CreateAsync(createDto);
}
private async Task CheckNameExists(string bookName)
{
var book = await _bookStoreRepository.GetByName(bookName);
if(book!=null) {
throw new UserfriendException("the book already exists ")
}
}
Sorry, I can't get useful information, Can you use CLI to make a sample project to reproduce? thanks.
Can you share some code? Your login mehtod and configuration code.
Can you provide steps to reproduce? thanks.
Hi,
No way. You can write a private method without permission. like :
private IBookStoreRepository _bookStoreRepository;
.....
public async Task Create(CreateBookDto createDto)
{
await CheckNameExists(createDto.Name);
.....
}
private async Task CheckNameExists(string bookName)
{
var book = await _bookStoreRepository.GetByName(bookName);
if(book!=null) {
throw new UserfriendException("the book already exists ")
}
}
Can you provide some code?
Hi,
We have a WPF template: https://github.com/abpframework/abp/tree/dev/templates/wpf. There is no xamarin project yet . see https://github.com/abpframework/abp/issues/158