Using winopen with a wepapp

12 次查看(过去 30 天)
Abhishek Bhat
Abhishek Bhat 2022-9-19
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