Show/Hide Toolbars

TMS XData Documentation

Navigation: Web Applications with TMS Web Core

XData Web Application Wizard

Scroll Prev Top Next More

TMS XData provides a great wizard to scaffold a full TMS Web Core web client application.

 

This wizard will connect to an existing XData server and extract meta information it with the list of entities published by the server. With that information, it will create a responsive, Boostrap-based TMS Web Core application that will serve as a front-end for listing entities published by the server. The listing features include data filtering, ordering and paging.

 

To launch the wizard, go to Delphi menu File > New > Other..., then from the New Items dialog choose Delphi Projects > TMS Business, and select wizard "TMS XData Web Application".

 

xdata_generator_wizard

 

 

Click Ok and the wizard will be launched:

 

xdata_generator_page1

 

In this first page you must provide the URL address of a running XData server. You can click the "Test Connection" button to check if the connection can be established. If the server requires authentication or any extra information sent by the client, you can use the "Set Request Headers..." button to add more HTTP headers to the client request (for example, adding a JWT token to an Authorization header).

 

Once the server URL is provided and connecting, click Next to go to next page.

 

xdata_generator_page2

 

This will list all entities published by the XData server. You can then select the ones you want to generate a listing page for. Unselected entities will not have an entry in the menu nor will have a listing page. Select the entities you want and click Next.

 

xdata_generator_page3

 

The final wizard page will ask you for a directory where the source code of the web application will be generated. Choose the output folder you want and click Finish. The application source code will be generated in the specified folder, and the project will be open in Delphi IDE.

 

You can now compile and run the application, and of course, modify it as you want. This is a easy and fast way to start coding with TMS Web Core and TMS XData backend. Here is a screenshot of the generated application running in the browser, using the settings above:

 

 

xdata_generator_app