Using winopen with a wepapp
3 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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.
Hope this will help.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Web App Server についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!