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 Factoryin the Windows GUIIndiciumin 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_contextor another mechanism)? - What is the best practice for handling GUI-dependent logic like this?
Thanks in advance!
Blommetje

