Base solution for your next web application

Activities of "fawad29"

I have got both asp.net core and angular2 solutions up and running. When I try to create a new tennant with its own database, I receive an error message: 'An internal error has occurred.'. The tennants database is created in sql server but I don't know why I am receiving this error. I have openned AbpTenants table in the host database and it only has the Default row and no tenants are displayed on Tenants management page. Can you please help?

Thanks

Question

Hi,

Is there a way in this framework (ASP.NET CORE + ANGULAR) to dynamically create views? Our current product is developed in asp.net using telerik/kendo controls and asp.net wizards.

To use boilerplate terminology, our product is multi tennant with each customer has his own database. Our product is heavily dependant on user input as users need to fill out big forms with 100+ fields. Each customer may use different number of fields in each form i.e. Customer A may have 100 fields in Form A and Customer B may have 50 fields in Form A. We break up each form into logical steps of asp.net wizard and display relevant fields to each customer i.e. Customer A would be able to fill out 100 fields in Form A whereas Customer B would be able to fill out 50 fields in the same Form. Each customer will only see the fields that they are supposed to see. Currently, we handle this by using dynamic controls feature of ASP.net and we store fields information for each customer and form in a database.

Is there a way of implementing above in boiler plat, rather than hard wiring forms, can it be dynamically created depending on each customer? We want to avoid duplication where ever we can to avoid mainatennance issues?

Thanks

We have an entity which inherits from IMustHaveTenant. We want to assign tenant id from the session using AbpSession.GetTenantId() when a tenant user creates this entity, can you please confirm the best place to assign tenant id? Should this be done in the Create function of the EntityAppService?

Hi,

I am following the link displayed below for implementing entity history.

https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Features-Mvc-Core-Entity-History

I have an entity class which has some properties. When I update this entity, audit logs does not show old (previous) value, it only shows the new i.e. updated values. For example, if my entity has a property called Name and I update its value from UserA to UserB, the audit log does not show UserA as old Values.

Entity is shown below

EntityFrameworkCoreModule is shown below

EntityHistoryHelper code is shown below:

Can you please help?

Thanks

Question

Hi,

We need to implement group level permissions. The current permissions that we have on ANZ are role based and user based. In our multi tenant application, we would like to have permissions setup as explained below.

Roles - E.g Local Administrator is tennat wide Groups - For example, each tenant can have multiple Groups GroupA, GroupB and son on. Users - Each Users belongs to a role and a group.

Permissions

Local Administrator role is allowed to view MenuA and MenuB. Group A is allowed to view MenuA but not MenuB. Group B is allowed to view MenuB but not MenuA.

UserA belongs to Local Administrator role and Group A, if User A logs in then we would like User A to see Group A menu only even though his/her role has access to both Menu items but his Group is not allowed to access MenuB. This way we don't have to assign permissions for each user, we can assign UserA to Group A and all permissions should be set up like that. Also, we do not want to create multipl role variations such as Local Administratar A, Local Administrator B.

UserB belongs to Local Administrator role and Group B, if User B logs in then we would like User B to see Group B menu only even though his/her role has access to both Menu items but his Group is not allowed to access MenuA.

What is the best way to implement above? Do we need to create new tables/views to handle permissions for Groups, if yes, is there any guidance on how to implement it?

Product Details Product version is 8.0.0. ABP Framework is the one which came with version 8.0.0. ASP.NET Core MVC & jQuery Project

I am using ANZ version 8, when I run the default application, it shows menus on the left. If I am on Dasbhoard page and I click on Demo UI Components menu, it launches the page via URL App/DemoUIComponents. I would like to pass a parameter when this link is clicked so that URL beomes App/DemoUIComponents/1234. The parameter value will not be known until Dashboard page launches. Similalry when I am on Demo UI component page and I click on Dashboard menu then I would like to pass an id parameter to Dashboard page as well.

I can pass id parameter via javascript if I have a button on a page and I click on it using the following link. Can I

$('#EditButton').click(function () {
`location.href = '@Html.Raw(@Url.Action("EditView", new {id = Model.id }))'`
 });

Can I trap a client side event for menu click as well?

How can this be procedure be implemented, I do not want to use session because sessions are not unique to each browser tab?

Question

I would like to create menu from the items stored in the database, instead of hardwiring them in AppNavigationProvider.cs. Do you have a sample example for this purpose? What should be the database look like for this purpose and in what format menus should be returned to abp.nav.menus.MainMenu?

I am using ANZ v8 MVC Core and Jquery.

If I declare a class as static what will be the scope of it, will it be application wide or tenant wide. I would like to store validation error messages in a database table, each tenant will have their own set of validation error messages. I was thinking of loading error messages for each tenant and keep them in cache in a static class so that I dont' have to inject it all the time as the error message will not change and keep the resources as low as possible. However, each tenant can have their own set of error messages so I was wondering about the scope of static class. As you know in c#, a static class exists only once so their only one copy of data so I was wondering how my proposed design will work. Or if you have an alternative way of handling it in ANZ, then please suggest.

Question

I have a permission checking code in application service and I would like to move it to the domain service as it is being used by more than one application services. In the current method, I get the permissions from the database and has implemented a cache so that the next time application does not get the permissions from the database. My question is that you recommend implementing cache in application service so if I move this method to the domain service then I will lose the functionality of cache. I can see following three options, can you help?

  1. I create a method in the domain service that simply calls this existing application service method (this way cache is already implemented in the application service), all application services call this new domain service function.
  2. Implement the method in the domain service and implement cache in the domain service (I don't know if it can be done in ABP architecture).
  3. Implment the method in the domain service with cache (this is NOT ideal).
Question

I am aware that the framework uses in-memory database to run tests. My issue is that we keep some configuration data for each tenant in tenant's database. Now in order to create test, we need to manually create that configuration data in the code for each tenant and then create tests and run them. This is very manual process. Is there a way, where we continue to use in-memory database in tests but can retrieve the configuration data from the actual database?

Product Details Product version is 8.0.0. ABP Framework is the one which came with version 8.0.0. ASP.NET Core MVC & jQuery Project

Thanks

Showing 1 to 10 of 22 entries