getPeople Example - explanation needed
Posted: 18 Jan 2011, 12:40
I have gotten the Database Recipe Get People Example working (using the same config for the server admin tool).
When I view the code for the client, I see this line in the onLogin handler.
sfs.send(new ExtensionRequest("getPeople", new SFSObject()))
Can someone explain the reference to "getPeople". How is it being used? Since it is not used in the naming of the extension or in the extension configuration, how does the client know which extension to call (eg Zone vs Room extension)? Is it an arbitrary name?
Also, why are we passing a new empty object to the server.
Thanks
Sbn
When I view the code for the client, I see this line in the onLogin handler.
sfs.send(new ExtensionRequest("getPeople", new SFSObject()))
Can someone explain the reference to "getPeople". How is it being used? Since it is not used in the naming of the extension or in the extension configuration, how does the client know which extension to call (eg Zone vs Room extension)? Is it an arbitrary name?
Also, why are we passing a new empty object to the server.
Thanks
Sbn