Activities of "duyan11110"

Hi,

Thank for your suggestion.

Is there any way to change the name of javascript function when it is dynamically generated at runtime. For example: In report module I have a ReportItemAppService in namespace MZH.MHIBS.Report with GetList method. I add this module into AMLReportService after running, the javascript code will be generated like this:

abp.utils.createNamespace(window, 'mZH.mHIBS.report.reportItems.reportItem');

mZH.mHIBS.report.reportItems.reportItem.getList = function(options, permission, ajaxParams) {
  return abp.ajax($.extend(true, {
    url: abp.appPath + 'api/aml-report-service/report-item' + abp.utils.buildQueryString(...) + '',
    type: 'GET'
  }, ajaxParams));
};

Now, if I use this module in CICReportService, the javascript code will be generated the same. I can change the API api/aml-report-service/report-item and api/cic-report-service/report-item but the name of javascript function still the same. How to change it.

Hi,

I've sent the log. Please help to fix this issue.

Hi,

Are you there?

Hi,

Any update on this issue?

Hi,

Can you share your email. I will send you full log.

Hi,

Thanks for your answer but you misunderstand my question. I have a ReportModule which have following tables: ReportItem, ReportType, ReportStructure and each table has a screen to maintain data. These screens use example controller above with the static Route attribute at the top of the controller [Route("api/report/report-item")].

Now I have 2 services: ServiceA and ServiceB use this module and different databases (ServiceAData, ServiceBData). These services will have the same 3 above tables in each database. I separated this point OK.

But my question is about the screens of the module, because 2 services use the same screens to maintain data just save into different databases. How to separated the route attribute of the controller for each service?

For example, when adding this module to ServiceA the route attribute will transform to [Route("api/service-a/report/report-item")] and [Route("api/service-b/report/report-item")] for ServiceB.

Because if I keep the route the same, I can't configure route in YARP. It will always point to one controller and therefore save data into one database.

Hi,

OK, so the secret here is the transaction must be newly created. I tested with requiresNew: false and isolationLevel: System.Data.IsolationLevel.Serializable it still inserts duplicated records.

But I still don't understand why I can't use UnitOfWork attribute like this [UnitOfWork(true, System.Data.IsolationLevel.Serializable)]. It does not work. Can you explain it?

Hi, I solved this issue. Isolation level must be Serializable not Read Committed, because Report Period is newly inserted. Read Committed can not lock it.

Hi, Sorry, I can't share my code. Please guide me which code I need to check. Any doubt that you need me to clarify?

Showing 21 to 30 of 74 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 12, 2025, 10:36
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.