Permission Checker is just an example, it could be something completely different as well, so what would be the best way for that. Please provide some example with code.
I had check that link before posting, can you please answer my specific quetions?
I have written code which passess dto to domain from application services and vice versa so aspnetzero does not prevent it explicitly but I would like to know if it will break anything or is it against the best practices?
I have the same question, I know the document says that domain service should return entity which can be converted into dto, similarly entity/entities should be passed to domain services. In order to reduce redundancy, I want to pass dto as parameter to domain service and return a dto back from domain service. I know I can do this in the code (as it is not being prohibited in the code), however does it break anything?
I have written code which passess dto to domain from application services and vice versa so aspnetzero does not prevent it explicitly but I would like to know if it will break anything or is it against the best practices?
I am unable to access following link, I am logged in with my credentials to aspnetzero support. https://github.com/aspnetzero/aspnet-zero-core/issues/3013
Are you referring to following code in AppMenuViewComponent
var model = new MenuViewModel
{
Menu = await _userNavigationManager.GetMenuAsync(AppNavigationProvider.MenuName, _abpSession.ToUserIdentifier()),
CurrentPageName = currentPageName
};
How will the menu order be handled? Can I recreate Abp's menu in my database and then just get all menu from the database instead of getting Abp's from navigationManager and then appending mine from the database?
This is not an option for us because we have a lot of pages and it will not be user friendly for our users as they will find a client and they select a page to visit via Actions page, they will then need to come back to the main page and search for client again and then user action page to visit another page.
Is it not possible to capture or register for click event on menu?
Is there any update please?
So what would be the best place to read menu from the database? I would need a value from session to retreive menu from the database. You mentioned current function in previous reply where is this function? Please reply comprehensively if possible with example so that I can close this ticket quickly. Thanks
Do we have access to AbpSession.UserId in SetNavigation method?
Yes, I just need to get the menu from the database and display them with any permission dependcies as well. Is this a suitable placce?
The paramter is unknow because it is an Id of selected student, consider the follownig scenario:
when you login first, you are taken to a list of students, you must select a student first before you go to any other page via menu. Once you have a selected a client and you click on LinkA, I want this javascript function to be called so that I can append student Id. From LinkA user may click on LinkB so I would then again append the student Id so that LinkB shows data for the selected student only. As I said, I can do that when user clicks on Edit button on any page, because I grab click function, append Id and change location.href.
I know I can use session, however, problem with session is that if user opens the first page in a new tabl and select a different student then session value will get overwritten and both tabls will then be linked to the latest session. However, if I can call a javascript function whenever a menu is clicked then I can append student id to Url and I can have two tabs opened showing details for different students at the same time which is what I want to achieve.