Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

Create a data item for a mobile application

Log in to subscribe to topics and get notified when content changes.

Create a data item for a mobile application

Data items are data sets that represent a table from the platform. Data items determine the information that appears on a screen. Associate data items with specific applets to determine the purpose of each applet.

Before you begin

Role required: admin

Procedure

  1. In Studio, navigate to Mobile Development > Data Items, and click the popout icon (The popout icon.).
  2. In the Data Items tab, click Create a new data item.
  3. Complete the following fields as needed.
    Table 1. Data item fields
    Field Description
    Name A title for the data item. You can have multiple data items with the same name. Make sure that this name is unique so that you can find it easily.
    Description Optional additional details about the data item
    Table The name of the table you want the data item to pull information from.
    Condition type Determine whether the condition for the data item is declarative or scripted. Use a declarative condition to create conditions for the data item using the condition builder. Use a scripted conditions to create a scripted data item.
    Add sort Adds fields to the form that allow you to configure how to sort the list. In the Add Sort window, select the field you want the list to be sorted by. For example, Caller. Then select a to z or z to a to determine which order the list goes in.
    Query Condition Set of conditions for the data item to conform to. You can create conditions using the condition builder.
    Sorted by This field only appears if you click Add sort. It is automatically populated with the information you added in the Add Sort window.
    Direction This field only appears if you click Add sort. It is automatically populated with the information you added in the Add Sort window.
  4. (Optional) If you want the application to query the database for more information before loading the data, add parameters to the data item.
  5. (Optional) To configure a data item for a Grouped By applet, in the Group Function section, from the Group By list, select the field you want to group items by. The available fields are based on the table you selected.
  6. Click Save.

What to do next

Associate a data item with an applet.
Feedback