Can Web App collect Environment Variables from client PC hosting web browser?

2 ビュー (過去 30 日間)
Gang
Gang 2021 年 2 月 2 日
回答済み: Walter Roberson 2023 年 4 月 24 日
Hi,
Maybe silly question, but will really help me a lot
I have one web app, that user will click a button to submit some info.
And I hope to know the client PC local environment variables like logon name, domain name, computer name etc.
So no need user type in again, also avoid typo.
But I could only get them from Web App Server itself, not from user's remote PC hosting web browser.
Any hint?
  1 件のコメント
子木 刘
子木 刘 2023 年 4 月 24 日
移動済み: DGM 2023 年 4 月 24 日
I have the same question! Is there any hint?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 4 月 24 日
.. maybe?
You can link in Javascript to App Designer, and Javascript can access environment variables
However, there are a bunch of limitations on what you can do from Javascript in App Designer; https://www.mathworks.com/matlabcentral/answers/1845323-add-a-javascript-widget-to-an-app-designer-app#answer_1093218
It looks to me as if the limitations would make it impractical to do what you are hoping to do.

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by