So maybe I'm missing something very obvious... But how to do you pick which layouts you want available for WebDirect vs those for the desktop?
Use the Get(systemPlatform) function.
During your onOpen script, use this function to determine what platform you're on.
If this function returns a 4, then go to the WD layout.
Some people create custom functions that do this simply:
If ( Get(SystemPlatform) = 4; 1 )
ANd then they use this in their onOpen script step:
if [IsWebDirect = 1]
Go To Layout: Detail_WD
go To Layout: Detail
Once you're on a WD layout, you can simply go to other WD layouts. It is only when you start up the file in WD do you need to get the platform.
On the other hand, you can store the system platform value in a global field/variable and use that anywhere in the system.
so your saying using a file wide trigger? OnFirstWindowOpen?
I would do it on the first window trigger. Maybe I would store it in a global variable if the platform type was needed other places in the file Your file needs to know what platform it is being used in and go to A layout designed for that platform.
I'm not near my computer at the moment but check out the starter files. Many of them are designed to detect the platform and then go to those appropriate layouts
you can also have a Priv set for Web Direct users that limits the layouts seen (File menu, Manage, Security)
this is the best at preventing WD users from seeing what they should not.
Retrieving data ...