Description

Structuring your data is covered in XML Data in AltioLive. You should read that topic before setting up your data.

There are two methods of providing data for your application:

The most common method: having data on a separate back-end system

You will have to integrate the view with the Service Functions set up in the Application Manager tool to get initial data for the application.

Getting optional data on demand (for example, when requested by the user). Some of these Service Functions may require subscribing to a pre-configured Datapool to receive data updates. The subscription is also set up at this stage.

  1. From the Designer Tool, if you have not already saved your project, save it using the Save toolbar icon 0-saveicon.jpg or the File|Save menu item.

  2. If the View Explorer window is not visible then activate it by clicking the Show View Explorer toolbar icon or with the View|Explorer menu item.

  3. In the View Explorer window, select the Initial Data Services treeview item.

  4. Select the Edit|New Initial Data menu item and a new child item of Initial Data Services will appear, initially called INCLUDE.

    newinitialdata.jpg

  1. The Properties window must be displayed, if it is not then activate it by clicking the Show Properties Window toolbar icon or with the View|Properties menu item.

  2. In the General group of the Properties window, select the Server Command property and select a Service Function from the list provided. After doing this the name of the new Initial Data Service will change in the treeview to match the name of the Service Function you have chosen.

    propertyservercommanddata.jpg

  3. If this Service Function should be subscribed to a Datapool to get further updates, select the datapool name from the Subscribe drop-down field. Press the return key to enter the change.

  4. If there are other Service Functions to register, repeat steps 4 to 7.

Looking at the example application ROS, in the case of the GET_CATALOG Service Function, the catalog data it returns is static data (i.e. not updated during the user session) and therefore it does not subscribe to a Datapool. In the case of the GET_FORSALE data, this is 'live' data subscribed to the NEW_FORSALE Datapool. The name used in a SUBSCRIBE will correspond to a Datapool definition in the Application Configuration XML file.

See next step:

Setting up Datatypes and Relationships.