Show TOC

Maintaining the Mobile Application AttributesLocate this document in the navigation structure

Context

Maintaining a mobile application includes the following operations that must be performed at the node level (root node and child node) of a data object:

  1. Defining operations that are allowed on a node instance, such as create, update or delete.

  2. Defining mandatory attributes of a node attribute.

  3. Providing default values for a node attribute.

  4. Maintaining indexes for a node attribute, which are used in the mobile client database.

    Indexing is a mechanism to locate and access data within a database. Indexing can be created for one or more columns, and index names are unique. The application queries can then use these index names.

Note

The attributes are not applicable for data objects of type download only because download-only data objects cannot be created, updated, or deleted on the mobile client.

Procedure

  1. Log on to SAP NetWeaver Application Server and start transaction SDOE_WB .
  2. Select the data object root node.
  3. Choose Mobile Appli Attr. .
  4. Select JAVACLNT as the client type.

    The Mobile Java Client Attributes screen appears.

  5. Select the appropriate lifecycle flag for the node. The different flags are described below:

    Lifecycle Flag

    Lifecycle flag

    Description

    Create

    A node instance can be created by an application on the client device.

    Update

    A node instance can be updated by an application on the client device.

    Delete

    A node instance can be deleted by an application on the client device.

    Note

    Only if you select a flag can the client application create, delete, or update a node instance on the client device.

  6. Define the behavior of the attributes for the mobile application. The attributes are described below:

    Attributes

    Description

    Node Attribute Name

    Name of the node attribute

    Index

    Select this indicator to create indexes for this node attribute.

    Index Name

    In the client database, you can create index names for the node attributes.

    NE - GState

    No Edit Global State

    Note

    This indicator is not used.

    NE - LState

    No Edit Local State

    If this indicator is selected for an attribute, then the particular attribute cannot be updated on the client device.

    For example, you can have an attribute that displays the price of the equipment available. If you do not want the client application to edit this attribute, you set this indicator.

    Default

    On the mobile client database, if the user does not enter a value for the attribute, you can set a default value for the attribute.

    Required

    Mandatory column. The user must enter a value for this column.

    Uniqueness

    Select this indicator to define the index as unique. A unique index acts as a constraint on the table by preventing identical rows in the index and thus, the original columns.

    GUID

    GUID value of the node attribute. This value is obtained from the Consolidated Data Store (CDS) tables.

    Note

    This is a read-only field.