New in package 166
Syntax
Server.namespace.method( arg1,... argN, function callback(result) { ... } );
Description
Function callback will be called after receiving result of server method method.
Form state and asynchronous server calls
- On changing current Form object all pending server calls are dropped and theirs results are discarded. Form reloading implies object changing.
- Object is not saved on server untill all pending server calls are processed (there will be pause on object save if there are pending server calls).
Common scenarios:
- Legend
- Green: it is possible to make asynchronous server calls.
- Blue: wait for pending server calls and process their results.
- Red: drop pending server calls and discard theirs results.
- Object editing
↪ "loadForm" ↪ "loadObject" ↪ "editObject" ↪ "saveObject (client side)" ↪ wait for pending server calls ↪ "saveObject" (server side) ↪ "loadObject"
- Choosing another object using the same form
↪ "loadForm" ↪ "loadObject (object with id 1)" ↪ drop pending server calls ↪ "loadObject (object with id 2)"
- Form reloading
↪ "loadForm" ↪ "loadObject" ↪ drop pending server calls ↪ "loadForm" ↪ "loadObject"