Why the file path get wrong after I packed my app code written by App Designer to a Web App?
4 次查看(过去 30 天)
显示 更早的评论
I am currently using App Designer to create an app. It needs to import an Excel file and the interface will show the file path. This is my code to show the path:
% Button pushed function: ChoosebasinshapefileButton
function ChoosebasinshapefileButtonPushed(app, event)
[shapeName, shapefolder] = uigetfile();
shapeFileName = fullfile(shapefolder, shapeName);
app.EditField_3.Value = shapeFileName;
end
It shows the correct file path when I run the app in App Designer, as shown blow:
But, after I packed my App and run it as a Web App using the MATLAB Compiler, it shows the wrong file path, as shown below (same file as before):
So, does anyone know why this happen? And how should I do to solve it? Any help appreciated. I am using ver R2019a
Thank you very much!
Li
0 个评论
采纳的回答
更多回答(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!