Using winopen with a wepapp

조회 수: 2 (최근 30일)
Abhishek Bhat
Abhishek Bhat 2022년 9월 19일
답변: Manoj Mirge 2023년 2월 24일
I am using R2020a on a Windows laptop. Using webapp server on a local windows server for deploying some algorithms for internal company.
The app works really nicely, but as a last step of the process, I need the webapp to open a shared windows folder using winopen( or something similar) on the client side so that the user can look at some generated logs. I am unable to do this using winopen.
The webapp has read access to that folder on both client and server side. I can ask the user to copy the path and open it in the explorer themselves, but I want to make it easier so that the user can click a button on the webapp and the right folder opens up in windows explorer.
I know of uiget and uiput file, but don't think these are useful for what I need.
Is there a workaround for this?

답변 (1개)

Manoj Mirge
Manoj Mirge 2023년 2월 24일
Hi Abhishek,
Because a deployed MATLAB Web App is hosted on a server, functions that use system information have access only to server-side information, not client-side information. In addition, the web app is displayed in a browser window as opposed to a separate figure window. As a result, certain functions and properties behave differently in a deployed web app than on your local system.
So, there are limitations to the use of winopen function in deployed web app. That is why web app is generating error while using winopen.
I couldn’t find alternate function of winopen for your requirements. As possible workaround, you can just ask user to copy path and open it in their windows file explorer.
You can read more about limitations of MATLAB Web Apps here .
Hope this will help.

카테고리

Help CenterFile Exchange에서 MATLAB Web App Server에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by