Creating a DataSource

In SmartGWT EE, your DataSource definition provides visual components with a description of the business object you want to manipulate in the UI, and provides information to the server-side framework on how your objects will be fetched and persisted. In some cases, a single declaration drives both client- and server-side behavior (such as validators).

The DataSource Wizard in Visual Builder (launched via the "New" button in the DataSources pane) can be used to generate a DataSource descriptor file (.ds.xml) for a DataSource. Which Wizard to use depends on your persistence strategy (see below).

Load the DataSource definition client-side by including the following line in the body of your GWT host html file.

            <script src='sc/DataSourceLoader?dataSource=employees,supplyItem'></script>
Specify a comma separated list of DataSource ID's for the dataSource parameter. The above line would load the employees and supplyItem datasources from the server.

Launching Visual Builder : Inherit the com.smartgwtee.tools.Tools module and call com.smartgwtee.tools.client.SCEE.openVisualBuilder()

Launching Admin Console : Inherit the com.smartgwtee.tools.Tools module and call com.smartgwtee.tools.client.SCEE.openDataSourceConsole()

Launching Batch DataSource Generator : Inherit the com.smartgwtee.tools.Tools module and call com.smartgwtee.tools.client.SCEE.openDataSourceGenerator()

New Project vs Existing project