Why the file path get wrong after I packed my app code written by App Designer to a Web App?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Web App Server in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!