Adding the test channel

Once you have created a group of users who will be using M-Business XML conduit, add the sample database test channel.

To add the test channel
  1. Log in to M-Business Server as admin.

  2. Edit the group information for the group you created for the M-Business XML conduit test channel.

  3. In the Navigation Panel, choose Groups » Edit Group » Databases » Create .

  4. In the Name field, type TestDB.

  5. In the Data URL field, type:

    http://www.ianywhere.com/downloads/developer/code_samples/mbus_xml_dbdemo/test.xml

    Note

    URLs entered in any M-Business Anywhere component must contain only forward slashes (/).

  6. In the Schema URL field, type:

    http://www.ianywhere.com/downloads/developer/code_samples/mbus_xml_dbdemo/test.xsd

  7. For Format, select Attribute-based.

  8. Leave the default settings for the rest of the fields: Delete Type, Fetch Only Modifications, and Delete URL.

  9. Click Save.

    The Listing Database Channels in Group page appears, and includes the sample database channel you just created.

    Note

    A database channel only downloads data to a device. To display the data, you need an HTML page in a regular channel.

  10. In the Navigation Panel, choose Groups » Edit Group » Channels » Create .

  11. In the Name field, type ShowTestData.

  12. In the Location field, type:

    http://www.ianywhere.com/downloads/developer/code_samples/mbus_xml_dbdemo/test.html

    The test.html file displays data from the TestDB database channel.

  13. Click Create.

    M-Business Server returns you to the Channel List for Group page.

  14. Synchronize a device for a user who is a member of the group for which you have set up the TestDB and ShowTestData channels.

  15. Open the ShowTestData channel on the device

    The test.html page should now display the data from the TestDB database channel.