Smart CODE | |
Your on-line guide to the generated code |
A single server program will work with X-Designer generated thin clients in Motif, MFC or Java. It also has the potential to work with Web-browser form and applet interfaces, and non-graphical clients.
If you have already developed using Get/Set Smart Code callouts then your code will already be independent of any assumptions about the toolkit. With minimal modification it should be possible to move the processing out of the application and into a callback in the server.
The client side of a X-Designer Internet Thin-client application does not require any coding by the user. If you do need to fine-tune the client side, you can use the precondition/postcondition mechanism, or you can override the data transfer to, or from the server.
The ServerCallbackProc is the callback stub generated as part of the server code. It has full access to the server-side group object - containing the characteristic values of all the members in the group. While it is a group of user-interface controls on the client side, on the server it is a group of data elements.
Each data element corresponds to the setting or value of the controls on the client side. You will be able to check the state of a toggle, the value of a textfield, etc. You will not (directly) be able to control or examine the state of any part of the client interface. If you need further fine tuning, you can add extra elements to the group to handle the features you need to use.
If there is not a one-to-one correspondance between the data structure that is appropriate to the server, and the set of user interface controls, controls can be made private and their data can be processed through extra data elements in the group. These allow the user full control of the data sent down to the server, and how the data returned is reapplied to the interface.
Once you have built and installed the server side application code, you can further develop the client side within X-Designer, using the GoLive! feature, where the interface you are developing in X-Designer is a fully functional thin-client without the need for a compile-cycle.
C |
|
---|---|
C++ |
|
Java |
|
Simple Server-side callback example | |
---|---|
Language | Usage |
C |
|
C++ |
|
Java |
|
Callback that requests further polling from the client | |
---|---|
Language | Usage |
C |
|
C++ |
|
Java |
|