Device Synchronization Returns no Data

Problem: Improper syntax in generated code calls causes device synchronization to return no data.

Explanation: This may originate from a misconception about the syntax of generated code calls. In this code example, the deployment_unit file used to autogenerate the class objects contains this section:

<synchronization-parameter name="city" type="string?"/>

This indicates that the class object created from the XML requires "city" to be specified prior to syncing with the object.

Solution: Research the mobile business object (MBO) design in Eclipse.

  1. Make sure that the synchronization parameter is mapped to an attribute:
    1. In MBO properties, from the Synchronization tab, select a sync parameter.
    2. Select an attribute for the "Mapped to" column.
  2. After making the change, redeploy the Mobile Application project and regenerate the Object API code, and resynchronize the MBO on the device.