WinStudio
Event handlers
Limits the execution of an event handler to events fired in a specific platform, either "WIN" or "WEB".
If this keyword was set previously and you want to eliminate it from the parameters so the handler runs all the time, specify ALL.
ONLYPLATFORM( PlatformIdentifier )
Part |
Description |
PlatformIdentifier | Expression that evaluates
to a string that identifies a platform. PlatformIdentifier
can be any of these:
WIN -- Windows client. WEB -- Web client. ALL -- All clients. |
By default, a handler for an event executes whenever the event fires. The ONLYPLATFORM keyword allows you to restrict execution of an event handler to events fired in a specific platform, so you can handle events differently in a Web client versus a Windows client.
In the following event handler parameters, the ONLYPLATFORM keyword restricts execution of the event handler to a Web client platform.
object.OpFeedbackViews ONLYPLATFORM(WEB)
Platform Property (WinStudio Scripts)