Previewing Mobile Business Object Attributes

Configure load arguments and preview the results against the data source to which they are bound. Optionally create a reusable configuration for future previews.

  1. From the Mobile Application Diagram, select the mobile business object you want to test by clicking once anywhere in the mobile business object.
  2. Right-click the mobile business object and select Preview.
    Note: You can also access the Preview dialog when defining attributes for a newly created mobile business object. Or you can click the Definition tab of Attributes in the Properties view then click the Preview button to see the Preview dialog.
  3. From the Preview dialog, configure the attribute parameters used to test and preview the mobile business object and preview the results.
    Preview Dialog Instructions
    Field Description
    Load arguments
    • Argument name – (read-only) the name of the argument.
    • Datatype – (read-only) the parameter's datatype.
    • Nullable – (read-only) accepts NULL if selected.
    • Value – supply a value for the attribute's load argument compatible with the datatype, to pass to the data source. To select NULL as the value, click in the field next to the load argument, then click the down arrow on the right to select NULL as the value from the drop-down. If the datatype is binary, bigbinary, bigstring, date, datetime, or time, select the input dialog in which you can select a value. If the datatype is TABLE, click the Value field, then click the ellipsis (...) within the Value field to launch the Input Table Data dialog. The Input Table Data dialog contains columns that correspond to that of the selected load argument.

      The load argument displays only if you have defined it; otherwise the table is empty.

      The displayed initial value follows these rules:
      1. If the load argument does not map to a personalization key or synchronization parameter, displays the default value of the load argument.
      2. If the load argument is mapped with a personalization key with a non-null default value, displays the default value of the personalization key, otherwise the default value is from itself.
      3. If the load argument is mapped with a synchronization parameter, the initial value comes from the synchronization parameter, and the synchronization parameter also follows the above rules.
      4. If the load argument is a wrapper structure argument, since its default value is disabled, the initial value comes from the next level argument which is also a structure argument, and the next level also follows the first two rules stated above.

    You can order the load arguments by selecting the column heading by which you want to order.

    Existing Configurations Select either an existing configuration that contains attribute parameter value settings, or preview without using a configuration:
    • If you continue without a configuration, then the preview uses the parameter data you provided. Optionally, provide a configuration name then click Save to save your settings as a configuration. If you enter a name without clicking Save, the configuration is not created.
    • Select an existing configuration from which you preview the attributes.
    • Delete – deletes the selected configuration.
    • Delete all – deletes all saved configurations.
    • Load default – loads the default configuration.
    Preview Select Preview to pass the parameters to the data source and view the results in the Preview Result screen.
    Note:
    • If the MBO definition requires a default value, and you do not provide one, the data source returns an error which SAP Mobile WorkSpace displays, when you select Preview.
    • By default, 100 rows display at a time. You can change the default in the Miscellaneous Preferences dialog (Maximum rows to retrieve). But if this number is too high, the preview may take a long time to complete.
    Save as default values Saves the argument values during the preview as default values for the load arguments, mapped personalization keys, or mapped synchronization parameters based on the rule: where the value comes from is where the value is saved to, which is reflected in the Load Arguments tab in the Properties view.