- Generate the report through the MPS Application and save the report in an accessible location.
- In your MPS application, expose an API endpoint that allows the ReactJS front end to request the generated report. You can use MATLAB functions like “webwrite” or “urlread” to make HTTP requests.
- In your ReactJS application, make an HTTP request to the MPS API endpoint that generates and sends the report. You can use libraries like “axios” for making HTTP requests.
Return report from MPS (Matlab production server)
조회 수: 3 (최근 30일)
이전 댓글 표시
I am using MPS for computation and reactJS as front end. After computation, I generate report using mlreportgen in docx. In local installation it is saved in a director.
When deploying on MPS, how can I return docx report back to reactJS front end? I am ok with html or pdf report too.
Thanks,
댓글 수: 0
답변 (1개)
Dheeraj
2024년 1월 8일
Hi,
I understand that you want to know how to retrieve docx report back to reactJS front end from your MPS.
When deploying a MATLAB Production Server (MPS) application with a ReactJS front end, you typically communicate between the front end and the server through HTTP requests. In order to do this, you could expose an API that communicates with the front end.
You could use the below MATLAB documentation to know more about “webwrite” and “urlread”.
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 RESTful API에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!