Base solution for your next web application

Activities of "JakeMem"

Question

I am trying to send notification as well as the progress of an Import to the UI. (Angular). I have changed the "abp.js" in the angular code added the Message Formatter Problem I am facing is the codes are wiredup using the "Properties" to read the message or any content within it..

Please suggest me what should I do to polpulate the "properties" (Please check the difference between the Data from the database below), if I am missing something or just have to pick the data from "Message" property..Or any better approach to achieve this? I am planning to read Message for Notification popup and Progress property to Update a Progress bar.

abp.notifications.messageFormatters['MyProject.MyProject.DataModules.ImportEventProgressData'] = function (userNotification) {
        userNotification.notification.severity=abp.notifications.severity.CUSTOMLOG;
        console.log('userNotification',userNotification);        
          return userNotification.notification.data.message || userNotification.notification.data.properties.Message;
    };

DATA FROM THE TABLE [abptenantnotifications]: Difference I publishing with 3 Types of Notification data (First on is the custom and Second and Third are the default within ANZ)

MyProject.MyProject.DataModules.ImportEventProgressData, MyProject.Application, Version=8.1.0.0, Culture=neutral, PublicKeyToken=null

{"Message":"DMC-H160-B-63-51-2000-00A-921A-A_001-00_SX-US.xml is being Imported","Progress":"23.3","Type":"MyProject.MyProject.DataModules.ImportEventProgressData","Properties":{}}

Abp.Notifications.MessageNotificationData, Abp, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null

{"Message":"MyProject","Name":"DMC-H160-B-63-51-0000-00A-030A-B_001-00_SX-US.xml is being Imported"","Type":"Abp.Notifications.MessageNotificationData","Properties":{"Message":"MyProject","Name":"DMC-H160-B-63-51-0000-00A-030A-B_001-00_SX-US.xml is being Imported""}}

Abp.Notifications.LocalizableMessageNotificationData, Abp, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null

{"Message":{"SourceName":"MyProject","Name":"DMC-H160-B-63-51-0000-00A-030A-B_001-00_SX-US.xml is being Imported"},"Type":"Abp.Notifications.LocalizableMessageNotificationData","Properties":{"Message":{"SourceName":"MyProject","Name":"DMC-H160-B-63-51-0000-00A-030A-B_001-00_SX-US.xml is being Imported"}}}

ASP.NET CORE & Angular .NET Core 3.1 v8.1.0

How to accomplish the same in AspnetCore+angular8?

How to accomplish the same in AspnetCore+angular8?

Hi Team, Please update!

I am trying to implement OU in my application. Application has an entity called "Project" which has one to Many Relation with "DataModules". Projects and DataModules has restricted access to User based on their Individual Roles assigned per Project per DataModules.Permission such as "Create_a_Project" / "Edit_A_DataModule" can be assigned to a User to Create a New Project. or Editing and many more permission.

Current Requirement is to map Project and DataModules to Project to User, Roles and DataModules to User, Roles.I have checked Organisation Unit which has very similar functionality, but I am wondering with the permission, permission itself is linked with the Roles.

Suppose, If OU's has a member which does not have permission to "Create_a_Project" Role before and now assigned with new Role(without adding in Permission) in OU, would the user granted to Create_a_Project? Authorization will work as its designed without entry in abppermissions table, meaning it would override the permission?

Showing 1 to 5 of 5 entries