Can I deploy a multiwindow app as a web app using MATLAB Web App Server?

6 次查看(过去 30 天)
This documentation page shows the workflow of creating a multiwindow app with the App Designer.
However, after successfully deploying and launching the app from the web app server, I get errors such as:
Web Apps does not support multiwindow apps
Or:
Error using errordlg (line 2)
Web Apps does not support errordlg.
Can I deploy a multiwindow app as a web app using MATLAB Web App Server?

采纳的回答

MathWorks Support Team
MathWorks Support Team 2024-7-26,0:00
Multiwindow apps are not supported by web apps.
This means that multiple calls to 'figure' or 'uifigure' are not supported with web apps. In addition, functions that create dialog boxes that appear as a separate window are not supported. These functions include 'dialog', 'msgbox', 'errordlg', 'warndlg', 'helpdlg', 'listdlg', 'questdlg', 'inputdlg', 'uisetcolor', and 'uisetfont'. However, functions that create dialog boxes within a figure window, such as 'uialert', 'uiconfirm', and 'uiprogressdlg', are supported with web apps.
For more information on the limitations of web apps, please see the following link:
To adjust the multiwindow app to work with MATLAB Web App Server, one possible workaround is to use a tab group to replace windowing.
1. Add a tab group that covers the entire app. 
2. Then, you can integrate different windows as different tabs. 
3. Rather than opening a new window, you may open the tab with the appropriate content instead.
For more information on tabbed panels, find the documentation page below:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Web Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by