Page 1 of 1

Possible to detect if panel is running in webserver?

Posted: Thu Apr 08, 2021 11:48 am
by Smiffy
I would like to have a button perform different actions depending on if the application is running on the host machine or being run over the webserver interface. Is that possible? I have looked through the help and cannot find anything. Is there a call I can make to detect if the panel is being accessed at run-time via the webserver or not?

Re: Possible to detect if panel is running in webserver?

Posted: Fri Apr 09, 2021 5:29 pm
by gschijndel
The panel is running in ULC UX if the value of 'getApplicationProperty("platformName")' is 'ulc'.

Possible solutions to detect if the UI is using the webserver to get the panels can be found in How to find out that the code is running in the DesktopUI?