Writing protection

Does anybody know how to put the gateway connection protection on your own scripting? I want my code to respect the communication protection settings on designer:
image

You would retrieve that connection mode from the live GatewayConnection, which you get from the GatewayConnectionManager singleton. You would enforce your restriction in your Client RPC implementation, prior to invoking the RPC call. (I don’t think you can do this on the gateway side–it is purely a designer UI element.)

1 Like

Oh! I meant blocking in the designer, like System.DB.runPrepUpdate does on it.

Yes, it is that connection property. You replied without even taking a moment to read the links. Tsk.