ONLYPLATFORM keyword
Applies to
Event handlers
Description
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.
Syntax
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 |
Remarks
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.
Example
In these event handler parameters, the ONLYPLATFORM keyword restricts execution of the event handler to a Web client platform.
object.OpFeedbackViews ONLYPLATFORM(WEB)