Skip to main content
Question

Best way to detect client type

  • June 19, 2026
  • 0 replies
  • 10 views

Forum|alt.badge.img+13

Hi,

We are currently transitioning a client from the Windows GUI to the Universal GUI.

In the existing situation, reports are generated via tsfreportmailer (gui_code), which is not supported in the Universal GUI. During the transition phase, both GUIs are active, so we need to support both approaches.

At the moment, we are experimenting with a process flow that calls Indicium for report generation.

What we would like to achieve is a where we can decide, based on the client type, whether to:

  • execute the exesting Windows-specific reporting task, or
  • execute a Universal/Indicium-based reporting task

So effectively, detect the active GUI..

For testing, we tried select app_name(); 

This returns:

  • Thinkwise Software Factory in the Windows GUI
  • Indicium in the Universal GUI

This seems to work, but it feels a bit implicit.

Questions:

  • Is using app_name() the recommended way to distinguish between Windows and Universal GUI?
  • Is there a more robust or supported method (e.g. via session_context or another mechanism)?
  • What is the best practice for handling GUI-dependent logic like this?

Thanks in advance!

Blommetje