We need to switch detail tabs on or off, depending on the platform that is used. This because some screen controls are not available for all platforms, like the Card List.
Creating different variants for different platforms is not a good alternative, because this results in to much maintenance and side effects.
Having the platform_id available in the context procedure would be a perfect solution for now.
Or, a global function, like dbo.tsf_platform_id() is also fine.