Activities of "liangshiwei"

Hi,

You need to set the MenuItemName in your page. like:

@{
    PageLayout.Content.Title = L["Menu:FileManagement"].Value;
    PageLayout.Content.MenuItemName = FileManagementMenuNames.GroupName;
}

Hi

Try add

to your page.

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 ")
    }
}
Answer

Can you provide steps to reproduce? thanks.

Answer

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

Showing 6161 to 6170 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 10, 2025, 06:30