Page History
...
"blockEventProcessing" is optional and not needed in almost all cases. It defaults to true. When it is set to false, Servoy will expect that this API call will be long-running (so it will not time out) and at the same time it will allow other events to be handled by the event dispatcher while waiting for the return value. This is helpful for example if a component would have an API call like "askForSomeValue(customForm)" which shows a modal dialog containing a form and returns a value. That API call has to wait for the return value an indefinite amount of time without blocking other events from being dispatched.
Data synchronisation
Data modifications are automatically propagated from server to client.
For performance reasons, data modifications from client to server are not propagated by default. To enable this configure twoWay setting on the property.
twoWay value | description |
---|---|
not set | no data synchronisation from client to server for this property |
deep | watch model changes based on object equality (compares old and new values of structured objects, less performant) |
shallow | watch model changes based on object reference (more performant, but may trigger data synchronisation on 'equal'objects) |
For example:
Code Block | ||||
---|---|---|---|---|
| ||||
"model": {
"searchfield" : { "type": "string", "twoWay": "shallow" }
}
} |
Note that in Servoy, data-provider properties are synchronised using svy-apply svy-autoapply, for these properties twoWay is not needed.
Tags
Properties can be configured with special tags that may be interpreted by the deployment environment.
...