4D v14.3Step-by-step Example |
||
|
4D v14.3
Step-by-step Example
Step-by-step Example
This section is intended to help familiarize you with Wakanda / 4D connector functionality by means of a step-by-step example. We are going to:
To keep the example simple, we’re going to use a 4D application and a Wakanda application that are running on the same machine. Of course, you could also use a remote architecture.
The 4D database is now ready to respond to 4D Mobile requests from Wakanda. Note that in order to simplify this example, we are not controlling 4D Mobile accesses. However, in a context of production or open architecture, it is indispensable to secure 4D Mobile (via REST) accesses (see the About 4D Mobile application security section).
If the table is not shown in the list at this time, check that:
To check whether the 4D server is actually responding to REST requests, you can try the following URLs in your browser: <address>/rest/$catalog/$all (returns all the tables exposed in 4D Mobile) <address>/rest/my_table/my_method (returns the result of the method - if it returns a result) Now we are going to associate a 4D table with a Wakanda widget by simple drag-and-drop, then launch the Wakanda Enterprise Server and view the data.
Now we are going to create a very simple project method on the 4D side and execute it from our Web page. This method will double all the salaries.
Now we are going to create a very simple project method on the 4D side and execute it from our Web page. This method will double all the salaries.
|
PROPERTIES
Product: 4D ARTICLE USAGE
4D Mobile ( 4D v14 R3) Inherited from : Step-by-step Example ( 4D v14 R2) |